Repository navigation
docs: use generic identity provider examples - #445
Merged
Merged
Conversation
Replace the LS Login issuer, ELIXIR and GEANT group URNs and mentions of LS Login as the example identity provider with the neutral placeholders used elsewhere in FOCA and in cloud-registry (https://login.example.org/oidc/, urn:example:group:<name>#login.example.org), and describe identity provider behaviour generically. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuideThe PR makes documentation and one authentication code comment provider-neutral by replacing LS Login, ELIXIR, GEANT, and organization-specific examples with generic issuer URLs, group URNs, and identity-provider guidance, while preserving configuration semantics and standard claim references. File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #445 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 27 27
Lines 2869 2869
=========================================
Hits 2869 2869
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
uniqueg
marked this pull request as ready for review
October 23, 2026 18:40
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="docs/authentication.md" line_range="138" />
<code_context>
- value, list it in `token_types` instead; note that a generic type such as
- `JWT` does not tell access tokens apart from ID tokens either, so that
- the `audience` is then the only safeguard.
+ header, which RFC 9068 requires to be `at+jwt`. Only if your identity
+ provider does not set the `typ` header of its access tokens, set
+ `verify_token_type: false`: then any JWT issued by a trusted issuer is
</code_context>
<issue_to_address>
**Standard token type appears invalid**
When an identity provider uses `application/at+jwt` for its access tokens, the warning says RFC 9068 requires the `typ` value to be `at+jwt`, implying that `application/at+jwt` is noncompliant or needs extra configuration. The preceding validation description and `AuthConfig` documentation say FOCA accepts both by default, which can confuse operators configuring providers that use the latter.
Clarify that FOCA accepts both documented default values and avoid implying that `application/at+jwt` is invalid under RFC 9068.
</issue_to_address>Sourcery assessment
Approved.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
FOCA stays generic, so this removes identity-provider-specific examples from the docs:
https://login.elixir-czech.org/oidc/replaced byhttps://login.example.org/oidc/(already used intemplates/config.yaml, the petstore examples and cloud-registry) indocs/authentication.md,docs/configuration/auth.md,docs/configuration/access-control.mdanddocs/migration-0.14.md; the two-issuer example now useslogin.example.organdlogin.example.comurn:example:group:<name>#login.example.org, as in cloud-registry (docs/configuration/access-control.md,docs/access-control.md)docs/authentication.md,docs/access-control.md,docs/migration-0.16.md, a comment infoca/security/auth.py)eduperson_entitlementstays: it is a standard eduPerson attribute, not specific to one provider. ELIXIR On-Cloud branding and contact details stay. Test fixtures are unchanged (they already uselogin.example.org).Light lane: docs and one code comment only, so I reviewed the diff myself instead of running the reviewer subagents.
Verification
mkdocs build --strict: passedpre-commit run --files <changed files>: passed (ruff, semgrep, ast-grep, whitespace)pytest tests/security/test_auth.py tests/test_recipes.py: 164 passedgrep -rniE "elixir-czech|lifescience|ls login|urn:geant|elixir-europe\.org"outsidetests/: no matches left except the intended contact addressOpen questions
None.
Closes #444
🤖 Generated with Claude Code
Summary by Sourcery
Use generic identity-provider examples across FOCA documentation and related authentication guidance.
Enhancements:
Documentation:
Chores: