public OdeToFoodOAuthOptions()
        {
            var config = AppConfiguration.Config;

            TokenEndpointPath         = new PathString(config.TokenPath);
            AccessTokenExpireTimeSpan = TimeSpan.FromMinutes(config.ExpirationMinutes);
            AccessTokenFormat         = new OdeToFoodJwtWriterFormat();
            Provider = new OdeToFoodOAuthProvider();
            #if DEBUG
            AllowInsecureHttp = true;
            #endif
        }
Ejemplo n.º 2
0
        public OdeToFoodOAuthOptions()
        {
            var config = AppConfiguration.Config;

            TokenEndpointPath = new PathString(config.TokenPath);
            AccessTokenExpireTimeSpan = TimeSpan.FromMinutes(config.ExpirationMinutes);
            AccessTokenFormat = new OdeToFoodJwtWriterFormat(this);
            Provider = new OdeToFoodOAuthProvider();
            #if DEBUG
                AllowInsecureHttp = true;
            #endif
        }