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

[Feat] Notion Authorization with Rocket.Chat #4

Closed
16 tasks done
Nabhag8848 opened this issue May 31, 2023 · 0 comments · Fixed by #5
Closed
16 tasks done

[Feat] Notion Authorization with Rocket.Chat #4

Nabhag8848 opened this issue May 31, 2023 · 0 comments · Fixed by #5

Comments

@Nabhag8848
Copy link
Collaborator

Nabhag8848 commented May 31, 2023

What do we need?

  • When a user runs /notion connect will send the following message in the current room with greetings having the name of the user. When the user clicks Connect to workspace they will be redirected to the Notion website where they will be prompted to authorize Rocket.Chat to access their Notion account. if Authorized, redirected payload back to Rocket.Chat.
  • When a user /notion disconnect command they will get disconnected from the current connected workspace (if any).

Acceptance Criteria

  • Create Setting for Credentials (SettingType STRING - ClientId, SettingType PASSWORD Client Secret).
  • Register Command with params connect and disconnect.
  • Create MessageBuilder with Button (only in case of connect)
  • Send Relevant Notification to Channel including Message from MessageBuilder when there is complete execution.
  • Create Function to getTokenInfo else Send Relevant Notification with Connect to Workspace button alerting user not connected.
  • Create WebHookEndpoint for handling Notion Callback
  • Create NotionSDK Class

Relevant ScreenShots

notion connect
notion disconnect

Further Comments

  • Create CustomError Class extending which have CommonError class
  • Use URL Package when needed
  • Use Integration SVG in Authorization HTML page.

Edge Cases

  • When User Changes State in AuthURL
  • When User Leaves in Between Auth
  • When User Cancel the Auth but Go Back to AuthURL pressing <— in Browser
  • When User runs connect command in two channels [Say first and Second] one by one during session and connects from First Message should go to First and so on.
  • When There is Problem from Notion Provider to Generate Token
  • Using feat with multiple user.
  • Handle Empty Credentials and give Notification to channel as per user Roles.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant