I am using rails-4
, and have used OAuth-2
for authentication with Google+ API
, for which the following gems are used, in my app:
- omniauth-oauth2
- omniauth-google-oauth2
I have received the following prior email notice:
On March 7, 2019, all Google+ APIs and Google+ Sign-in will be shut down
completely. This will be a progressive shutdown, with API calls starting
to intermittently fail as early as January 28, 2019, and OAuth requests > for Google+ scopes starting to intermittently fail as early as February > 15, 2019.
Today, I cannot authenticate, as I get nil
for request.env["omniauth.auth"]
after the API received the following piece of code:
@user = User.find_for_google_oauth2(request.env["omniauth.auth"], current_user)
Please suggest how I can solve this issue, or provide an alternative to this.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…