Authentication with App Service Gateway worked, but now fails

So I was trying to authenticate my app with the App Service gateway so that I can access my locked down Api App. I have set up identity providers for both Google and Microsoft, and all was working wonderfully. I was making some tweaks with how I was handling
the authentication token, so I was hitting the authentication code 3-4 time a minute. Everything was great until suddenly the web page stopped opening up.
I did some digging and it seems that the gateway simply cannot handle my requests anymore. I am now getting 500 responses and the streaming logs for the gateway host web app spat out an IIS error page that I've pasted at the end here... To me the
error looks like it's coming from the gateway code. So what is going on? I've tried restarting both the gateway and the host for the gateway, I've tried changing the pricing tier to a non-shared plan in case something on the machine was crashing, and
I've tried accessing the /signin-google page on both my mobile app and desktop browser (both fail with 500). I assume that recreating the entire resource group and associated gateway would solve the problem, but I don't know that this won't happen again. So
any tips you have would be appreciated, thanks.
IIS Error page:
HTTP Error 500.0 - Internal Server Error
The page cannot be displayed because an internal server error has occurred.
Most likely causes:
IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred.
IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.
IIS was not able to process configuration for the Web site or application.
The authenticated user does not have permission to use this DLL.
The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.
Things you can try:
Ensure that the NTFS permissions for the web.config file are correct and allow access to the Web server's machine account.
Check the event logs to see if any additional information was logged.
Verify the permissions for the DLL.
Install the .NET Extensibility feature if the request is mapped to a managed handler.
Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click
here.
Detailed Error Information:
Module
   __DynamicModule_Microsoft.Owin.Host.SystemWeb.OwinHttpModule, Microsoft.Owin.Host.SystemWeb, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35_63ffbacd-0ee6-4727-806c-1c01b9b82249
Notification
   MapRequestHandler
Handler
   ExtensionlessUrlHandler-Integrated-4.0
Error Code
   0x00000000
Requested URL
   https://chipexchangeresources8ff2d21b21f84262ae5c1b3af4dc04ca:80/signin-microsoft
Physical Path
   D:\Program Files (x86)\SiteExtensions\ApiAppsGateway\0.9.29\signin-microsoft
Logon Method
   Anonymous
Logon User
   Anonymous
More Information:
This error means that there was a problem while processing the request. The request was received by the Web server, but during processing a fatal error occurred, causing the 500 error.
View more information »
Microsoft Knowledge Base Articles:

No, it wasn't anything to do with Insights. Actually coming back after a weekend cleared my mind enough for me to spot my foolish error. It turns out I had accidentally switched the login and redirect urls,
From
Login: <gatewayurl>/login/google
Redirect: <gatewayurl>/signin-google
To
Login: <gatewayurl>/signin-google
Redirect: <gatewayurl>/login/google
I just didn't notice at the time because /signin-google looks like a signin url rather than a redirect one. As soon as I switched back to using the /login/google one everything is back to working smoothly. Sorry for the false alarm, but as a side note I
don't think the gateway should be throwing an exception if there is no auth token.

