π¨βπAccount Authorization
Prerequisite
Ultiverse's implementation is based upon OAuth 2.0
During you initial setup you will need to contact us with the following information:
Application Basic Information:
App Name
App Description
App Logo
App Website Link
What permission you need the user to obtain. The required permission are listed below with each API call.
The redirect URI to send the user back after completing authentication/authorization
In return, We will assign a client ID and client secret for your implementation

Starting Authorization
To authenticate a user, redirect the user to
if you include the state parameter, it will be passed back to the redirect URI after the user has confirmed or denied access. Note we only support authorization code grant type.
if the user grants access, they will be redirect back to you at:
if the user authorizes access to the game wallet, they well be redirect back to you with wallet JWT at
Note that the response is provided in the URL fragment, so it will need to be accessed client-side and passed back to your server if you need to do server-side requests.
Once you have the user's authorization code, you can get user access token with your client id and client secret.(Request should be HTTP POST request presented as form data)
Get User Access Token
POST https://openapi.ultiverse.io/api/v1/oauth/token
Headers
Content-Type*
application/x-www-form-urlencoded
Request Body
code*
your_authorization_code
client_id*
your_client_id
client_secret*
String
your_client_secret
grant_type*
String
authorization_code
Refresh Access Token
If access token is expired, you can retrieve a new access token using refresh_token
Get User Access Token
POST https://openapi.ultiverse.io/api/v1/oauth/token
Headers
Content-Type*
application/x-www-form-urlencoded
Request Body
refresh_token*
your_refresh_token
client_id*
your_client_id
client_secret*
String
your_client_secret
grant_type*
String
refresh_token
Retrieving the User's Resources
Once you get user's access token, all API requests are authorized in the same way. Ultiverse uses the RFC standard Authorization: Bearer <access_token>interface.
An example request is show below
Last updated