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

[Feature Request] Allow a user to connect their Discord account to their Portal account #61

Open
1 of 5 tasks
stevenmqnguyen opened this issue Jan 22, 2022 · 3 comments
Assignees
Labels
New Feature New feature or request

Comments

@stevenmqnguyen
Copy link
Member

Overview

Set up the groundwork for future discord integration features. This groundwork includes grabbing user metadata, such as snowflake, username, and discriminator, from discord,

A user must first connect a Discord account. On each sign-in afterward, we need to fetch the user's metadata from Discord including their snowflake. This is done by using the access token in the accounts collection to send an api call to Discord.

Tasks

  • Add Discord Auth URL with identify, email, guilds scope to NextAuth Discord provider options
  • Get user metadata from Discord, including snowflake, username, discriminator
  • Verify user is in acm server
  • Add verified role
  • Document

Supplemental Information

@stevenmqnguyen stevenmqnguyen added the New Feature New feature or request label Jan 22, 2022
@WillieCubed WillieCubed changed the title [Feature Request] Discord Integration [Feature Request] Allow a user to connect their Discord account to their Portal account Jan 22, 2022
@ReshmiCode
Copy link
Contributor

ACM Members should get a members-only role on the Discord added to them and that role should be removed 2 semesters after receiving it (unless they continue on as a member). For our past members last semester, we just have their names and can get their emails. Members are people in any of ACM's programs, officers, and those who attend 5+ events.
This will allow us to make a members-only channel on the Discord which is the end goal.

@NickBurnett
Copy link
Contributor

CC @ez314 (will ping him in discord)

@harshasrikara
Copy link
Member

Old Portal Implementation
Old Portal Backend Implementation

Just adding these links to issue for quick reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Feature New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants