Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

[Admin UI] User Login + Logout API #242

Closed
seanpreston opened this issue Mar 1, 2022 · 0 comments · Fixed by #277
Closed

[Admin UI] User Login + Logout API #242

seanpreston opened this issue Mar 1, 2022 · 0 comments · Fixed by #277
Assignees
Labels
enhancement New feature or request

Comments

@seanpreston
Copy link
Contributor

seanpreston commented Mar 1, 2022

Is your feature request related to a specific problem?

To support the Fidesops Admin UI, we need endpoints to manage user authentication.

Describe the solution you'd like

POST /api/v1/login/

{
  "username": "joebloggs",
  "password": "somethingSecure"
}

{
  "authToken": ...
}
  • This endpoint exchanges user login details for a token that can be used to make subsequent requests (e.g. read privacy requests currently in progress).
  • The token should expire within a reasonable timeframe.
  • The token should be provided by an OAuth client created especially for the admin UI.
POST /api/v1/logout/
  • A logged in user hits this endpoint with their authentication token, which is then invalidated, subsequently logging the user out.
@seanpreston seanpreston added the enhancement New feature or request label Mar 1, 2022
@pattisdr pattisdr self-assigned this Mar 8, 2022
galvana pushed a commit that referenced this issue Mar 15, 2022
Add user login/logout endpoints. Login provides a token with all scopes (for now) that can be used to help you authenticate requests.  Hitting the logout endpoint with this same token will delete the client all together.
sanders41 pushed a commit that referenced this issue Sep 22, 2022
Add user login/logout endpoints. Login provides a token with all scopes (for now) that can be used to help you authenticate requests.  Hitting the logout endpoint with this same token will delete the client all together.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants