Skip to content

Conversation

@mewilker
Copy link
Contributor

Overview

This PR is an overhall of the authentication. Currently, we use CAS protocol to redirect students to the BYU sign-in. This change will use OAuth to authenticate and grab an identity token.

Details

  • Added Client Secret to startup arguments
  • Authetication now redirects to BYU's OpenID API endpoint

Testing

  • Added/updated unit tests
  • Tested edge cases
  • Manual testing (if needed)

Future Work

In order to reduce the number of changes to the code, the autograder will still make it's own tokens to call the authenticated endpoints. However, it may be a good idea to refactor and rely completely on the BYU granted tokens.

Additional Notes

Please ensure that you can use the new setup. I made big changes to the code here, and I want to make sure new devs can follow the instructions. Please comment if you feel there are additions to the documentation that would be helpful. I will not go through all the specifics: there is BYU documentation for that.

I have notifications for this change to go live on January 27th. Please try to have your feedback in before then.

however the authentication still will not work
@mewilker mewilker requested a review from a team January 20, 2026 02:59
@mewilker mewilker self-assigned this Jan 20, 2026
Copy link
Contributor

@Maillman Maillman left a comment

Choose a reason for hiding this comment

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

Great work! I was able to run the autograder locally, and everything is working as it should! There are a couple of minor things I've noticed, and some suggestions for some parts of the code. But overall, this looks great!
Thanks, Makenna!!!

@mewilker
Copy link
Contributor Author

Thank you for the feedback @Maillman! Glad you were able to get it going. Do you have any complaints about the process of getting running on your machine?

@Maillman
Copy link
Contributor

@mewilker I don't have any personal complaints about getting it set up. The process felt pretty smooth for me!

@mewilker mewilker requested a review from Maillman January 27, 2026 00:24
Copy link
Collaborator

@TheDavSmasher TheDavSmasher left a comment

Choose a reason for hiding this comment

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

I've already suggested everything I could see and think of so looks good to me

@mewilker mewilker merged commit ff06618 into main Jan 27, 2026
3 checks passed
@mewilker mewilker deleted the oauth branch January 27, 2026 20:59
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.

6 participants