Comments (7)
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.
@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.
@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.
@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.
@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.
I am fine adding NUXT_OAUTH_MICROSOFT_REDIRECT_URL
env variable, happy to open a PR @PGLongo ?
from nuxt-auth-utils.
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)
- [Vue Router warn]: No match found for location with path "/api/_auth/session" HOT 2
- Add option for additional query parameters HOT 3
- Nuxt UI Pro license required for building the playground HOT 1
- Navigation to provider route SSR issue HOT 1
- Why only server side HOT 9
- Use HTTPS for redirect URIs HOT 2
- Cannot augment `user` in UserSession HOT 2
- Strange issue, Auth0 always needs to be logged in twice repeatedly to be recognized properly HOT 3
- [Question] Expose/access the tokens HOT 5
- Discord oauth error HOT 2
- Better typing of UserSession HOT 3
- Max key length? HOT 1
- `setUserSession()` is merging data HOT 4
- Verify Request Origin for session decoding HOT 1
- Only expose public data part of session HOT 6
- [Google] Not possible to provide extra config for authorization HOT 1
- Prefer Single Exports Over `oauth` HOT 1
- Support Dynamic Config HOT 1
- Casdoor Provider Support.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuxt-auth-utils.