Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 742 Bytes

authentication.md

File metadata and controls

23 lines (13 loc) · 742 Bytes

Authentication

Login

To connect to the application, the user must exist in the database, and provide his university password to connect via the CAS.

If all user data is correct, the API provides a token, which will be needed for future authenticated requests.

-> See Login endpoint.

Login system diagram

Diagram made with sequencediagram.org (source).

Authenticated requests

To send authenticated requests, you need to set the Authorization header as follows :

Authorization: Bearer <token>

Our client application automatically sets this header for all requests when the user is logged in.