UserNameSecurityTokenProvider(String, String) Constructor
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.
Initializes a new instance of the UserNameSecurityTokenProvider class using the specified username and password.
public:
UserNameSecurityTokenProvider(System::String ^ userName, System::String ^ password);
public UserNameSecurityTokenProvider (string userName, string password);
new System.IdentityModel.Selectors.UserNameSecurityTokenProvider : string * string -> System.IdentityModel.Selectors.UserNameSecurityTokenProvider
Public Sub New (userName As String, password As String)
Parameters
- userName
- String
The username to get UserNameSecurityToken security token for.
- password
- String
The password of the user to get a UserNameSecurityToken security token for.
Remarks
The GetTokenCore method gets a token based on the specified username and password.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.