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

Limit access to API by checking logged in user's authorities / role #87

Merged
merged 1 commit into from
Feb 3, 2017

Conversation

gibarsin
Copy link
Collaborator

@gibarsin gibarsin commented Feb 3, 2017

Summary

  • Limit access to API by checking logged in user's authorities / role and HTTP Method which is trying to use.
  • Added Access denied handler for 403 unauthorized, returning a 404 Not Found instead of a 403 to avoid revealing which resources exist.

Fixes:

  • Added a validation when attempting to create a new student / admin with an existant DNI and returning 409 Conflict instead of a 503 Service Unavailable (Hibernate Exception)

Trello Card

https://trello.com/c/mT6wDzEj/19-limitar-privilegios-a-recursos-de-api-segun-roles

- Limit access to API by checking logged in user's authorities / role and HTTP Method which is trying to use.
- Added Access denied handler for 403 unauthorized, returning a 404 Not Found instead of a 403 to avoid revealing which resources exist.

Misc:
- Added a validation when attempting to create a new student / admin with an existant DNI and returning 409 Conflict instead of a 503 Service Unavailable (Hibernate Exception)
@gibarsin gibarsin merged commit 6beb159 into development Feb 3, 2017
@gibarsin gibarsin deleted the limitAccess branch February 3, 2017 19:20
MatiasComercio pushed a commit that referenced this pull request Feb 5, 2017
)

- Limit access to API by checking logged in user's authorities / role and HTTP Method which is trying to use.
- Added Access denied handler for 403 unauthorized, returning a 404 Not Found instead of a 403 to avoid revealing which resources exist.

Misc:
- Added a validation when attempting to create a new student / admin with an existant DNI and returning 409 Conflict instead of a 503 Service Unavailable (Hibernate Exception)
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

Successfully merging this pull request may close these issues.

2 participants