Giter Club home page Giter Club logo

Comments (7)

pi0 avatar pi0 commented on July 20, 2024

Thanks for reporting detailed issue. it is unfortouante situation with azure. I have made an upstream issue if we can polyfill it for deployments: unjs/nitro#2137

I think Nuxt and Nitro could also provide canonical URL support greatly for similar situations also: unjs/nitro#2052

In the meantime, you can try to polyfill yourself like this (note: I haven't tested this code only to give some ideas): https://stackblitz.com/edit/nuxt-starter-wh1bwj?file=server%2Fplugins%2Fazure.ts

from nuxt-auth-utils.

PGLongo avatar PGLongo commented on July 20, 2024

@gps-lasrol Have you attempted the fix suggested by @pi0?

I'm encountering the following error:

{ "code": 400, "message": "Login not supported for provider azureStaticWebApps" }

from nuxt-auth-utils.

gps-lasrol avatar gps-lasrol commented on July 20, 2024

@PGLongo i have not attempte the fix suggested yet, we are currently hosting our solution with docker and azure container apps as a workaround. We are going to try this fix, but i am not sure when we will be able to do it.

from nuxt-auth-utils.

PGLongo avatar PGLongo commented on July 20, 2024

@pi0 & @Atinux, what are your thoughts on introducing an environment variable named NUXT_OAUTH_MICROSOFT_REDIRECT_URL?

IF NUXT_OAUTH_MICROSOFT_REDIRECT_URL is null, we could use const redirectUrl = getRequestURL(event).href. If not, we would use the specified value.

from nuxt-auth-utils.

PGLongo avatar PGLongo commented on July 20, 2024

@gps-lasrol, I can confirm that modifying the redirectUrl resolves the issue. Unfortunately, the fix suggested by @pi0 didn't work, so I've temporarily created a new provider that reads the redirectUrl from the .ENV file.

from nuxt-auth-utils.

Atinux avatar Atinux commented on July 20, 2024

I am fine adding NUXT_OAUTH_MICROSOFT_REDIRECT_URL env variable, happy to open a PR @PGLongo ?

from nuxt-auth-utils.

PGLongo avatar PGLongo commented on July 20, 2024

I am fine adding NUXT_OAUTH_MICROSOFT_REDIRECT_URL env variable, happy to open a PR @PGLongo ?

Sure! I will work on it during the WE.

from nuxt-auth-utils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.