Swagger Authentication

Tokenator is a small Chrome Extension you can use to quickly get an access token and test your Platform 6 endpoints, on Swagger UI for instance.

Note

It assumes you already have a registered user on Platform 6 and the associated credentials.

How to install it in your browser?

Like any extension! Except you have to download it directly from here.

You won’t find it on the Chrome Web Store. Simply download the .crx file and drag and drop it on your chrome://extensions/ page.

How to use it?

First, you need to configure it. To get you started as quickly as possible, we got your back.

Just download a configuration file:

Then simply:

  1. Click on the extension icon.

    Extension button in Chrome

  2. Click on the settings button.

    Settings button of the extension

  3. Click on the import file button.

    Import config file button of the extension

  4. Select the config file you’ve just downloaded.

  5. You’re good to go!

You can now enter your credentials as if you were signing in on the Portal.

You’ll get a nice ready to use / ready to be copy-pasted access token (valid for 60 minutes).

If expired, you can just hit the refresh token button, no need to put back your credentials again.

Note

If you need to update the extension, remove it from your browser and reinstall it with the latest version of the .crx file.

Alternatively

Another way to get an access token is simply from the Dev Tools of your browser.

When you’re connected to the Portal, you can simply copy/paste the current access token used with your credentials from the Local Storage / Session Storage interface.

The access token is registered under the b2portal_at key. Based on your choice at login, it will be in the Local Storage section if you decide to keep your connection alive. Otherwise, you’ll find it under the Session Storage section.