Google plus API shutdown today, which alternative can be used to authentication?Omniauth not working: undefined method `persisted?' for nil:NilClassGoogle plus API shutdown, How it will affect Google auth2 login for web sites?Will tokens with Google plus scope invalidate after API shutdownWhat is the alternative solution of deprecated google plus api?Google plus API is shutdown. What to do in ionic 3 app?Google plus API depreciationDo I have to replace the Google+ APISSL Error in Rails 3.2.3 while using Google Oauth2 client to access APIRails Google Client API - unable to exchange a refresh token for access tokenRails, OmniAuth, google_oauth2, google-api-client, Moments.insert… 401 unauthorized… why?Devise + Omniauth + FacebookGoogle API for plusDomains.circles.addPeople in Rails produces 403 Forbiddenrails oAuth failing, session invalidomniauth-instagram won't include my client-id as part of the authorization urlGetting error OmniAuth::NoSessionError with Rails 5 APIrequest.env[“omniauth.params”] empty during callback phase when using omniauth-stripe-connectusing omniauth with mobile flow

Tiptoe or tiphoof? Adjusting words to better fit fantasy races

What's the purpose of "true" in bash "if sudo true; then"

Modify casing of marked letters

Go Pregnant or Go Home

Trouble understanding overseas colleagues

Using parameter substitution on a Bash array

Ways to speed up user implemented RK4

Is there a good way to store credentials outside of a password manager?

Bash method for viewing beginning and end of file

Why are on-board computers allowed to change controls without notifying the pilots?

What to do with wrong results in talks?

Increase performance creating Mandelbrot set in python

Generic lambda vs generic function give different behaviour

Personal Teleportation as a Weapon

Your magic is very sketchy

Curses work by shouting - How to avoid collateral damage?

What is the intuitive meaning of having a linear relationship between the logs of two variables?

At which point does a character regain all their Hit Dice?

Valid Badminton Score?

Applicability of Single Responsibility Principle

Why did Kant, Hegel, and Adorno leave some words and phrases in the Greek alphabet?

What would happen if the UK refused to take part in EU Parliamentary elections?

Is expanding the research of a group into machine learning as a PhD student risky?

Is the destination of a commercial flight important for the pilot?



Google plus API shutdown today, which alternative can be used to authentication?


Omniauth not working: undefined method `persisted?' for nil:NilClassGoogle plus API shutdown, How it will affect Google auth2 login for web sites?Will tokens with Google plus scope invalidate after API shutdownWhat is the alternative solution of deprecated google plus api?Google plus API is shutdown. What to do in ionic 3 app?Google plus API depreciationDo I have to replace the Google+ APISSL Error in Rails 3.2.3 while using Google Oauth2 client to access APIRails Google Client API - unable to exchange a refresh token for access tokenRails, OmniAuth, google_oauth2, google-api-client, Moments.insert… 401 unauthorized… why?Devise + Omniauth + FacebookGoogle API for plusDomains.circles.addPeople in Rails produces 403 Forbiddenrails oAuth failing, session invalidomniauth-instagram won't include my client-id as part of the authorization urlGetting error OmniAuth::NoSessionError with Rails 5 APIrequest.env[“omniauth.params”] empty during callback phase when using omniauth-stripe-connectusing omniauth with mobile flow













0















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:



  1. omniauth-oauth2

  2. 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.










