Creating Admin Tokens

Static Admin Tokens are essentially RFC7519 JSON Web Tokens we can use for mote advanced border0 applications.

The main difference between tokens obtained via API call or border0 login method is their scope and expiry.
API and CLI tool tokes inherit the privilege level of supplied credentials/account and have short lifetime.

Static admin tokens on the other hand have their privilege scope defined at creation and do not expire until they are deleted/revoked

Furthermore, tokens can only create by ORG admins via API or the Portal

To create a token using the portal navigate to "Organization Settings" on in the right panel
Using top level menu select "Access Tokens" and then click the yellow "New" button on the top of the Access Tokens page.

🚧

Remeber to Copy the token to clipboard

you will not be able to retrieve it again

12801280

📘

Your Admin Token should like this

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJvcmdfaWQiOiJteS1hd2Vzb21lLW9yZy1pZCIsInR5cGUiOiJ0b2tlbiIsInVzZXJfaWQiOiJ0aGlzLWlzLW15LXVzZXItaWQifQ.m6sk5616to2_y_Y4hA2BbjCD_a_h64A7Rs6hWbUWS4k

🚧

TOKENS are secrets!

Mane sure you handle and store tokens with appropriate security tools and protocols

There are two types of tokens, member and admin

  • Admin tokens, as name suggests have full account privileges both in border0 cli tool as well as API
  • Member tokens are allowed to create, connect and delete sockets they created but cannot escalate themselves to admin or invite others to the org.