OAuth2 with Google not working


#1

Hello,

I have configured concourse quickstart with the following parameters OAuth2 from Google:

–oauth-display-name=“Google”
–oauth-client-id=“XXX”
–oauth-client-secret=“XXX”
–oauth-auth-url=“https://accounts.google.com/o/oauth2/auth?scope=profile&hd:XXX.com
–oauth-token-url=“https://accounts.google.com/o/oauth2/token
–main-team-allow-all-users

I can initiate the authentication successfully, but when Google Authentication returns the user to the following URL:

https://server/sky/issuer/callback?state=XXX&code=XXX&scope=profile%20https://www.googleapis.com/auth/userinfo.profile

Concourse displays error: “Internal Server Error, Failed to return user’s identity.”

And Concourse logfile shows the following error:

Nov 29 11:20:09 server concourse[14624]: {“timestamp”:“1543490409.277886391”,“source”:“atc”,“message”:“atc.dex.event”,“log_level”:2,“data”:{“fields”:{},“message”:“Failed to authenticate: OAuth Connector: failed to execute request to userinfo: Get : unsupported protocol scheme “””,“session”:“5”}}

Has someone successfully configured OAuth2 with Google?

Best regards,
Jukka