I am using the standard MVC 4 project, which I upgraded to MVC5. The only difference from what is the standard project of the DotNetOpenAuth.GoogleOAuth2 template for logging into your google oauth2 account. The first time a user signs up, he will see a message stating that my website would like to "view your email address" and "View basic information about your account." Then the browser cache is cleared. The next time they log in, they see the image shown below:

The problem is that my application does not need offline access, and I can imagine that some of my users will be concerned about this message.
I read this question and similar questions where it is suggested to use approval_prompt=auto, but: -
- I am not sure how to set this using DotNetOpenAuth. If you look at the source code for GoogleOAuth2, it looks like
GetServiceLoginUrl(Uri returnUrl)it's a likely place, but there seems to be no way to influence the parameters used. - I was wondering if there were any negative side effects when setting this up.
source
share