radarAccessControl

Managing user authentication and authorization workflows, ensuring secure access to the platform.

Create a new user account

post

Create a new user account

Body
first_namestringOptionalExample: Leo
last_namestringOptionalExample: Jourdain
usernamestringRequiredExample: LeoJr
passwordstringRequiredExample: astrongpasswrd
emailstringRequiredExample: leo.jourdain@etu-upsaclay.fr
phone_numberstringOptionalExample: +33XXXXXXXXXX
Responses
chevron-right
200

Successful operation

first_namestringOptionalExample: Leo
last_namestringOptionalExample: Jourdain
usernamestringRequiredExample: LeoJr
passwordstringRequiredExample: astrongpasswrd
emailstringRequiredExample: leo.jourdain@etu-upsaclay.fr
phone_numberstringOptionalExample: +33XXXXXXXXXX
post
/access/api/signup

Login

post

Get login credientials

Body
usernamestringRequiredExample: Leojr
passwordstringRequiredExample: astrongpasswd
Responses
chevron-right
200

Successful operation

refreshstringOptionalExample: 98this766is57a78token
accesstringOptionalExample: 98this766is57another78token
post
/access/api/login

Retrieve user informations

get

Retrieve user informations. If no query parameters are provided, all the users are returned. Administrator rights are required.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
limitstringOptional

Response is paginated

Example: ?limit=5
usernamestringOptional

username

Example: Leooojr
rolestringOptional

the role sought

Example: VALIDATOR
Header parameters
AuthorizationstringRequired

authorization

Example: Bearer mytoken
Responses
chevron-right
200

successful operation

get
/access/api/user

Update user information

put

Update user information. Administrator rights are required.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
usernamestringRequired

user to update

Example: leojr
Header parameters
AuthorizationstringRequired

authorization

Example: Bearer mytoken
Body
rolestring · enumRequiredExample: ANNOTATORPossible values:
Responses
chevron-right
200

successful operation

successtringOptionalExample: Role updated to VALIDATOR.
put
/access/api/user/{username}

Last updated