Seeker
Seeker

Reputation: 2475

Javascript not enabled error in Firefox and Chrome while using Google Oauth

I am trying google oAuth authentication for liferay user. the URL am using for Google OAuth is

https://accounts.google.com/o/oauth2/auth?client_id=myClientId&redirect_uri=http://localhost:8090/c/login/oauth2callback&response_type=code&scope=https://www.googleapis.com/auth/userinfo.profile+https://www.googleapis.com/auth/userinfo.email

It redirects me to the google login page(if the user not logged in) and then the authorization page.

After I say allow, browser redirects me to

https://accounts.google.com/o/noscript

saying

You've reached this page because we have detected that Javascript is disabled in your browser. The page you attempted to load cannot display properly if scripts are disabled.

Please enable scripts and retry the operation or go back in your browser

It happens only in Firefox(am using 16.0.2, even in earlier versions it was happening) and chrome(22). It works fine in IE.

What would be the problem here?

Upvotes: 0

Views: 3995

Answers (3)

Annonymous
Annonymous

Reputation: 9

The reason is because you don't have the configure settings good enough. Go to about:config in Mozilla and then go down to the VERY last one and then put it to 0.

Upvotes: 0

weimo
weimo

Reputation: 11

One possibility is some extenshion blocking js, Try again in incogonito window, if oAuth OK: For the latest installed extensions, you can select "Allow in incognito", then try incogonito view agian, if oAuth Fail, then remove the extension. I just found one weired extension, remove it, then OK!

Upvotes: 1

OhadR
OhadR

Reputation: 8839

Did you try to enable scripts in Chrome?

Upvotes: 0

Related Questions