Open Jamedjo opened 9 years ago
Hi @Jamedjo
I'm afraid it is not possible to set these params at the moment. They need to be added as attr_accessor
s to lib/sorcery/providers/google.rb
and used in the authorize_url
method (IIRC, I haven't used this code for a long time). I'll be happy to merge PR that adds this.
Refresh token should be available in sorcery_fetch_user_hash
method that is available in external
submodule
Once I've used oauth2 to log someone in, I'd like to reuse their token to access the google drive API. This works but the token times out after 1h.
I'd like to be able to add
access_type=offline
to the auth params. Is this possible? What is the best way to get/use a refresh token?I also previously wanted to add
hd=mydomain.com
and other custom params listed at https://developers.google.com/identity/protocols/OpenIDConnect#authenticationuriparameters