feat: Add another parameter in OAuthLoginManager to seperate between redirecting routes for login and logout
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Quiet
- Domain
- authentication
Research direction
Start in flask_campus/login_manager.py by locating OAuthLoginManager and the blueprint code that uses its default_endpoint. Separate the login and logout redirect parameters, then verify that each flow redirects to its corresponding endpoint.
Written by the indexing model from the issue text.
Description
The current OAuthLoginManager takes in a "default_endpoint" parameter at the current moment, which is used to redirect users who have logged in AND logged out simultaneously. This might cause problems if I wanted users to go to a dashboard page when signed in, and landing page when signed out.
Task
- Refactor OAuthLoginManager such that:
- It accepts TWO, rather than ONE parameter, one for the endpoint to redirect after login and one to redirect after logout
- Refactor the blueprint to redirect via these parameters
Files
- Dominant language
- Python
- Stars
- 0
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nyjc-computing/campus
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nyjc-computing/campus#503 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
nyjc-computing/campus#500 ·
-
for-contributors
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nyjc-computing/campus#400 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
nyjc-computing/campus#255 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
nyjc-computing/campus#605 ·
All issues in nyjc-computing/campus
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100