Hi,

I got GITkit for drupal 7 dev working on a local test site but I ran into this issue.
It only enables me to login with GMail.

Even after changing my Google identity tk widget to show yahoo and AOL etc on the google website it only shows the GMail option and the "use a different email" option.

When I click "use a different email" it just clears the popup from the screen which is probably intended behaviour.

How do I add other identity providers to the widget?

Best,
Zamite

CommentFileSizeAuthor
#3 gconnect-fixIdps-1830218-3.patch3.65 KBZamite

Comments

Zamite’s picture

After I looked into git-for-drupal.js I found the issue:

window.google.identitytoolkit.easyrp.config.setConfig({
idps: ["Gmail"]
});

If I change the array to idps:["Gmail", "Yahoo"] I get the yahoo option to work, etc.

It should be possible to add an identity provider list to the gconnect settings and then use that setting by changing this into something like:

window.google.identitytoolkit.easyrp.config.setConfig({
idps: Drupal.settings.gconnect.idps
});

Zamite’s picture

Coded the change, and it works will post a patch soon.

Zamite’s picture

Component: User interface » Code
Status: Active » Patch (to be ported)
StatusFileSize
new3.65 KB

Here's the patch.

This adds a textarea where you can add idps names from your gitk and they will show up on the widget.

Zamite’s picture

Status: Patch (to be ported) » Needs review

Wrong status code, woops.