Similar Messages

  • My ipod says it is updated to most current 6.1.6, i use the rdio app and it worked but now with the update it needs 7.0 but i do not get option to update to this what do i do?

    my ipod says it is updated to most current 6.1.6, i use the rdio app and it worked but now with the update it needs 7.0 but i do not get option to update to this what do i do?

    See the chart below to determine whether you can upgrade your device and what you can upgrade to. If you do not have a Software Update option present on your iDevice, then you are trying to upgrade to iOS 5 or higher. You will have to connect your device to your computer and open iTunes in order to upgrade.
    IPhone, iPod Touch, and iPad iOS Compatibility Chart
         Device                                       iOS Verson
    iPhone 1                                      iOS 3.1.3
    iPhone 3G                                   iOS 4.2.1
    iPhone 3GS                                 iOS 6.1.x
    iPhone 4                                      iOS 7.1.x
    iPhone 4S                                    iOS 8.x.x
    iPhone 5                                      iOS 8.x.x
    iPhone 5c                                     iOS 8.x.x
    iPhone 5s                                     iOS 8.x.x
    iPod Touch 1                               iOS 3.1.3
    iPod Touch 2                               iOS 4.2.1
    iPod Touch 3                               iOS 5.1.1
    iPod Touch 4                               iOS 6.1.x
    iPod Touch 5                               iOS 8.x.x
    iPad 1                                          iOS 5.1.1
    iPad 2                                          iOS 8.x.x
    iPad 3                                          iOS 8.x.x
    iPad 4                                          iOS 8.x.x
    iPad Mini & Mini Retina                iOS 8.x.x
    iPad Air                                        iOS 8.x.x
    =====================================
    Select the method most appropriate for your situation.
    Upgrading iOS
       1. How to update your iPhone, iPad, or iPod Touch
       2. iPhone Support
       3. iPod Touch Support
       4. iPad Support
         a. Updating Your iOS from iOS 5
              Tap Settings > General > Software Update
         If an update is available there will be an active Update button. If you are current,
         then you will see a gray screen with a message saying your are up to date.
         b. If you are still using iOS 4 — Updating your device to iOS 5 or later.
         c. Resolving update problems
            1. iOS - Unable to update or restore
            2. iOS- Resolving update and restore alert messages

  • I am having problems connecting to home wifi.  It was working, but now all I get is a blank white screen.  I re-booted with no success.

    I am having problems connecting to home wifi.  It was working, but now all I get is a blank white screen.  I re-booted with no success.

    Hi, blank white screen where exactly?
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    10.5, 10.6, 10.7 & 10.8…
    System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
    10.5.x/10.6.x/10.7.x/10.8.x instructions...
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.
    If using Wifi/Airport...
    Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.
    For 10.5/10.6/10.7/10.8, System Preferences>Network, unlock the lock if need be, highlight the Interface you use to connect to Internet, click on the advanced button, click on the DNS tab, click on the little plus icon, then add these numbers...
    208.67.222.222
    208.67.220.220
    (There may be better or faster DNS numbers in your area, but these should be a good test).
    Click OK.

  • On my Iphone, i'm not able to purchase with itunes from the game clash of clans! I did it the first time, it worked, but now it wont work and says : contact support.

    i'm not able to purchase with itunes from the game clash of clans! I did it the first time, it worked, but now it wont work and says : contact support.

    What they mean is iTunes Customer Service Contact - http://www.apple.com/support/itunes/contact.html

  • HT4356 My iPad does not find the printer. I have tried the HP app and it works, but in any other app the printer is not seen. How do I get this printer visible to the iPad. All my other network computers find and print with out a problem.

    My iPad does not find the printer. I have tried the HP app and it works, but in any other app the printer is not seen. How do I get this printer visible to the iPad. All my other network computers find and print with out a problem.

    hi
    could you tell us what the other app is please

  • I have the iphone 4 and PC with Windows Vista Basic. When I bought my iPhone syncs with iTunes on my computer, but now when I try to sync it tells me that Mobile Device Service was closed and I can not synchronize the phone. Try restarting Mobile Device S

    I have the iphone 4 and PC with Windows Vista Basic. When I bought my iPhone syncs with iTunes on my computer, but now when I try to sync it tells me that Mobile Device Service was closed and I can not synchronize the phone. Try restarting Mobile Device Service and uninstall and reinstall Itunes but still giving me the same error.

    http://support.apple.com/kb/HT3965

  • I have updated both my iphone 4G and my husbands 4G with the nAew 5 update but now have his contacts on my phone and everytime he downloads an app it goes on my phone.  How can I change this? Do I have to have two separate Apple ID's

    I have updated both my iphone 4G and my husbands 4G with the nAew 5 update but now have his contacts on my phone and everytime he downloads an app it goes on my phone.  How can I change this? Do I have to have two separate Apple ID's

    Try this
    http://support.apple.com/kb/ht1495
    Hope it helps.

  • I jailbroken my ipod and when i try to restore it, its stuck on the loading screen with a skull on it but now i cant even look at the apps or lock it plz up i tried everything pretty much. i tried putting it in dfu and dfu pwn mod

    i jailbroken my ipod and when i try to restore it, its stuck on the loading screen with a skull on it but now i cant even look at the apps or lock it plz up i tried everything pretty much. i tried putting it in dfu and dfu pwn mod
    < Edited By Host >

    Jailbreaking has its consequences and voids the Apple warranry.  We can't discuss jailbreading on this Apple forum.

  • My printer HP photosmart was working but now says printer not responding. Wireless network test came back with no problems. Any suggestions on how to fix this?

    My printer HP photosmart was working but now says printer not responding. Wireless network test came back with no problems. Any suggestions on how to fix this?

    marie274 wrote:
    My printer HP photosmart was working but now says printer not responding. Wireless network test came back with no problems. Any suggestions on how to fix this?
    What exactly happens between the the time the printer was last working well and no on your system? Any updates or upgrades?
    Lupunus

  • I have an iPhone 4 on IOS5. I signed up for itunes match. After everything uploaded to the cloud, my songs are messed up. I'll select a song and the title will show with the right art work but a different song will start playing.  Anyone have a solution?

    I have an iPhone 4 on IOS5. I signed up for itunes match. After everything uploaded to the cloud, my songs are messed up. I'll select a song and the title will show with the right art work but a different song will start playing.  Some songs won't play at all even though they do appear in the itunes store. The artwork almost always shows u blank until you turn it to landscape then it will appear. Anyone know what's going on?

    I have found that scrolling through the album list (past albums without art) triggers the progress wheel next to the wifi symbol. You can scroll quickly through the whole collection and then wait! Artwork will appear gradually...
    However, repeat visits to the Music App might initially show no artwork again, but it might spontaneously appear more quickly this time. The bad news is that the whole Music App is now sluggish as ****...

  • TS3694 Upgrading my iPad2 to iOS6 seems to have worked but now have a 3014 error message, have tried following the support advice but seem to be going round in circles.

    Upgrading my iPad2 to iOS6 seems to have worked but now have a 3014 error message, have tried following the support advice but seem to be going round in circles and can't see what is wrong.
    iPod linked to my MacBook which is upto date and running Mountain Lion
    Noted that my wi-fi here is very slow, could that be an issue?

    From 3rd link below.
    Error 1004, 1013, 1638, 3014, 3194: These errors may be the result of the connection to gs.apple.com being redirected or blocked. Follow these steps to resolve these errors:
        1.    Install the latest version of iTunes.
        2.    Check security software. Ensure that communication to gs.apple.com is allowed. Follow this article for assistance with security software. iTunes for Windows: Troubleshooting security software issues.
        3.    Check the hosts file. The restore will fail if there is an active entry to redirect gs.apple.com. Follow iTunes: Advanced iTunes Store troubleshooting to edit the hosts file or revert to a default hosts file. See section "Blocked by configuration: (Mac OS X/Windows) > Rebuild network information".
        4.    Try to restore from another known-good computer and network.
        5.    If the errors persist on another computer, the device may need service.
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
    Update and restore alert messages on iPhone, iPad, and iPod touch
    http://www.buybuyla.com/tech/view/012953a0d412000e.shtml
    iOS: Resolving update and restore alert messages
    http://support.apple.com/kb/TS1275
    iPad: Unable to update or restore
    http://support.apple.com/kb/ht4097
     Cheers, Tom

  • HT1495 My husband and I share an i cloud account but each have our own separate ipads. We were told this would work, but now I can't find a book that I've downloaded on my ipad anymore. Where would I find it?

    My husband and I share an i cloud account but each have our own separate ipads. We were told this would work, but now I can't find a book that I've downloaded on my ipad anymore. Where would I find it?

    You and your husband can share a store account and still have seperate iCloud accounts for your contacts, bookmarks and stuff like that.  Click here for instructions to make an apple account without entering a credit card.  Make sure you use a different email address for each apple account. 
    Set up your iPhone/iPad whatever using the new account for iCloud.  Then go into settings/store and sign in with your purchasing account, you may need to sign out of the other account.  To the best of my knowledge, your household is allowed to share purchased legally, someone please correct me if I'm wrong.
    Once you each have your own devices set to your own accounts you can set them to backup to that account and it will keep all your contacts seperate.

  • I just used stellar phoenix mac data recovery and it seemed to work but now my files won't open.  Even though they are "jpeg, mov" files the error message is  could not be opened. The movie's file format isn't recognized. "  Any help or are they corrupted

    I just used stellar phoenix mac data recovery and it seemed to work but now my files won't open.  Even though they are "jpeg, mov" files, the error message is  "could not be opened". The movie's file format isn't recognized. "  Any help or are they corrupted?

    Sounds to me like the file is probably corrupt. If you had hard drive corruption or damage, that could easily result in recovered files not being fully intact. If you were trying to recover accidentally deleted files, it's possible they might have been partially overwritten before recovering. There are never any guarantees with file recovery.
    Without more information on the circumstances that led you to try recovery, it's hard to give advice on what to try from here. You could always try another file recovery tool, like Data Rescue 3. Just be sure you're taking appropriate precautions when doing recovery. See Recovering deleted files.

  • Why can't I get my printer to print out a playlist from i-tunes? It used to work but now my printer doesn't seem to receive the "print" command.

    Why can't I get my printer to print out a playlist from i-tunes? It used to work, but now the printer doesn't seem to recognize the "print" command coming from i-tunes. The printer works for other applications!

    I  finally solved this problem after toiling with it for a couple of  days.  Solution:  Once you have  burned your CD you must go back into  iTunes to your music/playlists and select the playlist you just burned  and click file; print and you will  get the mosaics that we have been  accustomed to.  I was on hold with  Apple Support when I found this  myself.  Yes......!!! Problem solved..for me anyway.  Good luck!
    Scott

  • Since the latest apple update, voice navigation has gone away.  Tried the Airplane mode fix, which worked, but now my bluetooth won't work in my vehicle.  What's up?

    Since the latest apple update, voice navigation has gone away.  Tried the Airplane mode fix, which worked, but now my bluetooth won't work in my vehicle.  What's up?

    Well Bababooey if you're comparing yourself to a Apple Genius Bar then you should already know my answer, your snarky remark get a snarky reply.  Why would I go to a salesperson to fix my computer problem when I can go directly go to the source itself.  I used to sell Apple computers over 8 years ago and was apple certified before the Genius bar existed. If I am to go about fixing an issue I can't fix on my own I will go to the source itself meaning Apple's programmers and developers - being UI UX Developer myself I know they should have QA'd all platforms and troubleshooted any arising issues. 
    This was also the first time in the 20 years I've been using a Mac that I even attempted to go on this forum which i thought would put me in connection with a certified Apple representative.  This turned out to be a complete waste of time just being a public forum with no Apple employee involved.  I was hoping to find a quick fix but in turn I was only frustrated with stupid responses such as yours that were in no way an answer to my original question. 
    BTW I fixed the issue on my own and without your help or Apples help. I'm glad if all forums point here regarding this issue because I now have the answer. The answer I was looking for from someone earlier was as simple as this {Download Maverick and reinstall the platform - it will take an hour to do but afterward 10.9.2 was installed and my computer is now able to shutdown and restart without having to do a hard boot.}  No more software update bar at top and no problems with my drive which I told both you and Grant - I know my computer better than you and I've probably been using them longer than you. 
    So again Babowa you were so wrong...... and I am right.
    Again anyone having the same problem, I suggest reinstalling Maverick and you'll be suprised 10.9.2 will work fine.

