16 references to MicrosoftAccountOptions
Microsoft.AspNetCore.Authentication.MicrosoftAccount (11)
MicrosoftAccountExtensions.cs (7)
34
/// <param name="configureOptions">A delegate to configure <see cref="
MicrosoftAccountOptions
"/>.</param>
36
public static AuthenticationBuilder AddMicrosoftAccount(this AuthenticationBuilder builder, Action<
MicrosoftAccountOptions
> configureOptions)
48
/// <param name="configureOptions">A delegate to configure <see cref="
MicrosoftAccountOptions
"/>.</param>
50
public static AuthenticationBuilder AddMicrosoftAccount(this AuthenticationBuilder builder, string authenticationScheme, Action<
MicrosoftAccountOptions
> configureOptions)
63
/// <param name="configureOptions">A delegate to configure <see cref="
MicrosoftAccountOptions
"/>.</param>
65
public static AuthenticationBuilder AddMicrosoftAccount(this AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<
MicrosoftAccountOptions
> configureOptions)
66
=> builder.AddOAuth<
MicrosoftAccountOptions
, MicrosoftAccountHandler>(authenticationScheme, displayName, configureOptions);
MicrosoftAccountHandler.cs (3)
21
public class MicrosoftAccountHandler : OAuthHandler<
MicrosoftAccountOptions
>
28
public MicrosoftAccountHandler(IOptionsMonitor<
MicrosoftAccountOptions
> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock)
36
public MicrosoftAccountHandler(IOptionsMonitor<
MicrosoftAccountOptions
> options, ILoggerFactory logger, UrlEncoder encoder)
MicrosoftAccountOptions.cs (1)
16
/// Initializes a new <see cref="
MicrosoftAccountOptions
"/>.
Microsoft.AspNetCore.Authentication.Test (4)
MicrosoftAccountTests.cs (4)
23
public class MicrosoftAccountTests : RemoteAuthenticationTests<
MicrosoftAccountOptions
>
30
protected override void RegisterAuth(AuthenticationBuilder services, Action<
MicrosoftAccountOptions
> configure)
39
protected override void ConfigureDefaults(
MicrosoftAccountOptions
o)
355
private static async Task<IHost> CreateHost(Action<
MicrosoftAccountOptions
> configureOptions)
SocialSample (1)
Startup.cs (1)
476
return Task.FromResult<OAuthOptions>(context.RequestServices.GetRequiredService<IOptionsMonitor<
MicrosoftAccountOptions
>>().Get(currentAuthType));