Skip to content

Creating a way for people to link their discord to their Redbrick accounts - #124

Merged
Arisamiga merged 18 commits into
mainfrom
ldap-discord-link
Aug 20, 2026
Merged

Creating a way for people to link their discord to their Redbrick accounts#124
Arisamiga merged 18 commits into
mainfrom
ldap-discord-link

Conversation

@Arisamiga

@Arisamiga Arisamiga commented Aug 18, 2026

Copy link
Copy Markdown
Member

This pull request adds functionality for the Admin API, enabling users to link their Discord accounts to Redbrick and modify their account settings, including public keys. Additionally, it allows for the registration of new members by creating Redbrick accounts for them through the Admin API.

closes #43

+ Check if uid is taken before registering using the public admin API
+ Replace the json with the actual one that will be used when creating the new LDAP user
+ Include their discord id ot the json user-data
+ Check for if the user is already linked
+ Check if the user is already linked to a different discord account
+ Actually use the api to add the discord value
@Arisamiga Arisamiga self-assigned this Aug 18, 2026
@Arisamiga Arisamiga added the enhancement New feature or request label Aug 18, 2026
+ Changed link_discord_to_ldap to update_user_ldap_attribute for future expansion
+ Added a send_verification_email function for the link command.
+ Moved code handling login to its own function
+ Changed /link to /account link
+ Added a /account pubkey command for users to change their public keys
@Arisamiga
Arisamiga marked this pull request as ready for review August 19, 2026 19:38
Comment thread src/extensions/account.py Outdated
@Arisamiga
Arisamiga requested a review from liamk024 August 19, 2026 20:43
liamk024
liamk024 previously approved these changes Aug 19, 2026
Comment thread src/extensions/account.py
Comment thread src/extensions/account.py Outdated
Comment thread src/extensions/link.py Outdated
Comment thread src/extensions/link.py Outdated
Comment thread src/hooks.py Outdated
Comment thread src/extensions/account.py Outdated
Comment thread src/extensions/account.py Outdated
Comment thread src/extensions/register.py Outdated
Comment thread src/extensions/verify.py Outdated
Comment thread src/extensions/account.py
Comment thread src/utils.py
Comment thread src/extensions/verify.py
@Arisamiga
Arisamiga requested review from CG-5228 and novanai August 20, 2026 15:23
@Arisamiga
Arisamiga requested a review from liamk024 August 20, 2026 15:23
CG-5228
CG-5228 previously approved these changes Aug 20, 2026
liamk024
liamk024 previously approved these changes Aug 20, 2026
novanai
novanai previously approved these changes Aug 20, 2026

@novanai novanai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

two nits but not required to change unless you want!

Comment thread src/extensions/account.py
Comment thread src/extensions/account.py Outdated
+ Added a extra timer of extra 10 minutes to show the user that their code was expired
+ Moved the ssh keys to a contact place in config.py
@Arisamiga
Arisamiga dismissed stale reviews from novanai, liamk024, and CG-5228 via 568b4f6 August 20, 2026 19:05

@novanai novanai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved !!! 🚀

@Arisamiga
Arisamiga merged commit 5a62632 into main Aug 20, 2026
8 checks passed
@Arisamiga
Arisamiga deleted the ldap-discord-link branch August 20, 2026 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integrate Redbrick API to blockbot to handle discord authentication/registering

4 participants