Skip to content

feat: use issuer url instead of well known url#1371

Merged
ZohebShaikh merged 13 commits into
mainfrom
check-issuer
Jun 26, 2026
Merged

feat: use issuer url instead of well known url#1371
ZohebShaikh merged 13 commits into
mainfrom
check-issuer

Conversation

@ZohebShaikh

Copy link
Copy Markdown
Contributor

No description provided.

@ZohebShaikh ZohebShaikh changed the title add issuer instead of well known url feat: add issuer instead of well known url Feb 3, 2026
@codecov

codecov Bot commented Feb 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.93%. Comparing base (8d585a9) to head (1aff4bf).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1371      +/-   ##
==========================================
+ Coverage   95.91%   95.93%   +0.01%     
==========================================
  Files          44       44              
  Lines        3255     3269      +14     
==========================================
+ Hits         3122     3136      +14     
  Misses        133      133              

☔ View full report in Codecov by Harness.
📢 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.

Comment thread src/blueapi/config.py Outdated
@ZohebShaikh ZohebShaikh marked this pull request as ready for review February 3, 2026 14:05
@ZohebShaikh ZohebShaikh requested a review from a team as a code owner February 3, 2026 14:05
@ZohebShaikh ZohebShaikh changed the title feat: add issuer instead of well known url feat: use issuer url instead of well known url Feb 3, 2026

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

I like this change - it makes the auth config much clearer, thanks.

That said, this is a breaking change that will need every beamline to update its config and for GDA to support the new API. We have a list of breaking issues that are waiting for a 2.0 release so it might be worth adding an issue there for this change and keeping this PR around until we decide to break everything at once.

@ZohebShaikh ZohebShaikh added this to the Blueapi 2.0.0 milestone Feb 3, 2026
Comment thread src/blueapi/config.py Outdated
def _config_from_oidc_url(self) -> dict[str, Any]:
response: requests.Response = requests.get(self.well_known_url)
response: requests.Response = requests.get(
self.issuer + "/.well-known/openid-configuration"

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.

May be worth calling out that this address must exist, that may determine what the "issuer" is.

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.

Spec for this is here as a MUST so we can probably rely on it.

OpenID Providers supporting Discovery MUST make a JSON document available at the path formed by concatenating the string /.well-known/openid-configuration to the Issuer

@ZohebShaikh ZohebShaikh marked this pull request as draft February 19, 2026 15:15
@ZohebShaikh ZohebShaikh requested a review from tpoliaw April 28, 2026 13:22
@ZohebShaikh ZohebShaikh marked this pull request as ready for review April 28, 2026 13:22
@ZohebShaikh

Copy link
Copy Markdown
Contributor Author

@tpoliaw I have made it backwards compatible so in v2 we can remove the backwards compatibility.

@ZohebShaikh

Copy link
Copy Markdown
Contributor Author

@tpoliaw Can you have a look at this ?

Comment thread src/blueapi/config.py Outdated
Comment thread src/blueapi/config.py Outdated
Comment thread tests/unit_tests/test_config.py Outdated
@tpoliaw tpoliaw removed this from the Blueapi 2.0.0 milestone Jun 24, 2026
@ZohebShaikh ZohebShaikh added this pull request to the merge queue Jun 26, 2026
Merged via the queue into main with commit 54b179b Jun 26, 2026
20 checks passed
@ZohebShaikh ZohebShaikh deleted the check-issuer branch June 26, 2026 10:17
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