EnsureAuthenticated¶
Authenticates the client from specified service with scope if not already authenticated and user and returns the client.
1 |
|
Authenticates the client from specified service with scope if not already authenticated and user and returns the client.
1 |
|
Authenticates the client from specified service with scope if not already authenticated and user and returns the client.
1 |
|
Parameters¶
string service
Name of service to authenticate.
string scope
Scope of authentication context.
( string | Identity ) identity
Identity to impersonate.
Remarks¶
Scope argument is based on service and may change. Please refer the service documentation.
Identity is Id number of identity or Identity instance.
This method tries to server-to-server authentication if configured on service, otherwise user consent must be previously given.
If authentication failed error is thrown, use in try-catch block to act upon.
Example¶
1 2 3 4 5 |
|
Scope argument is based on service and may change. Please refer the service documentation.
Identity is Id number of identity or Identity instance.
This method tries to server-to-server authentication if configured on service, otherwise user consent must be previously given.
If authentication failed error is thrown, use in try-catch block to act upon.
Example¶
1 2 3 4 5 |
|
Scope argument is based on service and may change. Please refer the service documentation.
Identity is Id number of identity or Identity instance.
This method tries to server-to-server authentication if configured on service, otherwise user consent must be previously given.
If authentication failed error is thrown, use in try-catch block to act upon.
Example¶
1 2 3 4 5 |
|