AuthorizationAuthenticateAsync Method |
Authenticates a user with the given credentials against the service using the scheme specified in the AuthenticationType property.
The user remains logged in until LogoutAsync() is called or until the token returned by the service expires and requires a fresh authentication.
Namespace: Oracle.Cloud.Mobile.AuthorizationAssembly: Oracle.Cloud.Mobile (in Oracle.Cloud.Mobile.dll) Version: 16.1.3.1 (16.1.3.1)
Syntaxpublic abstract Task<bool> AuthenticateAsync(
string userName = "",
string password = ""
)
Public MustOverride Function AuthenticateAsync (
Optional userName As String = "",
Optional password As String = ""
) As Task(Of Boolean)
public:
virtual Task<bool>^ AuthenticateAsync(
String^ userName = L"",
String^ password = L""
) abstract
abstract AuthenticateAsync :
?userName : string *
?password : string
(* Defaults:
let _userName = defaultArg userName ""
let _password = defaultArg password ""
*)
-> Task<bool>
Parameters
- userName (Optional)
- Type: SystemString
The username to use for authentication. - password (Optional)
- Type: SystemString
The user's password.
Return Value
Type:
TaskBooleanTrue if the authentication was successful, false otherwise.
See Also