Click or drag to resize

OAuthServiceBehaviorEstablishClientSession Method

Establishes a session for a daemon application and optional device identity. No user is associated with the session.

Namespace: SanteDB.Rest.OAuth.Rest
Assembly: SanteDB.Rest.OAuth (in SanteDB.Rest.OAuth.dll) Version: 3.0.2081-alpha+19f573cdc8c56fbc278c5e41a734f011a9baa699
Syntax
protected ISession EstablishClientSession(
	IPrincipal clientPrincipal,
	IPrincipal devicePrincipal,
	List<string> scopes,
	IEnumerable<IClaim> additionalClaims
)

Parameters

clientPrincipal  IPrincipal
The application which the session will be created for.
devicePrincipal  IPrincipal
An optional device identity associated with the session.
scopes  ListString
Scopes that the session is granted
additionalClaims  IEnumerableIClaim
Additional claims to establish with the session.

Return Value

ISession
A session object that can be used to perform operations with.
Exceptions
ExceptionCondition
ArgumentExceptionThe clientPrincipal is not an IApplicationIdentity.
See Also