Click or drag to resize

IOAuthClientAuthenticateUser Method

Authenticate a user given an authenticated device principal and optionally a specific application.

Namespace: SanteDB.Client.Services
Assembly: SanteDB.Client (in SanteDB.Client.dll) Version: 3.0.2081-alpha+027e4605b77f83de5445cbcd55717223932d2452
Syntax
IClaimsPrincipal AuthenticateUser(
	string username,
	string password,
	string clientId = null,
	string tfaSecret = null,
	IEnumerable<IClaim> clientClaimAssertions = null,
	IEnumerable<string> scopes = null
)

Parameters

username  String
The username to pass to the OAUTH service
password  String
The password to pass to the OAUTH service
clientId  String  (Optional)
Optional client_id to provide in the request. If this value is null, the Realm client_id will be used.
tfaSecret  String  (Optional)
The MFA secret collected from the user
clientClaimAssertions  IEnumerableIClaim  (Optional)
Claims which are to be provided on the OAUTH request
scopes  IEnumerableString  (Optional)
Scopes that should be appended

Return Value

IClaimsPrincipal
The claims principal if the session was authenticated
See Also