I think the misunderstanding here is that you need to do some config in your connection settings, not just add the login hint in the authorize request. I just tested it and it works.
Lets walk through it:
- Go to the dashboard, navigate to APIs → Auth0 Management API → API Explorer and copy the token
- Go to the management API explorer and click the Set API Token button in the top left of the window. Paste the token you got from the dashboard here.
- Next, scroll down to Get All Connections and click the Try button
- You should get a successful response with a ton of JSON, if not, let me know and we can debug.
- Parse through the JSON and find the connection with the name google-oauth2
- In a notepad/temporary doc, copy the entire options array and the id. It should look like this:
id:con_123456asdfg
"options": {
"email": true,
"gmail": false,
"orkut": false,
"scope": [
"email",
"profile"
],
"sites": false,
"tasks": false,
"blogger": false,
"profile": true,
"youtube": false,
"calendar": false,
"contacts": false,
"analytics": false,
"client_id": "",
"moderator": false,
"coordinate": false,
"picasa_web": false,
"google_plus": false,
"google_books": false,
"google_drive": false,
"spreadsheets": false,
"client_secret": "",
"document_list": false,
"latitude_best": false,
"latitude_city": false,
"url_shortener": false,
"webmaster_tools": false,
"chrome_web_store": false,
"allowed_audiences": "",
"adsense_management": false,
"google_drive_files": false,
"coordinate_readonly": false,
"google_cloud_storage": false,
"content_api_for_shopping": false,
"google_affiliate_network": false
}
- In your temporary doc add this to the options array.
"upstream_params": {"login_hint": {"alias": "login_hint"}},
- Put curly brackets around the whole options object:
- It should look something like this:
{"options": {
"upstream_params": {"login_hint": {"alias": "login_hint"}},
"email": true,
"gmail": false,
"orkut": false,
"scope": [
"email",
"profile"
],
"sites": false,
"tasks": false,
"blogger": false,
"profile": true,
"youtube": false,
"calendar": false,
"contacts": false,
"analytics": false,
"client_id": "",
"moderator": false,
"coordinate": false,
"picasa_web": false,
"google_plus": false,
"google_books": false,
"google_drive": false,
"spreadsheets": false,
"client_secret": "",
"document_list": false,
"latitude_best": false,
"latitude_city": false,
"url_shortener": false,
"webmaster_tools": false,
"chrome_web_store": false,
"allowed_audiences": "",
"adsense_management": false,
"google_drive_files": false,
"coordinate_readonly": false,
"google_cloud_storage": false,
"content_api_for_shopping": false,
"google_affiliate_network": false
}}
- Click out of the overlay with the JSON, and go to Update a Connection :
- Input your ID and the options object your just edited.You must add the whole options object, as it overrides your options when you do this. Like this:
- You should get a successful response with the new options object for your connection. If you get an error or something let me know and we can work through it.
Hope this helps!
Dan