Skip to content
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

Login doesn't work when Firefox is the default browser #15

Closed
omarkj opened this issue Nov 6, 2013 · 8 comments · Fixed by #18
Closed

Login doesn't work when Firefox is the default browser #15

omarkj opened this issue Nov 6, 2013 · 8 comments · Fixed by #18

Comments

@omarkj
Copy link
Contributor

omarkj commented Nov 6, 2013

I tried to grant access to my devorg with force. The tool opened up my default browser (Firefox) where I logged into Salesforce and granted access. I then got redirected to /auth/callback but the grant never made it.

When I copied the callback url and pasted it into Chrome I got the "Granted" message from force-cli.herokuapp.com and was able to use the tool.

@ddollar
Copy link
Contributor

ddollar commented Nov 6, 2013

Interesting. There is an iframe redirecting to localhost as part of the flow, are there any messages in your developer console? Do you use a force HTTPS plugin?

@omarkj
Copy link
Contributor Author

omarkj commented Nov 6, 2013

Should have mentioned that yes, I use a Force HTTPS plugin. I can check for developer console issues later today.

@ryanbrainard
Copy link
Contributor

Note, there were two people who were having this issue with Firefox, so not an isolated incident.

@ddollar
Copy link
Contributor

ddollar commented Nov 7, 2013

My guess is that either Firefox won't redirect to localhost or both users had a Force HTTPS plugin installed. I'd like to see a screenshot of the dev console if possible for a failing user.

@omarkj
Copy link
Contributor Author

omarkj commented Nov 7, 2013

@ddollar Firefox blocks the redirect to localhost: "Blocked loading mixed content". This is because Firefox will not redirect from HTTPS to HTTP with JavaScript.

@ddollar
Copy link
Contributor

ddollar commented Nov 7, 2013

OK. We'll have to modify the localhost HTTP server to speak HTTPS.

@omarkj
Copy link
Contributor Author

omarkj commented Nov 7, 2013

I'll see if I can get that working tonight.

@ddollar
Copy link
Contributor

ddollar commented Nov 7, 2013

If you need the code for the server bit you can clone it from the Heroku app "force-cli"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants