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

UI: when displaying an oauth connector's spec, show an "authorize" button to initiate the oauth flow #5645

Closed
Tracked by #5769 ...
sherifnada opened this issue Aug 25, 2021 · 0 comments · Fixed by #6385
Assignees
Labels
area/oauth priority/high High priority type/enhancement New feature or request

Comments

@sherifnada
Copy link
Contributor

sherifnada commented Aug 25, 2021

Tell us about the problem you're trying to solve

Mockup: https://www.figma.com/file/etaOkOsnXMoKwbfhCD71kw/Web-app?node-id=27283%3A94025

Describe the solution you’d like

when displaying an oauth connector's spec, show an "authorize" button to initiate the oauth flow. We can identify that a connector is oauth-based if its spec has an auth property which has a property type: oauth2.0 e.g:

{
  “connectorSpecification: {
    “Client_id”: <string>, 
    “Client_secret”: <string>, 
    “Developer”_token”: <string> 
    “Start_date”: <datetime>,
    “ad_Account_id”: <integer>, 
  },
  “auth”: {
	“type”: “oauth2.0”,
	// this array points to the params in the connectorSpecification needed to kick off the oauth flow
// this would be a 2d array to handle nesting
    “oauth_flow_init_parameters”: [[“client_id”], [“client_secret”], [“developer_token”]]
  }
}

Screen Shot 2021-08-26 at 8 16 57 AM

When this button is clicked, it should hit the endpoint implemented in #5639 which will return the URL to which a user should be redirected to grant oauth consent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/oauth priority/high High priority type/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants