Azure AD not setting session cookie
See original GitHub issueDescription 🐜
Using Azure AD provider and able to retrieve token but no session cookie is ever set.
I am taken to the login and able to enter details and authenitcate and then I get redirected back to http://localhost:3000/#
When I check the application tab I see no session cookie set.
Is this a bug in your own project?
Yes
How to reproduce ☕️
AzureADProvider({ clientId: process.env.AZURE_AD_CLIENT_ID, clientSecret: process.env.AZURE_AD_CLIENT_SECRET, tenantId: process.env.AZURE_AD_TENANT_ID, authorization: { params: { scope: 'openid email profile offline_access', response_mode: 'query', response_type: 'code', }, }, }),
Screenshots / Logs 📽
No response
Environment 🖥
System: OS: macOS 11.6 CPU: (8) x64 Apple M1 Memory: 276.35 MB / 8.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 15.5.1 - ~/.nvm/versions/node/v15.5.1/bin/node Yarn: 1.22.10 - /usr/local/bin/yarn npm: 7.3.0 - ~/.nvm/versions/node/v15.5.1/bin/npm Browsers: Chrome: 94.0.4606.71 Firefox: 92.0.1 Safari: 15.0 npmPackages: next-auth: ^4.0.0-beta.4 => 4.0.0-beta.4
Contributing 🙌🏽
Yes, I am willing to help solve this bug in a PR
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (8 by maintainers)
Tried 48x48 - still no luck
Tried 24x24 - all good Tried 36x36 - all good
it will be. don’t have an ETA. check the PR and use a custom provider if you need it now.