openid / AppAuth-JS

JavaScript client SDK for communicating with OAuth 2.0 and OpenID Connect providers.
Apache License 2.0
983 stars 161 forks source link

Google cloud apps auth url not working "https://accounts.google.com/o/oauth2/v2/auth" #157

Closed amanguptadev closed 4 years ago

amanguptadev commented 4 years ago

Whenever I try to authenticate Google apps like Drive, analytics, etc. I get error 404 (The requested URL was not found on this server. That’s all we know)

I'm using this repo: https://github.com/googlesamples/appauth-js-electron-sample

Configuration that I'm using: const openIdConnectUrl = "https://accounts.google.com/o/oauth2/v2/auth"; const clientId = "my_client_id"; const redirectUri = "http://127.0.0.1:8000"; const scope = "https://www.googleapis.com/auth/drive.metadata.readonly&access_type=offline";

I'm trying to resolve this issue for 2 days but had no luck.