Редагувати

Поділитися через


WindowsUserNameSecurityTokenAuthenticator Class

Definition

Uses Windows authentication to authenticate the user name and password in a UserNameSecurityToken security token.

public ref class WindowsUserNameSecurityTokenAuthenticator : System::IdentityModel::Selectors::UserNameSecurityTokenAuthenticator
public class WindowsUserNameSecurityTokenAuthenticator : System.IdentityModel.Selectors.UserNameSecurityTokenAuthenticator
type WindowsUserNameSecurityTokenAuthenticator = class
    inherit UserNameSecurityTokenAuthenticator
Public Class WindowsUserNameSecurityTokenAuthenticator
Inherits UserNameSecurityTokenAuthenticator
Inheritance
WindowsUserNameSecurityTokenAuthenticator

Remarks

The ValidateUserNamePasswordCore method uses Windows authentication to authenticate a user name and password.

To provide a custom authentication scheme, see the CustomUserNameSecurityTokenAuthenticator class.

Constructors

WindowsUserNameSecurityTokenAuthenticator()

Initializes a new instance of the WindowsUserNameSecurityTokenAuthenticator class.

WindowsUserNameSecurityTokenAuthenticator(Boolean)

Initializes a new instance of the WindowsUserNameSecurityTokenAuthenticator class by specifying whether the claims that identify the Windows groups that a user belongs to are initially added to the ClaimSets property when the user is authenticated.

Methods

CanValidateToken(SecurityToken)

Gets a value indicating whether the specified security token can be validated by this security token authenticator.

(Inherited from SecurityTokenAuthenticator)
CanValidateTokenCore(SecurityToken)

Gets a value indicating whether the specified security token can be validated by this security token authenticator.

(Inherited from UserNameSecurityTokenAuthenticator)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
ValidateToken(SecurityToken)

Authenticates the specified security token and returns the set of authorization policies for the security token.

(Inherited from SecurityTokenAuthenticator)
ValidateTokenCore(SecurityToken)

Authenticates the specified security token and returns the set of authorization policies for the security token.

(Inherited from UserNameSecurityTokenAuthenticator)
ValidateUserNamePasswordCore(String, String)

Authenticates the specified user name and password and returns the set of authorization policies for UserNameSecurityToken security tokens.

Applies to