Skip to content

feat: Add logout redirect#1166

Merged
ZohebShaikh merged 14 commits intomainfrom
add-logout-redirect
Aug 22, 2025
Merged

feat: Add logout redirect#1166
ZohebShaikh merged 14 commits intomainfrom
add-logout-redirect

Conversation

@ZohebShaikh
Copy link
Copy Markdown
Contributor

Currently we can logout by going to this https://p46-blueapi.diamond.ac.uk/oauth2/sign_out?rd=https%3A%2F%2Fauthn.diamond.ac.uk%2Frealms%2Fmaster%2Fprotocol%2Fopenid-connect%2Flogout. It will be much simpler to logout by going to https://p46-blueapi.diamond.ac.uk/logout. This is when we have oauth2-proxy enabled for blueapi docs page

@ZohebShaikh ZohebShaikh changed the title Add logout redirect feat: Add logout redirect Aug 14, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.54%. Comparing base (858e92d) to head (1283d01).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1166      +/-   ##
==========================================
+ Coverage   94.52%   94.54%   +0.01%     
==========================================
  Files          41       41              
  Lines        2557     2565       +8     
==========================================
+ Hits         2417     2425       +8     
  Misses        140      140              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ZohebShaikh ZohebShaikh marked this pull request as ready for review August 15, 2025 10:50
@ZohebShaikh ZohebShaikh requested a review from a team as a code owner August 15, 2025 10:50
Copy link
Copy Markdown
Contributor

@tpoliaw tpoliaw left a comment

Choose a reason for hiding this comment

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

Initial thoughts - I don't really know how the auth redirect stuff is intended to work so may not be relevant.

Comment thread src/blueapi/service/main.py Outdated
Comment thread src/blueapi/service/main.py Outdated
Comment thread src/blueapi/service/main.py Outdated
Copy link
Copy Markdown
Contributor

@DiamondJoseph DiamondJoseph left a comment

Choose a reason for hiding this comment

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

Requesting some low hanging fruit while I grapple with the test

Comment thread docs/how-to/authenticate.md Outdated
Comment thread src/blueapi/config.py
Comment thread src/blueapi/service/main.py Outdated
Comment thread src/blueapi/service/main.py Outdated
Copy link
Copy Markdown
Contributor

@DiamondJoseph DiamondJoseph left a comment

Choose a reason for hiding this comment

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

Just one nit

Comment thread src/blueapi/config.py Outdated
@ZohebShaikh ZohebShaikh merged commit 2d61c5f into main Aug 22, 2025
19 checks passed
@ZohebShaikh ZohebShaikh deleted the add-logout-redirect branch August 22, 2025 11:46
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.

3 participants