20 , , localhost ( Google). , 3 4 , .
API Google, omniauth-google-oauth2 : https://github.com/zquestz/omniauth-google-oauth2/issues/106. 2014 .
, omniauth-google-oauth2 :
class GoogleOauth2 < OmniAuth::Strategies::OAuth2
BASE_SCOPE_URL = "https://www.googleapis.com/auth/"
DEFAULT_SCOPE = "userinfo.email,userinfo.profile"
:
class GoogleOauth2 < OmniAuth::Strategies::OAuth2
BASE_SCOPE_URL = "https://www.googleapis.com/auth/"
DEFAULT_SCOPE = "email,profile"
:
: invalid_scope
. {invalid = [ https://www.googleapis.com/auth/profile, https://www.googleapis.com/auth/email]}
Update:
Lever ( .lever.co):
" Google, , Lever . , API OAuth Google. Google, , 11:30 PDT."
Google OAuth .