public OAuthMiddleware( AppDelegate next, OAuthConfiguration config, IDictionary<string, object> env, ResultDelegate result, Action<Exception> fault) { m_config = config; m_env = env; m_result = result; m_ctx = new OAuthContext(next, m_env, m_result, fault); }
public static IAppBuilder UseOAuth(this IAppBuilder builder, OAuthConfiguration configuration) { return builder.Use(Middleware, configuration); }
public static AppDelegate Middleware(AppDelegate app, OAuthConfiguration config) { return (env, result, fault) => new OAuthMiddleware(app, config, env, result, fault).Handle(); }