GoogleOptions GoogleOptions GoogleOptions GoogleOptions Class

Definition

Configuration options for GoogleHandler.

public ref class GoogleOptions : Microsoft::AspNetCore::Authentication::OAuth::OAuthOptions
public class GoogleOptions : Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions
type GoogleOptions = class
    inherit OAuthOptions
Public Class GoogleOptions
Inherits OAuthOptions
Inheritance

Constructors

GoogleOptions() GoogleOptions() GoogleOptions() GoogleOptions()

Initializes a new GoogleOptions.

Properties

AccessDeniedPath AccessDeniedPath AccessDeniedPath AccessDeniedPath

Gets or sets the optional path the user agent is redirected to if the user doesn't approve the authorization demand requested by the remote server. This property is not set by default. In this case, an exception is thrown if an access_denied response is returned by the remote authorization server.

(Inherited from RemoteAuthenticationOptions)
AccessType AccessType AccessType AccessType

access_type. Set to 'offline' to request a refresh token.

AuthorizationEndpoint AuthorizationEndpoint AuthorizationEndpoint AuthorizationEndpoint

Gets or sets the URI where the client will be redirected to authenticate.

(Inherited from OAuthOptions)
Backchannel Backchannel Backchannel Backchannel

Used to communicate with the remote identity provider.

(Inherited from RemoteAuthenticationOptions)
BackchannelHttpHandler BackchannelHttpHandler BackchannelHttpHandler BackchannelHttpHandler

The HttpMessageHandler used to communicate with remote identity provider. This cannot be set at the same time as BackchannelCertificateValidator unless the value can be downcast to a WebRequestHandler.

(Inherited from RemoteAuthenticationOptions)
BackchannelTimeout BackchannelTimeout BackchannelTimeout BackchannelTimeout

Gets or sets timeout value in milliseconds for back channel communications with the remote identity provider.

(Inherited from RemoteAuthenticationOptions)
CallbackPath CallbackPath CallbackPath CallbackPath

The request path within the application's base path where the user-agent will be returned. The middleware will process this request when it arrives.

(Inherited from RemoteAuthenticationOptions)
ClaimActions ClaimActions ClaimActions ClaimActions

A collection of claim actions used to select values from the json user data and create Claims.

(Inherited from OAuthOptions)
ClaimsIssuer ClaimsIssuer ClaimsIssuer ClaimsIssuer

Gets or sets the issuer that should be used for any claims that are created

(Inherited from AuthenticationSchemeOptions)
ClientId ClientId ClientId ClientId

Gets or sets the provider-assigned client id.

(Inherited from OAuthOptions)
ClientSecret ClientSecret ClientSecret ClientSecret

Gets or sets the provider-assigned client secret.

(Inherited from OAuthOptions)
CorrelationCookie CorrelationCookie CorrelationCookie CorrelationCookie

Determines the settings used to create the correlation cookie before the cookie gets added to the response.

(Inherited from RemoteAuthenticationOptions)
DataProtectionProvider DataProtectionProvider DataProtectionProvider DataProtectionProvider

Gets or sets the type used to secure data.

(Inherited from RemoteAuthenticationOptions)
Events Events Events Events

Gets or sets the OAuthEvents used to handle authentication events.

(Inherited from OAuthOptions)
EventsType EventsType EventsType EventsType

If set, will be used as the service type to get the Events instance instead of the property.

(Inherited from AuthenticationSchemeOptions)
ForwardAuthenticate ForwardAuthenticate ForwardAuthenticate ForwardAuthenticate

If set, this specifies the target scheme that this scheme should forward AuthenticateAsync calls to. For example Context.AuthenticateAsync("ThisScheme") => Context.AuthenticateAsync("ForwardAuthenticateValue"); Set the target to the current scheme to disable forwarding and allow normal processing.

(Inherited from AuthenticationSchemeOptions)
ForwardChallenge ForwardChallenge ForwardChallenge ForwardChallenge

If set, this specifies the target scheme that this scheme should forward ChallengeAsync calls to. For example Context.ChallengeAsync("ThisScheme") => Context.ChallengeAsync("ForwardChallengeValue"); Set the target to the current scheme to disable forwarding and allow normal processing.

(Inherited from AuthenticationSchemeOptions)
ForwardDefault ForwardDefault ForwardDefault ForwardDefault

If set, this specifies a default scheme that authentication handlers should forward all authentication operations to by default. The default forwarding logic will check the most specific ForwardAuthenticate/Challenge/Forbid/SignIn/SignOut setting first, followed by checking the ForwardDefaultSelector, followed by ForwardDefault. The first non null result will be used as the target scheme to forward to.

