Search code examples
azure-web-app-serviceazure-mobile-servicesazure-api-appsazure-api-management

Azure Apps JWT Authentication


I can't seem to find any documentation from Azure App Services on how to actually implement either:

  1. Use a JWT for authentication/authorization (directly without using a session id)
  2. Exchange a JWT for a session id

Docs show state that is it possible but nowhere do i find code examples.


Solution

  • Per #1 - i found this is the easiest approach for Azure based sites...

    Simply put the autheticationToken token return into future header as

    x-zumo-auth: [token]
    

    Per #2 exchanging the auth code for a session ID - i think the simplest solution is to do the above to a webservice (include the x-zumo-auth header) and have the server return the SessionID from a web api call.