Skip to content

Getting a Bearer JWT Token

Ricardo Campos edited this page May 13, 2024 · 1 revision

Steps to get a JWT Bearer Token for SILVA

Here are the steps you should take to get a JWT Bearer Token.

With IDIR

  • Go to the Web App: Navigate to TEST SILVA Web App.
  • Login: Click the Login with IDIR button and put up your IDIR credentials (username and password), click Continue.
  • Inspect the page: Once inside, on the Dashboard page, right click with your mouse, click Inspect.
  • Locate the Application tab: On the pannel that just raised, locate the Application tab, click on it.
  • Expand Storage: On the left, find Storage, where you should see Local Storage, Session Storage, and others.
  • Select SILVA: Inside Local Storage, when expanded, you should see a record for the SILVA Web App, select it.
  • Look for idir.idToken: You should see a list of records that may look confusing at a first glance. You're almost there. You can make this bottom panel bigger if you need, that can help, just drag the top of this panel up.
  • Select the token: Among all records, there's only one that ends with @idir.idToken. Find it, and select it.
  • Copy token: On the right side, there's value column. Now just copy the value for the idToken. Some browsers offers a "copy value" option when clicked with the right mouse button. You can also do a double click to select the whole content. Then press Ctrl+C.
  • You're all set: Now head back to the Swagger Page and play around with the APIs.

With Business BCeID

  • Should be the same steps, but it was not tested yet.

TEST vs PROD

All sted here can be applied for both environments. Depending on the environment you log in, will be the environment your token can be used.

Remember