Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication: Google Account Connection #2

Closed
5 of 10 tasks
jconroy opened this issue Oct 21, 2020 · 4 comments
Closed
5 of 10 tasks

Authentication: Google Account Connection #2

jconroy opened this issue Oct 21, 2020 · 4 comments

Comments

@jconroy
Copy link
Member

jconroy commented Oct 21, 2020

User story:

As a merchant
I want to connect my store to my Google account
So that I can use Google features

Description:

In order to communicate with Google services via Google APIs applications must use OAuth 2.0 to authorize requests.

Screenshots

Screen Shot 2020-11-03 at 3 46 04 pm

Screen Shot 2020-11-03 at 3 46 58 pm

Snackbar notice

Screen Shot 2020-11-03 at 4 21 40 pm

Technical:

  • Requires WordPress.com connection
  • Button component
  • Snackbar notice component
  • In OAuth request, Google recommended ensuring we have set the access_type to offline because “you can refresh an access token without prompting the user for permission (including when the user is not present) if you requested offline access to the scopes associated with the token.” - basically means the “refresh_token” is returned.

Acceptance criteria:

  • Merchant can choose to connect an existing account
  • Merchant can choose to disconnect their account
  • Button color updates to reflect admin profile color scheme
  • Tracks event fired
  • Translatable text
  • Snackbar notice displayed
  • Correct permissions/scopes are requested

Out of bounds/rabbit holes

  • TBD

Dependencies

Event tracking:

  • Track whether an existing account is used or whether one is created
  • Track connects
  • Track disconnects
@jconroy jconroy changed the title Authentication: Google Connection Authentication: Merchant Center Connection Oct 21, 2020
@jconroy jconroy changed the title Authentication: Merchant Center Connection Authentication: Google Account Connection Oct 21, 2020
This was referenced Nov 3, 2020
@jconroy
Copy link
Member Author

jconroy commented Nov 12, 2020

We've added a Connection Test admin page to help test initial connection prototyping

Annotation on 2020-11-13 at 10-23-05

@jconroy
Copy link
Member Author

jconroy commented Mar 4, 2021

Refer to #286 for disconnecting

@jconroy
Copy link
Member Author

jconroy commented May 6, 2021

Created a separate issue #557 to capture snackbar notices for all account connections

@jconroy
Copy link
Member Author

jconroy commented May 6, 2021

Will following up tracking within #279

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants