19 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()