OAuthDefaultHandler<TOptions> - класс

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

Definition

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

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

TOptions

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

OAuthDefaultHandler<TOptions> Создает экземпляр класса OAuthDefaultHandler<TOptions>.

Свойства

Backchannel Gets the HttpClient instance used to communicate with the remote authentication provider.
(Унаследован от OAuthHandler<TOptions>)
ClaimsIssuer Gets the issuer that should be used when any claims are issued.
(Унаследован от AuthenticationHandler<TOptions>)
Clock Gets the ISystemClock.
(Унаследован от AuthenticationHandler<TOptions>)
Context Gets or sets the HttpContext.
(Унаследован от AuthenticationHandler<TOptions>)
CurrentUri Gets the absolute current url.
(Унаследован от AuthenticationHandler<TOptions>)
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.
(Унаследован от OAuthHandler<TOptions>)
Logger Gets the ILogger.
(Унаследован от AuthenticationHandler<TOptions>)
Options Gets or sets the options associated with this authentication handler.
(Унаследован от AuthenticationHandler<TOptions>)
OptionsMonitor Gets the IOptionsMonitor<TOptions> to detect changes to options.
(Унаследован от AuthenticationHandler<TOptions>)
OriginalPath Gets the path as seen by the authentication middleware.
(Унаследован от AuthenticationHandler<TOptions>)
OriginalPathBase Gets the path base as seen by the authentication middleware.
(Унаследован от AuthenticationHandler<TOptions>)
Request Gets the HttpRequest associated with the current request.
(Унаследован от AuthenticationHandler<TOptions>)
Response Gets the HttpResponse associated with the current request.
(Унаследован от AuthenticationHandler<TOptions>)
Scheme Gets or sets the AuthenticationScheme asssociated with this authentication handler.
(Унаследован от AuthenticationHandler<TOptions>)
SignInScheme The authentication scheme used by default for signin.
(Унаследован от RemoteAuthenticationHandler<TOptions>)
UrlEncoder Gets the UrlEncoder.
(Унаследован от AuthenticationHandler<TOptions>)

Методы

AuthenticateAsync
(Унаследован от AuthenticationHandler<TOptions>)
BuildChallengeUrl Constructs the OAuth challenge url.
(Унаследован от OAuthHandler<TOptions>)
BuildRedirectUri Constructs an absolute url for the specified targetPath.
(Унаследован от AuthenticationHandler<TOptions>)
ChallengeAsync
(Унаследован от AuthenticationHandler<TOptions>)
CreateEventsAsync Creates a new instance of the events instance.
(Унаследован от OAuthHandler<TOptions>)
CreateTicketAsync(ClaimsIdentity, AuthenticationProperties, OAuthTokenResponse) Creates an AuthenticationTicket from the specified tokens.
(Унаследован от OAuthHandler<TOptions>)
CreateTicketAsync(ClaimsIdentity, AuthenticationProperties, OAuthTokenResponse) 
ExchangeCodeAsync Exchanges the authorization code for a authorization token from the remote provider.
(Унаследован от OAuthHandler<TOptions>)
ForbidAsync
(Унаследован от AuthenticationHandler<TOptions>)
FormatBoolean Форматирует булево значение в виде строки.
FormatScope() Format the Scope property.
(Унаследован от OAuthHandler<TOptions>)
FormatScope(IEnumerable<String>) Format a list of OAuth scopes.
(Унаследован от OAuthHandler<TOptions>)
GenerateCorrelationId Produces a cookie containing a nonce used to correlate the current remote authentication request.
(Унаследован от RemoteAuthenticationHandler<TOptions>)
HandleAccessDeniedErrorAsync
(Унаследован от RemoteAuthenticationHandler<TOptions>)
HandleAuthenticateAsync
(Унаследован от RemoteAuthenticationHandler<TOptions>)
HandleAuthenticateOnceAsync Used to ensure HandleAuthenticateAsync is only invoked once. The subsequent calls will return the same authenticate result.
(Унаследован от AuthenticationHandler<TOptions>)
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.
(Унаследован от AuthenticationHandler<TOptions>)
HandleChallengeAsync
(Унаследован от OAuthHandler<TOptions>)
HandleForbiddenAsync
(Унаследован от RemoteAuthenticationHandler<TOptions>)
HandleRemoteAuthenticateAsync
(Унаследован от OAuthHandler<TOptions>)
HandleRequestAsync Handles the current authentication request.
(Унаследован от RemoteAuthenticationHandler<TOptions>)
InitializeAsync Initialize the handler, resolve the options and validate them.
(Унаследован от AuthenticationHandler<TOptions>)
InitializeEventsAsync Initializes the events object, called once per request by InitializeAsync(AuthenticationScheme, HttpContext).
(Переопределяет AuthenticationHandler<TOptions>.InitializeEventsAsync())
InitializeHandlerAsync Called after options/events have been initialized for the handler to finish initializing itself.
(Унаследован от AuthenticationHandler<TOptions>)
ResolveTarget Resolves the scheme that this authentication operation is forwarded to.
(Унаследован от AuthenticationHandler<TOptions>)
SetQueryParameter(IDictionary<String, StringValues>, AuthenticationProperties, String, String) Добавляет параметр запроса без форматирования.
SetQueryParameter<T>(IDictionary<String, StringValues>, AuthenticationProperties, String, Func<T, String>, T) Добавляет параметр запроса с учётом форматирования.
ShouldHandleRequestAsync Gets a value that determines if the current authentication request should be handled by HandleRequestAsync().
(Переопределяет RemoteAuthenticationHandler<TOptions>.ShouldHandleRequestAsync())
ValidateCorrelationId Validates that the current request correlates wit hthe
(Унаследован от RemoteAuthenticationHandler<TOptions>)

См. также