3 types derived from OAuthOptions
Microsoft.AspNetCore.Authentication.Facebook (1)
FacebookOptions.cs (1)
13public class FacebookOptions : OAuthOptions
Microsoft.AspNetCore.Authentication.Google (1)
GoogleOptions.cs (1)
13public class GoogleOptions : OAuthOptions
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
MicrosoftAccountOptions.cs (1)
13public class MicrosoftAccountOptions : OAuthOptions
31 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()
Microsoft.AspNetCore.Authentication.Test (4)
OAuthTests.cs (4)
18public class OAuthTests : RemoteAuthenticationTests<OAuthOptions> 21protected override Type HandlerType => typeof(OAuthHandler<OAuthOptions>); 25protected override void RegisterAuth(AuthenticationBuilder services, Action<OAuthOptions> configure) 280protected override void ConfigureDefaults(OAuthOptions o)
SocialSample (8)
Startup.cs (8)
320var options = await GetOAuthOptionsAsync(context, currentAuthType); 357var options = await GetOAuthOptionsAsync(context, currentAuthType); 468private Task<OAuthOptions> GetOAuthOptionsAsync(HttpContext context, string currentAuthType) 472return Task.FromResult<OAuthOptions>(context.RequestServices.GetRequiredService<IOptionsMonitor<GoogleOptions>>().Get(currentAuthType)); 476return Task.FromResult<OAuthOptions>(context.RequestServices.GetRequiredService<IOptionsMonitor<MicrosoftAccountOptions>>().Get(currentAuthType)); 480return Task.FromResult<OAuthOptions>(context.RequestServices.GetRequiredService<IOptionsMonitor<FacebookOptions>>().Get(currentAuthType)); 484return Task.FromResult<OAuthOptions>(context.RequestServices.GetRequiredService<IOptionsMonitor<OAuthOptions>>().Get(currentAuthType));