Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add /login/history/{aid} endpoint #27

Open
3 tasks
2byrds opened this issue Aug 15, 2024 · 0 comments
Open
3 tasks

Add /login/history/{aid} endpoint #27

2byrds opened this issue Aug 15, 2024 · 0 comments
Assignees

Comments

@2byrds
Copy link
Collaborator

2byrds commented Aug 15, 2024

Add /login/history/{aid} endpoint to list all user logins and their status (a list of statuses similar to the report status).
This call requires signed headers because no other user should be able to see the login history for their AID.

The statuses should indicate login scenarios such as:

  • If the user tries to make the call without signed headers, the error message should say they need to provide sign headers.
  • If the last login was a failure, then the signed headers will not validate and the error message should say they need to login with a valid credential.
  • If the LAST login the user has submitted a login request with a valid ECR credential AND the signed headers validate then the list should contain a status with details about the login, including the JSON form of the CESR, see Supply the 'raw' JSON version of the CESR, as part of the login success response vlei-verifier#35 and historical login statuses including success or failure messages.
@2byrds 2byrds changed the title Add /login/statuses/{aid} endpoint Add /login/history/{aid} endpoint Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants