Skip to content

AAI-166 registration endpoint for Galaxy#11

Merged
marius-mather merged 29 commits into
mainfrom
galaxy-register
May 15, 2025
Merged

AAI-166 registration endpoint for Galaxy#11
marius-mather merged 29 commits into
mainfrom
galaxy-register

Conversation

@marius-mather

@marius-mather marius-mather commented May 14, 2025

Copy link
Copy Markdown
Collaborator

Description

AAI-166: endpoint in the backend that accepts data from our frontend registration form, and makes a request to the Auth0 management API to create/register a new user.

It seems like we probably want some basic protection around this API, so have added basic JWT verification so we don't just get spammed with register requests from bots.

Changes

  • Add a /galaxy/register endpoint
  • Add JWT protection for the register endpoint
  • Add CORS protection - needed for the frontend to use data from the backend
  • Tests for registration functions

Checklist

  • I have commented my code, particularly in hard-to-understand areas
  • I have added unit / integration tests that prove my fix is effective or that my feature works
  • I have run all tests locally and they pass
  • I have updated the documentation (if applicable)

How to Test Manually (if necessary)

Run uv run pytest

amandazhuyilan
amandazhuyilan previously approved these changes May 14, 2025

@amandazhuyilan amandazhuyilan 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.

Not sure if its ready for review yet but so far so good

Comment thread main.py Outdated
Comment thread main.py Outdated

@amandazhuyilan amandazhuyilan 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.

Looks good - thanks for raising the test coverage :P

@marius-mather marius-mather merged commit b6fa4f9 into main May 15, 2025
1 check failed
@amandazhuyilan amandazhuyilan deleted the galaxy-register branch June 19, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants