zquestz/omniauth-google-oauth2 — Issue #14: access type offline fails
Author: andregoncalves
Created: 2012-01-06 15:07:25+00:00
State: open

I'm trying to get offline access token

This is my initializer code:

```ruby
Rails.application.config.middleware.use OmniAuth::Builder do
provider :google_oauth2, KEY, SECRET,
:access_type => 'offline',
:scope => 'https://www.googleapis.com/auth/userinfo.profile'
end
```

When redirecting to google, it should add an extra URL parameter &access_type=offline, but it fails to do so (it works fine if I add the parameter manually on the address bar).

Is this a bug or am I missing something?