Skip to navigation

Overview

Version 1.03

This is the api used to authenticate room/event schduler users logging into the room scheduler html application. Once authenticated, you can only use the token to access Room/Event records.

Bearer Token using JSON Web Token (JWT)

This method involves getting an encrypted Bearer Token using our Room Scheduler login API and providing the Bearer Token in each API call rather than the username and password as done so with Basic Authentication.

Bearer Tokens carry an expiry and can be used for multiple requests until that expiry. After that it is required to get a new Token. The default expiry is 1 day after issue. You can use the Refresher Token to obtain a new Token and new Refresher Token. Refresher Token also has a default expiry date of 30 days.

To Obtain a bearer token using the API you send a JSON body including a username, password, and client ID and will get back the signed Token. The Token contains encrypted information including who logged in, the expiry and issue time, and a hashed signature. The API compares this against our internal hash information to verify each call when using the token.

When using Bearer tokens you have the option of adding IP Security as is done for Basic authentication but, unlike Basic authentication, is not required.

An example of what an authorization in the request header when using a bearer token would look like:

‘Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL3d3dy5tZWdhbWF0aW9uLmNvbS8iLCJleHAiOjE2MI6MTYyOTg5OTkxMCwic3ViIjoiQlJBRCJ9.25NszwIOWFrO-eXvUK5amDsazicCchB9_m0wAeo0Y2o’