question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Azure AD not setting session cookie

See original GitHub issue

Description 🐜

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:closed
  • Created 2 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
carlevans72commented, Oct 8, 2021

Tried 48x48 - still no luck

Tried 24x24 - all good Tried 36x36 - all good

0reactions
balazsorban44commented, Oct 12, 2021

it will be. don’t have an ETA. check the PR and use a custom provider if you need it now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Application Proxy cookie settings - Azure Active Directory
Azure Active Directory (Azure AD) has access and session cookies for accessing on-premises applications through Application Proxy.
Read more >
How to setup session cookie in Azure Active directory?
The session cookie lifetime usually depends on the conditional access policy defined in Azure AD tenant for which you want to sign in...
Read more >
Azure AD Application Proxy Cookie Settings - TechNet Blogs
Azure AD Application Proxy Cookie Settings · 1. Use HTTP-Only Cookie. Sets the HTTPOnly flag on your Application Proxy access and session cookies...
Read more >
Manage Session Cookies | Firebase Authentication
// Only process if the user just signed in in the last 5 minutes. ... // Create session cookie and set it. ......
Read more >
Azure AD - AWS IAM Identity Center (successor to AWS Single ...
Learn how to set up SCIM provisioning between Azure AD and IAM Identity ... If an attribute is removed from a user in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found