Maybe you are looking for

  • Check for null

    Hi, Iam checking a id which is long, for null value. Checked for isNull( head.getEmpId()) but it throws me a error "The method isNull(long) is undefined for the type." I also tried it with == and .equals. Not sure about the error. Could you please he

  • No action instance for path /SubmitStudentInfoAction could be created

    Hello all: I am facing the floowing exception when use the struts with websphere 5.1 [03/11/04 21:32:15:526 AST] 6eecc29a WebGroup I SRVE0181I: [StudentRegistrationWeb.war] [StudentRegistrationWeb] [Servlet.LOG]: action: Error creating Action instanc

  • How do I reset my ID password? Why is it visible in the box when I type it?

    i Had an email saying someone had used my ID on another device to purchase something. It is probably spam but I decided to reset my password ( not by following the email links.) In the box there was no ' starring' for security but I went ahead and ty

  • Interlacing/ Scan Lines on iPhone 4S Screen + Yellow tint!

    Hi everyone I bought my 64gb IPhone last week and noticed that I have faint interlacing lines on my screen. My serial starts with c39 and I am extremely dissatisfied. I had my iPhone 4 replaced last year and the replacement had this issue as well. I

  • Trouble compiling for printed documentation

    hello, i am having trouble compiling a new document layout i have created, i have followed peter grainges instructions on his website but it always fails to generate straight away. Im using Robohelp x5 with word 2000, does anyone have any ideas? than