Client Authorization
The SDK exposes a limited set of in-game functionality to the user. If an activity requires a signed wallet transaction, then it has to happen through a browser dashboard.
Every action performed by the SDK is attributed to a specific game and/or user. Both are identified by the parameters passed in the OAuth authorization header.
It is important therefore that:
The user has permissions for what they are trying to achieve with their calls.
The user is active as no calls can be made from a non-existent/disabled/deleted user.
After completing the steps in the Getting Started section, you will receive a CLIENT ID and CLIENT SECRET key pair. Each game needs these to access CGC's API.
Once these key pairs have granted, each game will be able to construct a authorization header to meet our OAuth protocol requirements.
Access Token Management
Please note that the following methods are automatically handled when you instantiate a new CatheonGamingSDK object, so you do not need to worry about them. We have listed them below for informational purposes only.
RequestAccessToken
If clientId and clientSecret are provided correctly, you can request an access token from the CGC API. This is required to identify your game against our services for security purposes.
Response:
RenewAccessToken
After receiving your token, you can request that it be renewed.
Params: string refreshToken
Response:
RevokeAccessToken
After receiving your token, you can request that it be revoked.
Response:
Last updated