itpropro / nuxt-oidc-auth

OIDC (OpenID connect) focused auth module for Nuxt
https://nuxtoidc.cloud
MIT License
87 stars 23 forks source link

IdentityServer as provider #85

Open tomfri opened 1 month ago

tomfri commented 1 month ago

I've been trying to use the generic oidc configuration in order to make it work but to no success. Are there any plans on making nuxt-oidc-auth work with IdentityServer? Or can you point me in the right direction on how to make it work?

tomfri commented 3 weeks ago

I have made further investigations and done my fair share of reading and I have finally been able to make it work with IdentityServer. I have a few questions in order to move forward in my attempts to make it fully work with my solution.

  1. How do I get the access token without setting exposeAccessToken to true. I need it on the server side to make further API calls. I can see a way to build it myself but I'm thinking it's already built in?

  2. In order to work with the ID token on the server we're told to import getUserSession from 'session.mjs' but there is no session.mjs in that folder. If I import 'session.js' it works but I get the feeling I'm missing something here?

  3. If I use the globalMiddlewareEnabled, is there any way to "unsecure" a page? I'm thinking that the page you land on when logging out should not immediately call for authentication all over again...

Thank you for all your work! 🙏🏼