Skip to content

Instantly share code, notes, and snippets.

@tbcooney
Last active January 29, 2019 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbcooney/d86b22e1eca9333b0cefed3e955e8f00 to your computer and use it in GitHub Desktop.
Save tbcooney/d86b22e1eca9333b0cefed3e955e8f00 to your computer and use it in GitHub Desktop.
Migrate From G+

Things We Use Google+ To Do

Case 1

  • When a user creates an account on Universe, they can sign up with Google (via G+ API)
    • user clicks Sign Up With Google, multiverse calls authenticateProvider which creates an OpenID Connect request from a deprecated scope plus/v1/people/me/openIdConnect
    • web sets params via auth_requests_controller.rb using a deprecated scope auth/plus.login
    • user data is fetched from deprecated scope plus/v1/people/me/openIdConnect to populate user info (email, first_name, photo, uid etc.)

Solution

  • Change the scope from deprecated G+ plus.login endpoint to profile
  • Set the user basic profile information with new method

Case 2

  • When a user visits an EDP, they can share the listing URL on G+
    • The share link invokes the Google+ share endpoint https://plus.google.com/share

Solution

  • I would assume if they are sunsetting G+ for consumers this no longer provides much value to our Universe or the host

Case 3

  • A user can recieve a discount on a ticket if they share on G+
    • in juno if listing.social_deal_google_enabled a Share on G+ button appears
    • if user shares on G+ SocialDeal.actions.create is called and DiscountCode is applied

Solution

  • Again, I would assume if they are sunsetting G+ for consumers this no longer provides much value to our Universe or the host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment