thinktecture-ident-model

AuthorizationCodeProvider: Create is never called, how do I generate the authorization code?

≡放荡痞女 提交于 2019-12-01 21:17:21
I'm setting up my own OAuth2 server. So far, I have succesfully implemented GrantResourceOwnerCredentials in my implementation of OAuthAuthorizationServerProvider . Now, because I am developing an app for our business, I want to implement the OAuth2 Authorization Code grant. I have tried to follow directions here https://docs.microsoft.com/en-us/aspnet/aspnet/overview/owin-and-katana/owin-oauth-20-authorization-server but in my implementation, I have not found how to reach the Create call of the AuthorizationCodeProvider (which I set in OAuthAuthorizationServerOptions ). I have briefly checked

Thinktecture IdentityModel AuthenticationConfiguration Mapping for Cookie - how?

拜拜、爱过 提交于 2019-12-01 08:10:10
I have a Web API based application currently set up using the amazing Thinktecture IdentityModel 4.5. It is set up for claims-based authentication, accepting a Basic auth credential sent in on the Authorization header. The javascript client saves the returned session token and uses this for subsequent requests by including it in the Authorization header preceded by Session as the scheme. The javascript client also saves the token to a cookie, for retrieval if the window is closed and reopened quickly, or when new windows are opened to prevent the user having to re-authenticate. The cookie is