I've been able to use Net::OpenID::Consumer with success, but when I started requesting the user's email address Google now prompts the user to authorize the sharing of their email address. This happens every single time, regardless of whether the user checks the 'Remember this approval' checkbox. How do I keep Google from prompting the user for approval every time?

Our site's OpenID registration and login paths are the same, otherwise we could only request the email address from Google when the user registers.

1 Answer
1

Looking at the Google developers guide it looks like your application URL should match the value of the openid.realm parameter in the OpenID request, for a smooth logon without the authorization page. Having said this, I think you should specify the required_root to match the trust_root, something like-

For others that may come across this, I think my real problem was that in my actual code I used a wildcard in the trust root. Apparently Google doesn't like that as it doesn't exactly match the return_to domain.
–
kbosakOct 10 '12 at 15:24