Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. using MyApp.Models;
  2. using Microsoft.AspNet.Builder;
  3. using Microsoft.Owin;
  4. using Microsoft.Owin.Security.OAuth;
  5. using Owin;
  6. using System;
  7.  
  8. namespace MyApp
  9. {
  10. public class Startup
  11. {
  12. public void Configure(IApplicationBuilder app)
  13. {
  14. app.UseOAuthAuthorizationServer(new OAuthAuthorizationServerOptions
  15. {
  16. AllowInsecureHttp = true,
  17. TokenEndpointPath = new PathString("/token"),
  18. AccessTokenExpireTimeSpan = TimeSpan.FromDays(30)
  19. });
  20. }
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement