 | IOAuthClientAuthenticateApp Method |
Authenticate an application given an authenticated device principal.
Namespace: SanteDB.Client.ServicesAssembly: SanteDB.Client (in SanteDB.Client.dll) Version: 3.0.2081-alpha+027e4605b77f83de5445cbcd55717223932d2452
SyntaxIClaimsPrincipal AuthenticateApp(
string clientId,
string clientSecret = null,
IEnumerable<IClaim> clientClaimAssertions = null,
IEnumerable<string> scopes = null
)
Function AuthenticateApp (
clientId As String,
Optional clientSecret As String = Nothing,
Optional clientClaimAssertions As IEnumerable(Of IClaim) = Nothing,
Optional scopes As IEnumerable(Of String) = Nothing
) As IClaimsPrincipal
IClaimsPrincipal^ AuthenticateApp(
String^ clientId,
String^ clientSecret = nullptr,
IEnumerable<IClaim^>^ clientClaimAssertions = nullptr,
IEnumerable<String^>^ scopes = nullptr
)
abstract AuthenticateApp :
clientId : string *
?clientSecret : string *
?clientClaimAssertions : IEnumerable<IClaim> *
?scopes : IEnumerable<string>
(* Defaults:
let _clientSecret = defaultArg clientSecret null
let _clientClaimAssertions = defaultArg clientClaimAssertions null
let _scopes = defaultArg scopes null
*)
-> IClaimsPrincipal Parameters
- clientId String
- The client_id to pass to the oauth service
- clientSecret String (Optional)
- The client secret to pass to the oauth service
- clientClaimAssertions IEnumerableIClaim (Optional)
[Missing <param name="clientClaimAssertions"/> documentation for "M:SanteDB.Client.Services.IOAuthClient.AuthenticateApp(System.String,System.String,System.Collections.Generic.IEnumerable{SanteDB.Core.Security.Claims.IClaim},System.Collections.Generic.IEnumerable{System.String})"]
- scopes IEnumerableString (Optional)
- Scopes that are being demanded
Return Value
IClaimsPrincipalThe claims principal if the session was authenticated
See Also