OAuthHandler<TOptions> Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
OAuthHandler<TOptions>(HttpClient) | |
OAuthHandler<TOptions>(IOptionsMonitor<TOptions>, ILoggerFactory, UrlEncoder) |
Initializes a new instance of OAuthHandler<TOptions>. |
OAuthHandler<TOptions>(IOptionsMonitor<TOptions>, ILoggerFactory, UrlEncoder, ISystemClock) |
Obsolete.
Initializes a new instance of OAuthHandler<TOptions>. |
OAuthHandler<TOptions>(HttpClient)
public:
OAuthHandler(System::Net::Http::HttpClient ^ backchannel);
public OAuthHandler (System.Net.Http.HttpClient backchannel);
new Microsoft.AspNetCore.Authentication.OAuth.OAuthHandler<'Options (requires 'Options :> Microsoft.AspNetCore.Builder.OAuthOptions)> : System.Net.Http.HttpClient -> Microsoft.AspNetCore.Authentication.OAuth.OAuthHandler<'Options (requires 'Options :> Microsoft.AspNetCore.Builder.OAuthOptions)>
Public Sub New (backchannel As HttpClient)
Parameters
- backchannel
- HttpClient
Applies to
OAuthHandler<TOptions>(IOptionsMonitor<TOptions>, ILoggerFactory, UrlEncoder)
- Source:
- OAuthHandler.cs
Initializes a new instance of OAuthHandler<TOptions>.
public OAuthHandler (Microsoft.Extensions.Options.IOptionsMonitor<TOptions> options, Microsoft.Extensions.Logging.ILoggerFactory logger, System.Text.Encodings.Web.UrlEncoder encoder);
new Microsoft.AspNetCore.Authentication.OAuth.OAuthHandler<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions and 'Options : (new : unit -> 'Options))> : Microsoft.Extensions.Options.IOptionsMonitor<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions and 'Options : (new : unit -> 'Options))> * Microsoft.Extensions.Logging.ILoggerFactory * System.Text.Encodings.Web.UrlEncoder -> Microsoft.AspNetCore.Authentication.OAuth.OAuthHandler<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions and 'Options : (new : unit -> 'Options))>
Public Sub New (options As IOptionsMonitor(Of TOptions), logger As ILoggerFactory, encoder As UrlEncoder)
Parameters
- options
- IOptionsMonitor<TOptions>
The monitor for the options instance.
- logger
- ILoggerFactory
The ILoggerFactory.
- encoder
- UrlEncoder
The UrlEncoder.
Applies to
OAuthHandler<TOptions>(IOptionsMonitor<TOptions>, ILoggerFactory, UrlEncoder, ISystemClock)
- Source:
- OAuthHandler.cs
- Source:
- OAuthHandler.cs
- Source:
- OAuthHandler.cs
Caution
ISystemClock is obsolete, use TimeProvider on AuthenticationSchemeOptions instead.
Initializes a new instance of OAuthHandler<TOptions>.
public:
OAuthHandler(Microsoft::Extensions::Options::IOptionsMonitor<TOptions> ^ options, Microsoft::Extensions::Logging::ILoggerFactory ^ logger, System::Text::Encodings::Web::UrlEncoder ^ encoder, Microsoft::AspNetCore::Authentication::ISystemClock ^ clock);
public OAuthHandler (Microsoft.Extensions.Options.IOptionsMonitor<TOptions> options, Microsoft.Extensions.Logging.ILoggerFactory logger, System.Text.Encodings.Web.UrlEncoder encoder, Microsoft.AspNetCore.Authentication.ISystemClock clock);
[System.Obsolete("ISystemClock is obsolete, use TimeProvider on AuthenticationSchemeOptions instead.")]
public OAuthHandler (Microsoft.Extensions.Options.IOptionsMonitor<TOptions> options, Microsoft.Extensions.Logging.ILoggerFactory logger, System.Text.Encodings.Web.UrlEncoder encoder, Microsoft.AspNetCore.Authentication.ISystemClock clock);
new Microsoft.AspNetCore.Authentication.OAuth.OAuthHandler<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions and 'Options : (new : unit -> 'Options))> : Microsoft.Extensions.Options.IOptionsMonitor<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions and 'Options : (new : unit -> 'Options))> * Microsoft.Extensions.Logging.ILoggerFactory * System.Text.Encodings.Web.UrlEncoder * Microsoft.AspNetCore.Authentication.ISystemClock -> Microsoft.AspNetCore.Authentication.OAuth.OAuthHandler<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions and 'Options : (new : unit -> 'Options))>
[<System.Obsolete("ISystemClock is obsolete, use TimeProvider on AuthenticationSchemeOptions instead.")>]
new Microsoft.AspNetCore.Authentication.OAuth.OAuthHandler<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions and 'Options : (new : unit -> 'Options))> : Microsoft.Extensions.Options.IOptionsMonitor<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions and 'Options : (new : unit -> 'Options))> * Microsoft.Extensions.Logging.ILoggerFactory * System.Text.Encodings.Web.UrlEncoder * Microsoft.AspNetCore.Authentication.ISystemClock -> Microsoft.AspNetCore.Authentication.OAuth.OAuthHandler<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions and 'Options : (new : unit -> 'Options))>
Public Sub New (options As IOptionsMonitor(Of TOptions), logger As ILoggerFactory, encoder As UrlEncoder, clock As ISystemClock)
Parameters
- options
- IOptionsMonitor<TOptions>
The monitor for the options instance.
- logger
- ILoggerFactory
The ILoggerFactory.
- encoder
- UrlEncoder
The UrlEncoder.
- clock
- ISystemClock
The ISystemClock.
- Attributes