share|improve this question




























    0















    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:



    1. omniauth-oauth2

    2. 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.










    share|improve this question


























      0












      0








      0








      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:



      1. omniauth-oauth2

      2. 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.










      share|improve this question
















      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:



      1. omniauth-oauth2

      2. 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.







      ruby-on-rails ruby ruby-on-rails-4 omniauth omniauth-google-oauth2






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 7 at 12:00









      sawa

      133k29206308




      133k29206308










      asked Mar 7 at 11:43









      rayray

      3,3561829




      3,3561829






















          1 Answer
          1






          active

          oldest

          votes


















          3














          Finally, I somehow managed to solve the issue by providing an alternate OpenIdConnect endpoint for user information. Using source, I replaced:



          https://www.googleapis.com/plus/v1/people/me/openIdConnect


          with:



          https://www.googleapis.com/oauth2/v3/userinfo


          I monkey-patched omniauth-google-oauth2 as follows:



          config/initializers/omniauth_google_oauth2_patch.rb



          class OmniAuth::Strategies::GoogleOauth2 < OmniAuth::Strategies::OAuth2
          def raw_info
          @raw_info ||= access_token.get('https://www.googleapis.com/oauth2/v3/userinfo').parsed
          end
          end


          And it's working great now.






          share|improve this answer
























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55042981%2fgoogle-plus-api-shutdown-today-which-alternative-can-be-used-to-authentication%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            3














            Finally, I somehow managed to solve the issue by providing an alternate OpenIdConnect endpoint for user information. Using source, I replaced:



            https://www.googleapis.com/plus/v1/people/me/openIdConnect


            with:



            https://www.googleapis.com/oauth2/v3/userinfo


            I monkey-patched omniauth-google-oauth2 as follows:



            config/initializers/omniauth_google_oauth2_patch.rb



            class OmniAuth::Strategies::GoogleOauth2 < OmniAuth::Strategies::OAuth2
            def raw_info
            @raw_info ||= access_token.get('https://www.googleapis.com/oauth2/v3/userinfo').parsed
            end
            end


            And it's working great now.






            share|improve this answer





























              3














              Finally, I somehow managed to solve the issue by providing an alternate OpenIdConnect endpoint for user information. Using source, I replaced:



              https://www.googleapis.com/plus/v1/people/me/openIdConnect


              with:



              https://www.googleapis.com/oauth2/v3/userinfo


              I monkey-patched omniauth-google-oauth2 as follows:



              config/initializers/omniauth_google_oauth2_patch.rb



              class OmniAuth::Strategies::GoogleOauth2 < OmniAuth::Strategies::OAuth2
              def raw_info
              @raw_info ||= access_token.get('https://www.googleapis.com/oauth2/v3/userinfo').parsed
              end
              end


              And it's working great now.






              share|improve this answer



























                3












                3








                3







                Finally, I somehow managed to solve the issue by providing an alternate OpenIdConnect endpoint for user information. Using source, I replaced:



                https://www.googleapis.com/plus/v1/people/me/openIdConnect


                with:



                https://www.googleapis.com/oauth2/v3/userinfo


                I monkey-patched omniauth-google-oauth2 as follows:



                config/initializers/omniauth_google_oauth2_patch.rb



                class OmniAuth::Strategies::GoogleOauth2 < OmniAuth::Strategies::OAuth2
                def raw_info
                @raw_info ||= access_token.get('https://www.googleapis.com/oauth2/v3/userinfo').parsed
                end
                end


                And it's working great now.






                share|improve this answer















                Finally, I somehow managed to solve the issue by providing an alternate OpenIdConnect endpoint for user information. Using source, I replaced:



                https://www.googleapis.com/plus/v1/people/me/openIdConnect


                with:



                https://www.googleapis.com/oauth2/v3/userinfo


                I monkey-patched omniauth-google-oauth2 as follows:



                config/initializers/omniauth_google_oauth2_patch.rb



                class OmniAuth::Strategies::GoogleOauth2 < OmniAuth::Strategies::OAuth2
                def raw_info
                @raw_info ||= access_token.get('https://www.googleapis.com/oauth2/v3/userinfo').parsed
                end
                end


                And it's working great now.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Mar 7 at 12:06









                sawa

                133k29206308




                133k29206308










                answered Mar 7 at 11:56









                rayray

                3,3561829




                3,3561829





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55042981%2fgoogle-plus-api-shutdown-today-which-alternative-can-be-used-to-authentication%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    1928 у кіно

                    Захаров Федір Захарович

                    Ель Греко