19 references to OAuthOptions
Microsoft.AspNetCore.Authentication.OAuth (19)
Events\OAuthCreatingTicketContext.cs (2)
15public class OAuthCreatingTicketContext : ResultContext<OAuthOptions> 33OAuthOptions options,
Events\OAuthEvents.cs (2)
19public Func<RedirectContext<OAuthOptions>, Task> OnRedirectToAuthorizationEndpoint { get; set; } = context => 36public virtual Task RedirectToAuthorizationEndpoint(RedirectContext<OAuthOptions> context) => OnRedirectToAuthorizationEndpoint(context);
OAuthExtensions.cs (10)
22/// <param name="configureOptions">A delegate to configure <see cref="OAuthOptions"/>.</param> 24public static AuthenticationBuilder AddOAuth(this AuthenticationBuilder builder, string authenticationScheme, Action<OAuthOptions> configureOptions) 25=> builder.AddOAuth<OAuthOptions, OAuthHandler<OAuthOptions>>(authenticationScheme, configureOptions); 33/// <param name="configureOptions">A delegate to configure <see cref="OAuthOptions"/>.</param> 35public static AuthenticationBuilder AddOAuth(this AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<OAuthOptions> configureOptions) 36=> builder.AddOAuth<OAuthOptions, OAuthHandler<OAuthOptions>>(authenticationScheme, displayName, configureOptions); 46where TOptions : OAuthOptions, new() 59where TOptions : OAuthOptions, new()
OAuthHandler.cs (3)
23public class OAuthHandler<TOptions> : RemoteAuthenticationHandler<TOptions> where TOptions : OAuthOptions, new() 274var redirectContext = new RedirectContext<OAuthOptions>( 348/// Format the <see cref="OAuthOptions.Scope"/> property.
OAuthOptions.cs (1)
15/// Initializes a new instance of <see cref="OAuthOptions"/>.
OAuthPostConfigureOptions.cs (1)
16where TOptions : OAuthOptions, new()