Skip to content

feat: adds user authentication #218

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

Merged
merged 21 commits into from
Jun 3, 2025
Merged

feat: adds user authentication #218

merged 21 commits into from
Jun 3, 2025

Conversation

yosefmaru
Copy link
Member

Closes #3

@@ -49,7 +49,8 @@
<a href="/job_params">Job Parameters</a> |
<a title="Download job template as .xslx" href= "/api/job_upload_template" download>Job Submit Template</a> |
<a title="List of project names" href= "{{ project_names_url }}" target="_blank" >Project Names</a> |
<a title="For more information click here" href="https://aind-data-transfer-service.readthedocs.io" target="_blank" >Help</a>
<a title="For more information click here" href="https://aind-data-transfer-service.readthedocs.io" target="_blank" >Help</a> |
<a href="/login">Sign-In</a>
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add the Sign-In button to the navbar in the other pages? Namely, the Job Status and Job Params pages.

Copy link
Member Author

Choose a reason for hiding this comment

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

I am not entirely sure if the Sign-In button is necessary, as it's kind of doesn't add anything. I am actually thinking to remove it. @jtyoung84?

Copy link
Contributor

Choose a reason for hiding this comment

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

Replaced with button for Admin page instead

@yosefmaru yosefmaru removed the request for review from jtyoung84 April 15, 2025 22:10
@yosefmaru yosefmaru force-pushed the feat-3-user-authentication branch from 14a1ecc to 42fc55f Compare April 17, 2025 18:08
@yosefmaru yosefmaru marked this pull request as ready for review April 24, 2025 22:15
@yosefmaru yosefmaru requested a review from helen-m-lin April 24, 2025 22:47
@helen-m-lin
Copy link
Contributor

helen-m-lin commented May 27, 2025

I pushed some changes so that:

  • sign-in is only triggered when the user clicks the Admin page. No sign-in required for Job Params page
  • Admin page displays user's name and email

I also made some minor changes to update the local setup docs, add styling, and handle an edge case with userinfo not in returned token.

Edit: also added logout endpoint. Logout button available on Admin page when user is signed in.

@yosefmaru yosefmaru merged commit 82e147f into dev Jun 3, 2025
3 checks passed
@yosefmaru yosefmaru deleted the feat-3-user-authentication branch June 3, 2025 18:33
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.

Authentication?
3 participants