-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Description
Hello,
I'm using your fork here for the openid+oauth federated login for google apps domain. I succeed in logging the user in.
- The problem here is when I have a scope for oauth to handle, it requests consent on subsequent logins (or even revisiting the sso login page).
- Additionally a duplicate entry is added to the user's "connected sites" with each login, verifying the permissions on the "Authorized Access to your Google Account" page (Account > Security > Connected applications and sites).
If I removed the oauth scopes, it successfully remembers the login, but clearly I'm missing the scopes. When oauth scopes are enabled, each duplicate entry has the domain and "Sign in using your Google account" with no mention of additional permissions. In my case I'm only using one scope:
$openid->oauth = array( 'https://www.googleapis.com/auth/userinfo.profile' );
With oauth+openid, I successfully login and have the following:
[openid_ns_ext1] => http://specs.openid.net/extensions/oauth/1.0
[openid_ext1_scope] => https://www.googleapis.com/auth/userinfo.profile
[openid_ext1_request_token] => xxxToken
But as mentioned, subsequent visits ask again for consent due to the oauth scopes.
Any ideas as to why this happens?
For now, I'm using the required ax fields, which returns the desired info I'm looking to get with oauth.
$openid->required = array('namePerson/last', 'namePerson/first', 'contact/email');
Thanks for any help.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels