16 references to GoogleOptions
Microsoft.AspNetCore.Authentication.Google (11)
GoogleExtensions.cs (7)
34
/// <param name="configureOptions">A delegate to configure <see cref="
GoogleOptions
"/>.</param>
36
public static AuthenticationBuilder AddGoogle(this AuthenticationBuilder builder, Action<
GoogleOptions
> configureOptions)
48
/// <param name="configureOptions">A delegate to configure <see cref="
GoogleOptions
"/>.</param>
50
public static AuthenticationBuilder AddGoogle(this AuthenticationBuilder builder, string authenticationScheme, Action<
GoogleOptions
> configureOptions)
63
/// <param name="configureOptions">A delegate to configure <see cref="
GoogleOptions
"/>.</param>
65
public static AuthenticationBuilder AddGoogle(this AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<
GoogleOptions
> configureOptions)
66
=> builder.AddOAuth<
GoogleOptions
, GoogleHandler>(authenticationScheme, displayName, configureOptions);
GoogleHandler.cs (3)
21
public class GoogleHandler : OAuthHandler<
GoogleOptions
>
28
public GoogleHandler(IOptionsMonitor<
GoogleOptions
> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock)
36
public GoogleHandler(IOptionsMonitor<
GoogleOptions
> options, ILoggerFactory logger, UrlEncoder encoder)
GoogleOptions.cs (1)
16
/// Initializes a new <see cref="
GoogleOptions
"/>.
Microsoft.AspNetCore.Authentication.Test (4)
GoogleTests.cs (4)
22
public class GoogleTests : RemoteAuthenticationTests<
GoogleOptions
>
29
protected override void RegisterAuth(AuthenticationBuilder services, Action<
GoogleOptions
> configure)
38
protected override void ConfigureDefaults(
GoogleOptions
o)
1144
private static async Task<IHost> CreateHost(Action<
GoogleOptions
> configureOptions, Func<HttpContext, Task> testpath = null)
SocialSample (1)
Startup.cs (1)
472
return Task.FromResult<OAuthOptions>(context.RequestServices.GetRequiredService<IOptionsMonitor<
GoogleOptions
>>().Get(currentAuthType));