Interface IPkceRequestHandler
This interface defines methods for all Pkce authenticator http requests.
Namespace: Unity.Cloud.Identity
Assembly: Unity.Cloud.Identity.dll
Syntax
public interface IPkceRequestHandler
Methods
ExchangeCodeForDeviceTokenAsync(string)
Retrieves the device token from specified end-point
Declaration
Task<DeviceToken> ExchangeCodeForDeviceTokenAsync(string tokenEndPointParams)
Parameters
Type | Name | Description |
---|---|---|
string | tokenEndPointParams | The content of the request |
Returns
Type | Description |
---|---|
Task<DeviceToken> | A task that results in a DeviceToken when completed. |
GetUserInfoAsync(string)
Returns the user information claims from the PKCEConfiguration /userinfo endpoint.
Declaration
Task<string> GetUserInfoAsync(string userInfoClaims)
Parameters
Type | Name | Description |
---|---|---|
string | userInfoClaims | The userInfo claims to fetch. |
Returns
Type | Description |
---|---|
Task<string> | A task that results in the string value of the userInfo claims when completed. |
RefreshTokenAsync(string, string)
Updates the device token from specified end-point
Declaration
Task<DeviceToken> RefreshTokenAsync(string tokenEndPointParams, string refreshToken)
Parameters
Type | Name | Description |
---|---|---|
string | tokenEndPointParams | The content of the request |
string | refreshToken | The refresh token needed for the refresh request |
Returns
Type | Description |
---|---|
Task<DeviceToken> | A task that results in a DeviceToken when completed. |
RevokeRefreshTokenAsync(string)
Revokes the current refresh token
Declaration
Task RevokeRefreshTokenAsync(string revokeEndPointParams)
Parameters
Type | Name | Description |
---|---|---|
string | revokeEndPointParams | The content of the request |
Returns
Type | Description |
---|---|
Task | A task. |