FormsLoginPage.SignIn Method
Attempts to sign in to the STS with a user name and password.
Namespace: Microsoft.IdentityServer.Web.UI
Assembly: Microsoft.IdentityServer (in Microsoft.IdentityServer)
Usage
'Usage
Dim userName As String
Dim password As String
Me.SignIn(userName, password)
Syntax
'Declaration
Protected Sub SignIn ( _
userName As String, _
password As String _
)
protected void SignIn (
string userName,
string password
)
protected:
void SignIn (
String^ userName,
String^ password
)
protected void SignIn (
String userName,
String password
)
protected function SignIn (
userName : String,
password : String
)
Parameters
- userName
The user name to use to log in to the STS.
- password
The password to use to log in to the STS.
Exceptions
| Exception type | Condition |
|---|---|
| AuthenticationFailedException | username is null. -or- The attempt to authenticate with the user name and password fails. |
Remarks
For more information about this class and code samples, see FormsLoginPage Class Overview.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Server 2008, Windows Server 2008 R2
Target Platforms
Windows Server 2008, Windows Server 2008 R2
See Also
Reference
FormsLoginPage Class
FormsLoginPage Members
Microsoft.IdentityServer.Web.UI Namespace