// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using Microsoft.AspNet.Authentication.OAuth; using Microsoft.Framework.Internal; using Microsoft.Framework.OptionsModel; namespace Microsoft.AspNet.Builder { /// /// Extension methods for using /// public static class OAuthExtensions { /// /// Authenticate users using OAuth. /// /// The passed to the configure method. /// The middleware configuration options. /// The updated . public static IApplicationBuilder UseOAuthAuthentication([NotNull] this IApplicationBuilder app, [NotNull] IOptions options) { return app.UseMiddleware>( options, new ConfigureOptions(o => { })); } } }