Easy-CAS / Authentication

The general authentication service for EasyCAS
MIT License
0 stars 0 forks source link

Check connection state #2

Open RedNeath opened 2 months ago

RedNeath commented 2 months ago

Create a route capable of telling whether one user is identified or not.

Input:

Ouptut:

Data Description Result
No data JWT token required, so the request can't be processed Fail
An expired JWT token If the token is expired, the user is not authenticated anymore Fail
An expired JWT token and extra fields Extra fields will not be processed Fail
An invalid JWT token If the token cannot be recognised, the user is not authenticated Fail
An invalid JWT token and extra fields Extra fields will not be processed Fail
A valid JWT token The user is authenticated Success
A valid JWT token and extra fields Extra fields will not be processed Success