Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OAuthAuthorizationServerOptions OAuthServerOptions = new OAuthAuthorizationServerOptions()
- {
- AllowInsecureHttp = false,
- TokenEndpointPath = new PathString("/token"),
- AccessTokenExpireTimeSpan = TimeSpan.FromDays(1),
- Provider = new SimpleAuthorizationServerProvider()
- };
- // Token Generation
- app.UseOAuthBearerTokens(OAuthServerOptions);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement