Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Microsoft.​Extensions.​DependencyInjection.​AuthenticationServiceCollectionExtensions
Assembly: Microsoft.AspNetCore.Authentication
Inheritance: object → AuthenticationServiceCollectionExtensions
Extension methods for setting up authentication services in an <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> .
Methods
AddAuthentication​(IServiceCollection services)
Registers services required by authentication services.
Returns A <see cref="T:Microsoft.AspNetCore.Authentication.AuthenticationBuilder" /> that can be used to further configure authentication.
services
The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> .
AddAuthentication​(IServiceCollection services,
string defaultScheme)
Registers services required by authentication services. <paramref name="defaultScheme" /> specifies the name of the
scheme to use by default when a specific scheme isn't requested.
Returns A <see cref="T:Microsoft.AspNetCore.Authentication.AuthenticationBuilder" /> that can be used to further configure authentication.
services
The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> .
defaultScheme
The default scheme used as a fallback for all other schemes.
AddAuthentication​(IServiceCollection services,
System.​Action<​AspNetCore.​Authentication.​AuthenticationOptions> configureOptions)
Registers services required by authentication services and configures <see cref="T:Microsoft.AspNetCore.Authentication.AuthenticationOptions" /> .
Returns A <see cref="T:Microsoft.AspNetCore.Authentication.AuthenticationBuilder" /> that can be used to further configure authentication.
services
The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> .
configureOptions
A delegate to configure <see cref="T:Microsoft.AspNetCore.Authentication.AuthenticationOptions" /> .
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object