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 }
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 }