OAuthDefaultHandlerTOptions - класс

OAuth-обработчик аутентификации пользователя по умолчанию.

Definition

Пространство имён: Tessa.Web.Client.OAuth
Сборка: Tessa.Web.Client (в Tessa.Web.Client.dll) Версия: 4.0.4
C#
public class OAuthDefaultHandler<TOptions> : OAuthHandler<TOptions>
where TOptions : new(), OAuthOptions
Inheritance
Object    AuthenticationHandlerTOptions    RemoteAuthenticationHandlerTOptions    OAuthHandlerTOptions    OAuthDefaultHandlerTOptions

Параметры типа

TOptions

Конструкторы

OAuthDefaultHandlerTOptions Создает экземпляр класса OAuthDefaultHandlerTOptions.

Свойства

Backchannel Gets the HttpClient instance used to communicate with the remote authentication provider.
(Унаследован от OAuthHandlerTOptions)
ClaimsIssuer Gets the issuer that should be used when any claims are issued.
(Унаследован от AuthenticationHandlerTOptions)
Clock Gets the ISystemClock.
(Унаследован от AuthenticationHandlerTOptions)
Устарело.
Context Gets or sets the HttpContext.
(Унаследован от AuthenticationHandlerTOptions)
CurrentUri Gets the absolute current url.
(Унаследован от AuthenticationHandlerTOptions)
Events The handler calls methods on the events which give the application control at certain points where processing is occurring. If it is not provided a default instance is supplied which does nothing when the methods are called.
(Унаследован от OAuthHandlerTOptions)
Logger Gets the ILogger.
(Унаследован от AuthenticationHandlerTOptions)
Options Gets or sets the options associated with this authentication handler.
(Унаследован от AuthenticationHandlerTOptions)
OptionsMonitor Gets the IOptionsMonitorTOptions to detect changes to options.
(Унаследован от AuthenticationHandlerTOptions)
OriginalPath Gets the path as seen by the authentication middleware.
(Унаследован от AuthenticationHandlerTOptions)
OriginalPathBase Gets the path base as seen by the authentication middleware.
(Унаследован от AuthenticationHandlerTOptions)
Request Gets the HttpRequest associated with the current request.
(Унаследован от AuthenticationHandlerTOptions)
Response Gets the HttpResponse associated with the current request.
(Унаследован от AuthenticationHandlerTOptions)
Scheme Gets or sets the AuthenticationScheme asssociated with this authentication handler.
(Унаследован от AuthenticationHandlerTOptions)
SignInScheme The authentication scheme used by default for signin.
(Унаследован от RemoteAuthenticationHandlerTOptions)
TimeProvider Gets the current time, primarily for unit testing.
(Унаследован от AuthenticationHandlerTOptions)
UrlEncoder Gets the UrlEncoder.
(Унаследован от AuthenticationHandlerTOptions)

Методы

AuthenticateAsync
(Унаследован от AuthenticationHandlerTOptions)
BuildChallengeUrl Constructs the OAuth challenge url.
(Унаследован от OAuthHandlerTOptions)
BuildRedirectUri Constructs an absolute url for the specified targetPath.
(Унаследован от AuthenticationHandlerTOptions)
ChallengeAsync
(Унаследован от AuthenticationHandlerTOptions)
CreateEventsAsync Creates a new instance of the events instance.
(Унаследован от OAuthHandlerTOptions)
CreateTicketAsync(ClaimsIdentity, AuthenticationProperties, OAuthTokenResponse) 
CreateTicketAsync(Void, AuthenticationTicket, ClaimsIdentity)
(Унаследован от OAuthHandlerTOptions)
ExchangeCodeAsync
(Унаследован от OAuthHandlerTOptions)
ForbidAsync
(Унаследован от AuthenticationHandlerTOptions)
FormatBoolean Форматирует булево значение в виде строки.
FormatScope Format the Scope property.
(Унаследован от OAuthHandlerTOptions)
[M:Microsoft.AspNetCore.Authentication.OAuth.OAuthHandler`1.FormatScope(System.Collections.Generic.IEnumerable`1)]
(Унаследован от OAuthHandlerTOptions)
GenerateCorrelationId Produces a cookie containing a nonce used to correlate the current remote authentication request.
(Унаследован от RemoteAuthenticationHandlerTOptions)
HandleAccessDeniedErrorAsync
(Унаследован от RemoteAuthenticationHandlerTOptions)
HandleAuthenticateAsync
(Унаследован от RemoteAuthenticationHandlerTOptions)
HandleAuthenticateOnceAsync Used to ensure HandleAuthenticateAsync is only invoked once. The subsequent calls will return the same authenticate result.
(Унаследован от AuthenticationHandlerTOptions)
HandleAuthenticateOnceSafeAsync Used to ensure HandleAuthenticateAsync is only invoked once safely. The subsequent calls will return the same authentication result. Any exceptions will be converted into a failed authentication result containing the exception.
(Унаследован от AuthenticationHandlerTOptions)
HandleChallengeAsync
(Унаследован от OAuthHandlerTOptions)
HandleForbiddenAsync
(Унаследован от RemoteAuthenticationHandlerTOptions)
HandleRemoteAuthenticateAsync
(Унаследован от OAuthHandlerTOptions)
HandleRequestAsync Handles the current authentication request.
(Унаследован от RemoteAuthenticationHandlerTOptions)
InitializeAsync Initialize the handler, resolve the options and validate them.
(Унаследован от AuthenticationHandlerTOptions)
InitializeEventsAsync Initializes the events object, called once per request by InitializeAsync(AuthenticationScheme, HttpContext).
(Переопределяет AuthenticationHandlerTOptionsInitializeEventsAsync)
InitializeHandlerAsync Called after options/events have been initialized for the handler to finish initializing itself.
(Унаследован от AuthenticationHandlerTOptions)
ResolveTarget Resolves the scheme that this authentication operation is forwarded to.
(Унаследован от AuthenticationHandlerTOptions)
SetQueryParameter(IDictionaryString, StringValues, AuthenticationProperties, String, String) Добавляет параметр запроса без форматирования.
SetQueryParameterT(IDictionaryString, StringValues, AuthenticationProperties, String, FuncT, String, T) Добавляет параметр запроса с учётом форматирования.
ShouldHandleRequestAsync Gets a value that determines if the current authentication request should be handled by HandleRequestAsync.
(Переопределяет RemoteAuthenticationHandlerTOptionsShouldHandleRequestAsync)
ValidateCorrelationId Validates that the current request correlates with the current remote authentication request.
(Унаследован от RemoteAuthenticationHandlerTOptions)

См. также