-
-
Notifications
You must be signed in to change notification settings - Fork 310
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
Azure AD Auth: Invalid Compact JWE #4302
Comments
Hi, thanks for reporting this issue! Also just in case before I look further into this: did you try clearing your cookies? |
I tested only on the latest version. Interestingly, it uses three accounts that give different results, and I did not set different permissions for them: Account 1: Account 2: Account 3: |
Hi @DominikOlczak, I tried and it worked for my account. |
Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information. |
Steps to reproduce
Steps:
npx create-toolpad-app@latest --studio dog-app
cd dog-app
npx run dev
Current behavior
Redirected to MS, selected the account and returned to the login page with an error in the console:
[auth][error] JWTSessionError: Read more at https://errors.authjs.dev#jwtsessionerror [auth][cause]: JWEInvalid: Invalid Compact JWE at compactDecrypt (<>/dog-app/node_modules/jose/dist/node/esm/jwe/compact/decrypt.js:13:15) at jwtDecrypt (<>/dog-app/node_modules/jose/dist/node/esm/jwt/decrypt.js:5:29) at Object.decode (<>/dog-app/node_modules/@auth/core/jwt.js:67:31) at Module.session (<>/dog-app/node_modules/@auth/core/lib/actions/session.js:17:39) at AuthInternal (<>/dog-app/node_modules/@auth/core/lib/index.js:35:38) at async Auth (<>/dog-app/node_modules/@auth/core/index.js:111:34) at async <>/dog-app/node_modules/@toolpad/studio/dist/cli/index.mjs:366:24
Expected behavior
Expects to log in.
Context
I registered the application in Azure, set env according to the instructions.
Your environment
npx @mui/envinfo
Search keywords: azure authentication
The text was updated successfully, but these errors were encountered: