I have a web app which contains services used by both a browser delivered javascript application and also an Android mobile phone application.
The javascript application uses a System.IdentityModel.SessionAuthenticationModule cookie for authentication, and the mobile app uses a JWT token in the Authentication header.
I can configure the application to work with either the System.IdentityModel.SessionAuthenticationModule and the cookie works or the thinktecture AuthorizationHandler and the token works, but I can't work out how to get them both to work at the same time?
This answer Thinktecture IdentityModel AuthenticationConfiguration Mapping for Cookie - how? suggests it's not possible but it seems to be using a custom cookie and not FederatedAuthentication.SessionAuthenticationModule.WriteSessionTokenToCookie(token);