nuxt-community / auth-module

Zero-boilerplate authentication support for Nuxt 2
https://auth.nuxtjs.org
MIT License
1.94k stars 925 forks source link

fix(schemes): OAuth urls are not formatted properly if they have a query parameter #1868

Open baluyotraf opened 9 months ago

baluyotraf commented 9 months ago

Hello!

We are using an AzureB2C for our authentication and they provide their URLS with a query parameters. This breaks the sections I fixed with the way the OAuth query parameters are appended to the url.

Here's the OpenIDC Configuration if you're curious: https://alvb2ctest.b2clogin.com/ALVB2CTEST.onmicrosoft.com/v2.0/.well-known/openid-configuration?p=B2C_1A_ALV_ASCP_SIGNUP_SIGNIN

I only provide a short way to do it, but if there's a recommended way to fix it, I can work on it that way.

baluyotraf commented 9 months ago

Looks like there's a PR already (#1832), but was created a year ago and has not been merged. I'm keeping the PR for now.