(Inherited from AuthenticationSchemeOptions)
ForwardDefaultSelector ForwardDefaultSelector ForwardDefaultSelector ForwardDefaultSelector

Used to select a default scheme for the current request that authentication handlers should forward all authentication operations to by default. The default forwarding logic will check the most specific ForwardAuthenticate/Challenge/Forbid/SignIn/SignOut setting first, followed by checking the ForwardDefaultSelector, followed by ForwardDefault. The first non null result will be used as the target scheme to forward to.

(Inherited from AuthenticationSchemeOptions)
ForwardForbid ForwardForbid ForwardForbid ForwardForbid

If set, this specifies the target scheme that this scheme should forward ForbidAsync calls to. For example Context.ForbidAsync("ThisScheme") => Context.ForbidAsync("ForwardForbidValue"); Set the target to the current scheme to disable forwarding and allow normal processing.

(Inherited from AuthenticationSchemeOptions)
ForwardSignIn ForwardSignIn ForwardSignIn ForwardSignIn

If set, this specifies the target scheme that this scheme should forward SignInAsync calls to. For example Context.SignInAsync("ThisScheme") => Context.SignInAsync("ForwardSignInValue"); Set the target to the current scheme to disable forwarding and allow normal processing.

(Inherited from AuthenticationSchemeOptions)
ForwardSignOut ForwardSignOut ForwardSignOut ForwardSignOut

If set, this specifies the target scheme that this scheme should forward SignOutAsync calls to. For example Context.SignOutAsync("ThisScheme") => Context.SignOutAsync("ForwardSignOutValue"); Set the target to the current scheme to disable forwarding and allow normal processing.

(Inherited from AuthenticationSchemeOptions)
RemoteAuthenticationTimeout RemoteAuthenticationTimeout RemoteAuthenticationTimeout RemoteAuthenticationTimeout

Gets or sets the time limit for completing the authentication flow (15 minutes by default).

(Inherited from RemoteAuthenticationOptions)
ReturnUrlParameter ReturnUrlParameter ReturnUrlParameter ReturnUrlParameter

Gets or sets the name of the parameter used to convey the original location of the user before the remote challenge was triggered up to the access denied page. This property is only used when the AccessDeniedPath is explicitly specified.

(Inherited from RemoteAuthenticationOptions)
SaveTokens SaveTokens SaveTokens SaveTokens

Defines whether access and refresh tokens should be stored in the AuthenticationProperties after a successful authorization. This property is set to false by default to reduce the size of the final authentication cookie.

(Inherited from RemoteAuthenticationOptions)
Scope Scope Scope Scope

Gets the list of permissions to request.

(Inherited from OAuthOptions)
SignInScheme SignInScheme SignInScheme SignInScheme

Gets or sets the authentication scheme corresponding to the middleware responsible of persisting user's identity after a successful authentication. This value typically corresponds to a cookie middleware registered in the Startup class. When omitted, DefaultSignInScheme is used as a fallback value.

(Inherited from RemoteAuthenticationOptions)
StateDataFormat StateDataFormat StateDataFormat StateDataFormat

Gets or sets the type used to secure data handled by the middleware.

(Inherited from OAuthOptions)
TokenEndpoint TokenEndpoint TokenEndpoint TokenEndpoint

Gets or sets the URI the middleware will access to exchange the OAuth token.

(Inherited from OAuthOptions)
UsePkce UsePkce UsePkce UsePkce

Enables or disables the use of the Proof Key for Code Exchange (PKCE) standard. See https://tools.ietf.org/html/rfc7636. The default value is false but derived handlers should enable this if their provider supports it.

(Inherited from OAuthOptions)
UserInformationEndpoint UserInformationEndpoint UserInformationEndpoint UserInformationEndpoint

Gets or sets the URI the middleware will access to obtain the user information. This value is not used in the default implementation, it is for use in custom implementations of IOAuthAuthenticationEvents.Authenticated or OAuthAuthenticationHandler.CreateTicketAsync.

(Inherited from OAuthOptions)

Methods

Validate() Validate() Validate() Validate()

Check that the options are valid. Should throw an exception if things are not ok.

(Inherited from OAuthOptions)
Validate(String) Validate(String) Validate(String) Validate(String)

Checks that the options are valid for a specific scheme

(Inherited from RemoteAuthenticationOptions)

Applies to