Udostępnij za pośrednictwem


IAuthenticationManager Interface

 

Used to interact with authentication middleware that have been chained in the pipeline.

Namespace:   Microsoft.Owin.Security
Assembly:  Microsoft.Owin (in Microsoft.Owin.dll)

Syntax

public interface IAuthenticationManager
public interface class IAuthenticationManager
type IAuthenticationManager = interface end
Public Interface IAuthenticationManager

Properties

Name Description
System_CAPS_pubproperty AuthenticationResponseChallenge

Exposes the security.Challenge environment value as a strong type.

System_CAPS_pubproperty AuthenticationResponseGrant

Exposes the security.SignIn environment value as a strong type.

System_CAPS_pubproperty AuthenticationResponseRevoke

Exposes the security.SignOut environment value as a strong type.

System_CAPS_pubproperty User

Returns the current user for the request.

Methods

Name Description
System_CAPS_pubmethod AuthenticateAsync(String)

Call back through the middleware to ask for a specific form of authentication to be performed on the current request.

System_CAPS_pubmethod AuthenticateAsync(String[])

Called to perform any number of authentication mechanisms on the current request.

System_CAPS_pubmethod Challenge(AuthenticationProperties, String[])

Add information into the response environment that will cause the authentication middleware to challenge the caller to authenticate. This also changes the status code of the response to 401. The nature of that challenge varies greatly, and ranges from adding a response header or changing the 401 status code to a 302 redirect.

System_CAPS_pubmethod Challenge(String[])

Add information into the response environment that will cause the authentication middleware to challenge the caller to authenticate. This also changes the status code of the response to 401. The nature of that challenge varies greatly, and ranges from adding a response header or changing the 401 status code to a 302 redirect.

System_CAPS_pubmethod GetAuthenticationTypes()

Lists all of the description data provided by authentication middleware that have been chained

System_CAPS_pubmethod GetAuthenticationTypes(Func<AuthenticationDescription, Boolean>)

Lists the description data of all of the authentication middleware which are true for a given predicate.

System_CAPS_pubmethod SignIn(AuthenticationProperties, ClaimsIdentity[])

Add information to the response environment that will cause the appropriate authentication middleware to grant a claims-based identity to the recipient of the response. The exact mechanism of this may vary. Examples include setting a cookie, to adding a fragment on the redirect url, or producing an OAuth2 access code or token response.

System_CAPS_pubmethod SignIn(ClaimsIdentity[])

Add information to the response environment that will cause the appropriate authentication middleware to grant a claims-based identity to the recipient of the response. The exact mechanism of this may vary. Examples include setting a cookie, to adding a fragment on the redirect url, or producing an OAuth2 access code or token response.

System_CAPS_pubmethod SignOut(AuthenticationProperties, String[])

Add information to the response environment that will cause the appropriate authentication middleware to revoke any claims identity associated the the caller. The exact method varies.

System_CAPS_pubmethod SignOut(String[])

Add information to the response environment that will cause the appropriate authentication middleware to revoke any claims identity associated the the caller. The exact method varies.

See Also

Microsoft.Owin.Security Namespace

Return to top