 | OAuthClientCoreAuthenticateApp Method |
Namespace: SanteDB.Client.OAuthAssembly: SanteDB.Client (in SanteDB.Client.dll) Version: 3.0.2081-alpha+027e4605b77f83de5445cbcd55717223932d2452
Syntaxpublic IClaimsPrincipal AuthenticateApp(
string clientId,
string clientSecret = null,
IEnumerable<IClaim> clientClaimAssertions = null,
IEnumerable<string> scopes = null
)
Public 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
public:
virtual IClaimsPrincipal^ AuthenticateApp(
String^ clientId,
String^ clientSecret = nullptr,
IEnumerable<IClaim^>^ clientClaimAssertions = nullptr,
IEnumerable<String^>^ scopes = nullptr
) sealed
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
override 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 identifier to send to the oauth server
- clientSecret String (Optional)
- The provided client secret
- clientClaimAssertions IEnumerableIClaim (Optional)
- The client claim assertions
- scopes IEnumerableString (Optional)
- The scopes for request
Return Value
IClaimsPrincipalThe authenticated claims principal
Implements
IOAuthClientAuthenticateApp(String, String, IEnumerableIClaim, IEnumerableString)
See Also