Advertisement
Guest User

Untitled

a guest
May 6th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. OAuthAuthorizationServerOptions OAuthServerOptions = new OAuthAuthorizationServerOptions()
  2. {
  3. AllowInsecureHttp = false,
  4. TokenEndpointPath = new PathString("/token"),
  5. AccessTokenExpireTimeSpan = TimeSpan.FromDays(1),
  6. Provider = new SimpleAuthorizationServerProvider()
  7. };
  8.  
  9. // Token Generation
  10. app.UseOAuthBearerTokens(OAuthServerOptions);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement