CustomUserNameSecurityTokenAuthenticator Class
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.
Authenticates a UserNameSecurityToken security token using a custom authentication scheme.
public ref class CustomUserNameSecurityTokenAuthenticator : System::IdentityModel::Selectors::UserNameSecurityTokenAuthenticator
public class CustomUserNameSecurityTokenAuthenticator : System.IdentityModel.Selectors.UserNameSecurityTokenAuthenticator
type CustomUserNameSecurityTokenAuthenticator = class
inherit UserNameSecurityTokenAuthenticator
Public Class CustomUserNameSecurityTokenAuthenticator
Inherits UserNameSecurityTokenAuthenticator
- Inheritance
-
CustomUserNameSecurityTokenAuthenticator
Remarks
Override the CustomUserNameSecurityTokenAuthenticator class when the Windows authentication provided by the WindowsUserNameSecurityTokenAuthenticator class isn't sufficient. The WindowsUserNameSecurityTokenAuthenticator class authenticates the user name and password in a UserNameSecurityToken security token as a Windows account.
To provide a custom authentication scheme, derive a class from the UserNamePasswordValidator class, implement the authentication scheme, and then pass that class to the constructor for the CustomUserNameSecurityTokenAuthenticator class.
Constructors
CustomUserNameSecurityTokenAuthenticator(UserNamePasswordValidator) |
Initializes a new instance of the CustomUserNameSecurityTokenAuthenticator class using the specified validator. |
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. |