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.

Identical Grant Configs, one works the other doesn't

See original GitHub issue

I cloned my old server and updated keys to point to a new google app. But for whatever reason I am getting the session is undefined or grant is misconfigured. I stepped through grant and the session did exist & was actually persisted to the session store.

I am now 100% uncertain what to do, since grants config is identical to the other one, the server is also identical. The only thing that changed were the keys for google. The old app still works fine, so google didn’t change anything on their end. Am I missing some setup with a google provider ? I dont know. This google guide thing is useless, half of what it asks you to do doesnt exit !

image

The problem seems to be that provider in request/callback is empty on after I click on the user . I am not sure what the causes its non existance. On the other app it exists.

app.use(
	grant.express({
		defaults: {
			origin: SERVER_URL,
			transport: 'session',
			prefix: '/oauth',
			state: true,
		},
		google: {
			key: googleKey,
			secret: googleSecret,
			scope: ['openid', 'profile', 'email'],
			nonce: true,
			custom_params: { access_type: 'offline', prompt: 'select_account' },
			callback: '/auth_redirect/google',
			//redirect_uri: 'http://localhost:5050/auth_redirect/google',
		},
	})
);

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Twiggehcommented, Mar 7, 2021

Thanks, but I’m looking at a few other issues as well. Another thing you can try is to cleanup your browser cookies and cache, even easier you can use another browser or incognito mode. There is a chance that you are still using your old session, the one you used to login with app A, that is now preventing you from logging into app B.

Incognito mode has worked, so something is up with the cookies! I should’ve thought of that sooner, my bad.

Thank you so much for your time, have a wonderful rest of a weekend ^~^

0reactions
simovcommented, Mar 7, 2021

Thanks, but I’m looking at a few other issues as well. Another thing you can try is to cleanup your browser cookies and cache, even easier you can use another browser or incognito mode. There is a chance that you are still using your old session, the one you used to login with app A, that is now preventing you from logging into app B.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Same work, twice the money? - Nature
Some grant agencies allow the submission of applications with identical or highly similar specific aims, goals, objectives and hypotheses.
Read more >
Grant Terminology | GRANTS.GOV
The instrument is the grant agreement, cooperative agreement, other agreement for assistance covered in paragraph (b) of § 200.40 Federal financial assistance ...
Read more >
How to grant all privileges to root user in MySQL 8.0
1. Dropping the user. From Mysql Console: List Users (helpful to see all your users): · 2. Create the user again. Create User...
Read more >
EC2 instance launch failures - Amazon EC2 Auto Scaling
This page provides information about your EC2 instances that fail to launch, potential causes, and the steps you can take to resolve the...
Read more >
Manage sharing settings - SharePoint in Microsoft 365
The SharePoint external sharing setting on this page is the same as the one in the Microsoft 365 admin center, on the Org...
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