Example #1
0
 public MyOauthOptions()
 {
     TokenEndpointPath         = new Microsoft.Owin.PathString("/token");
     AccessTokenExpireTimeSpan = TimeSpan.FromMinutes(60);
     AccessTokenFormat         = new MyJwtFormat();
     Provider = new MyOAuthProvider();
     #if DEBUG
     AllowInsecureHttp = true;
     #endif
 }
Example #2
0
        public OAuthOptions(string ip)
        {
            TokenEndpointPath = new Microsoft.Owin.PathString("/token");

            AccessTokenExpireTimeSpan = TimeSpan.FromMinutes(60);
            AccessTokenFormat         = new JwtFormat(this, ip);
            Provider = new OAuthProvider();

            // ToDo: Please do not forget to uncomment following #if debug line on production
            //#if DEBUG
            AllowInsecureHttp = true;
            //#endif
        }