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

Logging of online token validation #184

Open
Sheap opened this issue May 10, 2024 · 1 comment
Open

Logging of online token validation #184

Sheap opened this issue May 10, 2024 · 1 comment

Comments

@Sheap
Copy link

Sheap commented May 10, 2024

I have an issue where my nest app is returning a 401 when passed a token which should still be valid. If I use offline validation, it works as expected. If I use online, the only logging output I get is the following:

[Nest] 33232  - 10/05/2024, 1:07:59 pm VERBOSE [Keycloak] User JWT: [redacted]
[Nest] 33232  - 10/05/2024, 1:07:59 pm VERBOSE [Keycloak] Using token validation method: ONLINE

Which tells me nothing about why I get a 401. If I use an actually expired or invalid token I get useful logs telling me why.

@ferrerojosh
Copy link
Owner

Is your authServerUrl correct ? Keycloak removed /auth from their urls and I have updated my docs as such.

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