Skip to main content
Try Cobo WaaS Skill in your AI coding assistant (Claude Code, Cursor, etc.). Describe your needs in natural language to auto-generate production-ready SDK code and debug faster ๐Ÿš€
User Info Tokens are JSON Web Tokens (JWTs) signed by Cobo Portal. These tokens allow Cobo Portal Apps to retrieve information about users, including their user ID, email address, and permissions. A Cobo Portal App can use the information to verify a userโ€™s identity and control their access to the organizationโ€™s resources based on the permissions.

How it works

  1. A user opens a Cobo Portal App on Cobo Portal.
  2. Cobo Portal renders the app in an iframe.
  3. The app requests a User Info Token from Cobo Portal.
  4. Cobo Portal provides the User Info Token.
  5. The app requests JSON Web Key Set (JWKS) from Cobo Portal.
  6. Cobo Portal provides the JWKS.
  7. The app decodes and verifies the User Info Token using the JWKS.
    Please use the algorithm specified in the alg field of the JWT header to perform the verification.

Request a User Info Token

To obtain a User Info Token, follow these steps:
  1. Install Cobo UI Toolkit by running the following command:
  2. Use the getAuthInfo function provided by Cobo UI Toolkit:
Here is an example of what a decoded User Info Token looks like:

Validate a User Info Token

Validate the User Info Token with the JWKS. To retrieve JWKS, send an HTTP GET request to the appropriate URL based on the environment in which your app is used:
  • Production environment: https://api.cobo.com/v2/oauth/authorize/jwks.json
  • Development environment: https://api.dev.cobo.com/v2/oauth/authorize/jwks.json
Additionally, you need to verify the iss (issuer), exp (expiration ), and aud (audience) fields are correct.