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

Integrate Redbrick API to blockbot to handle discord authentication/registering #43

Open
aydenjahola opened this issue Apr 3, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request refactor Refactor existing code for easy maintenance utility New utility feature

Comments

@aydenjahola
Copy link
Member

No description provided.

@github-project-automation github-project-automation bot moved this to 📋 Backlog in Webgroup Apr 3, 2024
@aydenjahola aydenjahola added enhancement New feature or request utility New utility feature refactor Refactor existing code for easy maintenance labels Apr 3, 2024
@wizzdom
Copy link
Member

wizzdom commented Apr 3, 2024

Cool!
So the plan is to add a discordID field in ldap allowing discord users to be associated with redbrick accounts. This will mean that all the sensitive processing and logic is done by the API and all blockbot has to do is forward the data onto the API

  • a /register command would take in a member's details and post this to the API. The API server will additionally check the CnS API to make sure the user has paid.
  • a /verify command would query the API with the user's discordID and if it exists, check that yearsPaid is greater than 0.

Additionally, we might look into adding these in the future:

  • a /shell command would take in a shell: zsh, bash, sh etc., query the api using the user's discordID and update the loginShell
  • admins might like some subcommands under a /admin command to perform checks, update accounts etc. This will have to be restricted to a private admin channel ID

I'm not sure about the last few as there may be some security concerns, but the first two are the main ones we will want to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactor Refactor existing code for easy maintenance utility New utility feature
Projects
Status: 📋 Backlog
Development

No branches or pull requests

3 participants