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

authorization logic implemented #555

Merged
merged 1 commit into from
Oct 28, 2023
Merged

authorization logic implemented #555

merged 1 commit into from
Oct 28, 2023

Conversation

halisbal
Copy link
Contributor

@halisbal halisbal commented Oct 28, 2023

I implemented the authorization logic to our project. After this PR is merged, you can just use @AuthorizationRequired decorator to any Java Controller, the endpoint will automatically require the authorization token in the header. If not provided or token is expired or the owner of the token's account is deleted, it will return 401, 403 or 405 error to the client.

@halisbal halisbal requested review from zeynep-baydemir and canuzdrn and removed request for zeynep-baydemir October 28, 2023 13:28
@halisbal halisbal self-assigned this Oct 28, 2023
@halisbal halisbal added the Team: Backend Issues related to backend team label Oct 28, 2023
@canuzdrn canuzdrn merged commit 6884ef7 into main Oct 28, 2023
@canuzdrn
Copy link
Contributor

everything seems fine to me, all the status codes and returned values. We also need to update our endpoints too after this functionality, good job

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team: Backend Issues related to backend team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants