Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using MyApp.Models;
- using Microsoft.AspNet.Builder;
- using Microsoft.Owin;
- using Microsoft.Owin.Security.OAuth;
- using Owin;
- using System;
- namespace MyApp
- {
- public class Startup
- {
- public void Configure(IApplicationBuilder app)
- {
- app.UseOAuthAuthorizationServer(new OAuthAuthorizationServerOptions
- {
- AllowInsecureHttp = true,
- TokenEndpointPath = new PathString("/token"),
- AccessTokenExpireTimeSpan = TimeSpan.FromDays(30)
- });
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement