I'm using OAuth2 Generted form WebAPi project in MVC C# , How I can refresh access_token when expired time
OAuthOptions = new OAuthAuthorizationServerOptions
{
TokenEndpointPath = new PathString("/Token"),
Provider = new ApplicationOAuthProvider(PublicClientId),
AuthorizeEndpointPath = new PathString("/api/Account/ExternalLogin"),
AccessTokenExpireTimeSpan = TimeSpan.FromDays(14),
// In production mode set AllowInsecureHttp = false
AllowInsecureHttp = true
};
The Default Token Expire Time is 14 days , Is possible refresh access_token without use login again
question from:
https://stackoverflow.com/questions/65883488/refresh-access-token-in-oauth2-in-webapi-c-sharp 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…