3 types derived from OAuthOptions
Microsoft.AspNetCore.Authentication.Facebook (1)
FacebookOptions.cs (1)
13
public class FacebookOptions :
OAuthOptions
Microsoft.AspNetCore.Authentication.Google (1)
GoogleOptions.cs (1)
13
public class GoogleOptions :
OAuthOptions
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
MicrosoftAccountOptions.cs (1)
13
public class MicrosoftAccountOptions :
OAuthOptions
31 references to OAuthOptions
Microsoft.AspNetCore.Authentication.OAuth (19)
Events\OAuthCreatingTicketContext.cs (2)
15
public class OAuthCreatingTicketContext : ResultContext<
OAuthOptions
>
33
OAuthOptions
options,
Events\OAuthEvents.cs (2)
19
public Func<RedirectContext<
OAuthOptions
>, Task> OnRedirectToAuthorizationEndpoint { get; set; } = context =>
36
public virtual Task RedirectToAuthorizationEndpoint(RedirectContext<
OAuthOptions
> context) => OnRedirectToAuthorizationEndpoint(context);
OAuthExtensions.cs (10)
22
/// <param name="configureOptions">A delegate to configure <see cref="
OAuthOptions
"/>.</param>
24
public 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>
35
public static AuthenticationBuilder AddOAuth(this AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<
OAuthOptions
> configureOptions)
36
=> builder.AddOAuth<
OAuthOptions
, OAuthHandler<
OAuthOptions
>>(authenticationScheme, displayName, configureOptions);
46
where TOptions :
OAuthOptions
, new()
59
where TOptions :
OAuthOptions
, new()
OAuthHandler.cs (3)
23
public class OAuthHandler<TOptions> : RemoteAuthenticationHandler<TOptions> where TOptions :
OAuthOptions
, new()
274
var 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)
16
where TOptions :
OAuthOptions
, new()
Microsoft.AspNetCore.Authentication.Test (4)
OAuthTests.cs (4)
18
public class OAuthTests : RemoteAuthenticationTests<
OAuthOptions
>
21
protected override Type HandlerType => typeof(OAuthHandler<
OAuthOptions
>);
25
protected override void RegisterAuth(AuthenticationBuilder services, Action<
OAuthOptions
> configure)
280
protected override void ConfigureDefaults(
OAuthOptions
o)
SocialSample (8)
Startup.cs (8)
320
var
options = await GetOAuthOptionsAsync(context, currentAuthType);
357
var
options = await GetOAuthOptionsAsync(context, currentAuthType);
468
private Task<
OAuthOptions
> GetOAuthOptionsAsync(HttpContext context, string currentAuthType)
472
return Task.FromResult<
OAuthOptions
>(context.RequestServices.GetRequiredService<IOptionsMonitor<GoogleOptions>>().Get(currentAuthType));
476
return Task.FromResult<
OAuthOptions
>(context.RequestServices.GetRequiredService<IOptionsMonitor<MicrosoftAccountOptions>>().Get(currentAuthType));
480
return Task.FromResult<
OAuthOptions
>(context.RequestServices.GetRequiredService<IOptionsMonitor<FacebookOptions>>().Get(currentAuthType));
484
return Task.FromResult<
OAuthOptions
>(context.RequestServices.GetRequiredService<IOptionsMonitor<
OAuthOptions
>>().Get(currentAuthType));