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 authentication check endpoint #582

Merged
merged 8 commits into from
Feb 27, 2024
Merged

Conversation

JVT038
Copy link
Collaborator

@JVT038 JVT038 commented Feb 19, 2024

This PR adds an API endpoint to check if the user is authenticated or not.
The path is /authentication/authenticated and it returns a JSON object with authenticated = false || true.

If the user is authenticated, the object will also include a username and userId property, with the values of the current username and ID.

This PR is based on #575 , so it has to be merged after that one.

@JVT038
Copy link
Collaborator Author

JVT038 commented Feb 19, 2024

BTW, the reason that I think this endpoint is necesssary, is because there's currently no way for the new Vue frontend to figure out whether the user is authenticated or not. Additionally, if the user was authenticated, the frontend still can't figure out which user is authenticated.

@JVT038 JVT038 linked an issue Feb 19, 2024 that may be closed by this pull request
74 tasks
@JVT038 JVT038 force-pushed the add-authentication-check-endpoint branch from 6d34481 to 540e7a6 Compare February 25, 2024 20:43
docs/openapi.json Outdated Show resolved Hide resolved
@JVT038 JVT038 merged commit 4f5a2c6 into main Feb 27, 2024
1 check passed
@leepeuker leepeuker deleted the add-authentication-check-endpoint branch February 28, 2024 07:13
@JVT038 JVT038 removed a link to an issue Feb 28, 2024
74 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants