Skip to content

Authorization endpoints

Elías Llera García-Riaño edited this page Mar 7, 2023 · 3 revisions

SPECIFIC ERROR CODES PENDING TO SPECIFY

Log in

POST - /auth/login

Redirects the user to the POD provider log in, and back to the LoMap application. If the log in is successfull, the server will create two sessions: the WebApp session and the POD session.

Body parammeters

  • provider:string - url of the login service of the provider to use for the log in

Returns

  • Cookie with the session

Errors

Error if the session cannot be created

Log in confirm

GET - /auth/loginconfirm

Not intended for use, URL for the POD provider to redirect and complete the log in process

Log out

GET /auth/logout

Deletes the sessions on the RestAPI, both the WebApp session and the POD session