owin.security

Authorization_code grant flow on Owin.Security.OAuth: returns invalid_grant

不羁的心 提交于 2019-12-06 02:21:56
问题 I am trying to setup my authentication using the authorization_code grant flow. I had it previously working with grant_type=password , so I kind of know how the stuff is supposed to work. But when using grant_type=authorization_code , I couldn't make it return anything other than invalid_grant Here is my setup: app.UseOAuthAuthorizationServer(new OAuthAuthorizationServerOptions { AllowInsecureHttp = true, TokenEndpointPath = new PathString("/auth/token"), AccessTokenExpireTimeSpan = TimeSpan

Authorization_code grant flow on Owin.Security.OAuth: returns invalid_grant

梦想的初衷 提交于 2019-12-04 07:23:46
I am trying to setup my authentication using the authorization_code grant flow. I had it previously working with grant_type=password , so I kind of know how the stuff is supposed to work. But when using grant_type=authorization_code , I couldn't make it return anything other than invalid_grant Here is my setup: app.UseOAuthAuthorizationServer(new OAuthAuthorizationServerOptions { AllowInsecureHttp = true, TokenEndpointPath = new PathString("/auth/token"), AccessTokenExpireTimeSpan = TimeSpan.FromMinutes(5), Provider = new SampleAuthProvider() }); app.UseOAuthBearerAuthentication(new