c# - Authentication in local debug build of Azure App Service results in 401 Unauthorized -


i'm trying debug azure app service .net backend project has authentication/authorization enabled database api access. attempting use results in 401 unauthorized.

i have set, suggested elsewhere, mobileserviceclient object's alternateloginhost point remote azure service relied on. in app service project, have copied signingkey kudu settings page (https://[servicename].scm.azurewebsites.net) , have set validaudience , validissuer app service address (https://[servicename].azurewebsites.net/). configuremobileapp() calls useappserviceauthentication web.config local values, usewebapi called.

i've looked @ requests , responses fiddler, , have x-zumo-auth token. i've switched between local vs. remote service, , remote service accept token while local service rejects it.

i'm not sure go here. did miss something? there else check?

it turns out there incompatibility in azure app service library system.identitymodel.tokens.jwt v5. discovered trying use token validation method manually, presented typeloadexception system.identitymodel.tokens.jwtsecuritytoken.

unfortunately, exception doesn't appear in debug log during normal debugging.

this incompatibility appears known issue, dependency in nuget package doesn't note it. (https://github.com/azure/azure-mobile-apps-net-server/issues/195)


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

Why does math.random(999999999999) returns 1 in Lua? -