-
Notifications
You must be signed in to change notification settings - Fork 11
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
401 Unauthorized without further information on OIDC login #17
Comments
Thanks for the issue. I haven't experienced this myself so please keep this updated as you learn more. Thanks! |
Something I found really strange, is that it doesn't happen when I use https://oidctest.wsweet.org/ but very frequently with another private provider... I'll keep digging ! |
As I was suspecting it, the issue comes from the provider side (I managed to get more info by modifying some lib code, see nestjs/passport#841 ) Do you have any idea on how we could improve the error management (modifying your example code and/or lib code) ? Not displaying the |
The right way to do it seems to be Exception Filters ! Closing this issue then ;) |
Thanks for the updates @TBG-FR |
Hello there !
Some time ago I followed your (awesome) article, to implement OIDC authentication in a NestJS app, but sometimes when I log myself in, I get on a
{"statusCode":401,"message":"Unauthorized"}
page. Nothing appears in NestJS logs, nothing else on the web page.I'm hence creating this issue, so we can (hopefully) find the cause and solve it, all together 😄
I tried adding log lines in your code to find where it was stopping, and the last one appears before
cats-nest/back-end/src/auth/login.guard.ts
Line 8 in ed28bc6
The text was updated successfully, but these errors were encountered: