zquestz/omniauth-google-oauth2 — pull request #12 by feaber (2011-12-18 12:18:37+00:00)
Title: The authorize params: access_type and approval_prompt should be configurable form outside

params[:approval_prompt] = 'force'
is forceing to show google auth approval prompt even if application already have this approval

In my case, I used Devise+OmniAuth+omniauth-google-oauth2, and with this patch I been able to configure the approval_prompt in my devise.rb config:

# google-oauth2 config
config.omniauth :google_oauth2, 'client_id_here', 'client_secret_here', {
:scope => 'the_scope_here',
:approval_prompt => 'force'
}

If someon don't need approval always but only at first time, he can set:
:approval_prompt => ''

Best Regards,
Konrad.