-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
Problem when use subpath in baseURL #984
Comments
Can you please show your directory structure in the upd: was able to reproduce and fix |
@nam0107 Please, check the new version using:
|
Co-authored-by: Zoey <[email protected]>
@nam0107 You can try using the |
@phoenix-ru thank you very much, I will try it and get back to you |
Upgrading to {
"url": "/api/auth/providers/signin/keycloak",
"statusCode": 400,
"statusMessage": "Invalid path used for auth-endpoint. Supply either one path parameter (e.g., `/api/auth/session`) or two (e.g., `/api/auth/signin/github` after the base path (in previous examples base path was: `/api/auth/`. Received `providers,signin,keycloak`",
"message": "Invalid path used for auth-endpoint. Supply either one path parameter (e.g., `/api/auth/session`) or two (e.g., `/api/auth/signin/github` after the base path (in previous examples base path was: `/api/auth/`. Received `providers,signin,keycloak`",
"stack": "<pre><span class=\"stack internal\">at createError (./node_modules/.pnpm/[email protected]/node_modules/h3/dist/index.mjs:72:15)</span>\n<span class=\"stack internal\">at parseActionAndProvider (./node_modules/.pnpm/@[email protected][email protected][email protected][email protected]_@babel+core@7._bk7q537wv7a5sizeybidstii2y/node_modules/@sidebase/nuxt-auth/dist/runtime/server/services/authjs/nuxtAuthHandler.js:156:11)</span>\n<span class=\"stack internal\">at createRequestForAuthjs (./node_modules/.pnpm/@[email protected][email protected][email protected][email protected]_@babel+core@7._bk7q537wv7a5sizeybidstii2y/node_modules/@sidebase/nuxt-auth/dist/runtime/server/services/authjs/nuxtAuthHandler.js:120:34)</span>\n<span class=\"stack internal\">at Object.handler (./node_modules/.pnpm/@[email protected][email protected][email protected][email protected]_@babel+core@7._bk7q537wv7a5sizeybidstii2y/node_modules/@sidebase/nuxt-auth/dist/runtime/server/services/authjs/nuxtAuthHandler.js:44:31)</span>\n<span class=\"stack internal\">at Object.handler (./node_modules/.pnpm/[email protected]/node_modules/h3/dist/index.mjs:1889:24)</span>\n<span class=\"stack internal\">at Object.handler (./node_modules/.pnpm/[email protected]/node_modules/h3/dist/index.mjs:2202:34)</span>\n<span class=\"stack internal\">at ./node_modules/.pnpm/[email protected]/node_modules/h3/dist/index.mjs:1963:31</span>\n<span class=\"stack internal\">at process.processTicksAndRejections (node:internal/process/task_queues:105:5)</span>\n<span class=\"stack internal\">at async Object.callAsync (./node_modules/.pnpm/[email protected]/node_modules/unctx/dist/index.mjs:72:16)</span>\n<span class=\"stack internal\">at async Server.toNodeHandle (./node_modules/.pnpm/[email protected]/node_modules/h3/dist/index.mjs:2255:7)</span></pre>"
} |
Getting a weird redirect with the No match found for location with path "/api/auth/signin/keycloak/callback/keycloak" Could this be from changing from |
@phoenix-ru after I upgrade version of Nuxt-auth to 0.10.1-alpha.1 my config here |
Environment
[email protected]
@sidebase/[email protected]
nodejs: v20.18.1
Reproduction
I set both
AUTH_ORIGIN and baseURL = https://rpdev-gui.dev-vie.int.compax.at/aax4/api/auth
Describe the bug
After I login successful, I got wrong redirect url. I expect redirect url should be https://rpdev-gui.dev-vie.int.compax.at/aax4 but it is https://rpdev-gui.dev-vie.int.compax.at
![image](https://private-user-images.githubusercontent.com/45630755/403752838-0b3b5bd9-8be7-4930-a45e-8aac33095d2a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NzAyMDYsIm5iZiI6MTczOTQ2OTkwNiwicGF0aCI6Ii80NTYzMDc1NS80MDM3NTI4MzgtMGIzYjViZDktOGJlNy00OTMwLWE0NWUtOGFhYzMzMDk1ZDJhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDE4MDUwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY3YjI2MTQ3MzcxOGIyZDk1ZDkzYjJkNDU4MjNkZDY3NWUxZWJlNGRiNDlmZTdjOGZkNzE2OTBkOTU5ZmRjODkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.umNYDUDdtG7LntdmBI4rPlXwUAAcp1XQXohYcn66CnI)
Then I check the api get providers I got this
the signinUrl and callbackUrl should include /aax4 but not and I think it cause my issue
this is my config
![image](https://private-user-images.githubusercontent.com/45630755/403754131-bbb320c7-e2ed-4556-8305-289c8b11bc49.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NzAyMDYsIm5iZiI6MTczOTQ2OTkwNiwicGF0aCI6Ii80NTYzMDc1NS80MDM3NTQxMzEtYmJiMzIwYzctZTJlZC00NTU2LTgzMDUtMjg5YzhiMTFiYzQ5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDE4MDUwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI5OGY4ZDE1YWMwYjdkMmYxMTJhYjk3OTgwNTYyNjExZDhkNTFjZjAyZjk3NzdlMDJiN2U2NzJhMzhhZDNhMTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.hWNE-WgfRT8RFX8reXY_mBN64436Tog_5WS0pfMpHRg)
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: