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
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.