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

OIDC or JWT Authorization error: Token expiration. #9591

Closed
juandiii opened this issue May 25, 2020 · 5 comments
Closed

OIDC or JWT Authorization error: Token expiration. #9591

juandiii opened this issue May 25, 2020 · 5 comments
Labels
area/oidc kind/bug Something isn't working triage/duplicate This issue or pull request already exists

Comments

@juandiii
Copy link
Contributor

Describe the bug
If I have an expired token then every request I make returns a response with no content, with status 403 forbidden, then I have an ExceptionMapper from ForbiddenException and it doesn't return the response I want. It still comes out no content with status 403.

Expected behavior
Should response with the ExceptionMapper with ForbiddenException

Actual behavior
Response with no content with status 403

To Reproduce
Steps to reproduce the behavior:

  1. Start application
  2. Put header with Bearer eyyyXxxx1212
  3. Make GET some endpoint

Configuration

# Add your application.properties here, if applicable.

Screenshots
(If applicable, add screenshots to help explain your problem.)

Environment (please complete the following information):

  • Output of uname -a or ver: Darwin Juans-MBP.lan 19.4.0 Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64 x86_64
  • Output of java -version: openjdk version "11.0.6" 2020-01-14 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.6+10) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.6+10, mixed mode)
  • GraalVM version (if different from Java):
  • Quarkus version or git rev: 1.4.2.Final
  • Build tool (ie. output of mvnw --version or gradlew --version): Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
@juandiii juandiii added the kind/bug Something isn't working label May 25, 2020
@sberyozkin
Copy link
Member

@juandiii So this issue is about the custom exception mappers not called when the security exception occurs ? Thanks

@juandiii
Copy link
Contributor Author

@juandiii So this issue is about the custom exception mappers not called when the security exception occurs ? Thanks

Yes, it is.
Thanks

@sberyozkin
Copy link
Member

@juandiii Thanks, I'll have to close this issue as a duplicate of both #5751 and #8570.
Please watch and vote for #8750

@sberyozkin
Copy link
Member

@juandiii thanks, closing now, please watch #8750

@juandiii
Copy link
Contributor Author

@juandiii thanks, closing now, please watch #8750

Correcting #8570.

@gsmet gsmet added the triage/duplicate This issue or pull request already exists label May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/oidc kind/bug Something isn't working triage/duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants