Skip to content

docs: add entitlement-style groups example - #319

Merged
uniqueg merged 2 commits into
devfrom
docs/ls-login-example
Nov 1, 2026
Merged

uniqueg merged 2 commits into
devfrom
docs/ls-login-example

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds a generic "Entitlement-style groups" example (placeholders only; IdP-specific settings belong to the deployment documentation) to docs/configuration.md and docs/access-control.md: issuer, audience, claim_groups, userinfo_claims, URN admin key in group_mapping, login scope, URL-encoding of # and : in group paths, and typ: at+jwt (verify_token_type). Key names checked against cloud_registry/config.yaml. deployment/ is not touched (chart PR #310).

Closes #318

Verification

  • mkdocs build --strict: passed
  • pre-commit on the changed files: passed

Light lane: docs only, no code or configuration changes; reviewer subagents skipped.

Declined review findings

None.

Open questions

None.

🤖 Generated with Claude Code

Summary by Sourcery

Document entitlement-style group configuration and access-control usage for identity providers that expose groups as URN claims.

New Features:

  • Add documentation examples for configuring entitlement-style URN groups and mapping them to roles.

Enhancements:

  • Document URL encoding requirements for URN group paths and token, claim, scope, audience, and user-info considerations.

Documentation:

  • Cross-reference entitlement-style group configuration with access-control guidance while keeping identity-provider-specific settings in deployment documentation.

Add a generic example for entitlement-style group claims (e.g., LS
Login) to the configuration and access control docs: issuer,
audience, claim_groups, userinfo_claims, URN admin key, login scope,
URL-encoding of groups in paths and at+jwt access tokens.

Closes #318

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@uniqueg uniqueg added this to the v1.0.0-rc1 milestone Nov 1, 2026
@uniqueg uniqueg added the type: docs Improvements or additions to documentation label Nov 1, 2026
@sourcery-ai

sourcery-ai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Adds documentation-only guidance for configuring entitlement-style groups supplied as URNs through identity-provider claims, including the required claims, scopes, token validation, YAML quoting, and URL-encoded access-control paths.

File-Level Changes

Change Details Files
Add a generic configuration example for identity providers that expose entitlement-style URN groups through user info claims.
  • Show issuer, audience, claim_groups, userinfo_claims, and illustrative URN-to-admin mapping settings.
  • Explain required login scopes, email claims, access-token type validation, and audience alignment.
  • Keep identity-provider-specific values as placeholders and deployment documentation concerns out of the example.
docs/configuration.md
Document how to use URN group values in access-control paths and link to the configuration guidance.
  • Explain percent-encoding of : and # in entitlement group paths with a curl example.
  • Cross-reference the configuration section for claim, scope, token-type, and audience requirements.
docs/access-control.md

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

The repository must not name specific identity providers; settings
for those belong to the deployment documentation.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@uniqueg
uniqueg marked this pull request as ready for review November 1, 2026 14:42

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!

Linked issues

#318 docs: add an entitlement-style groups example · 4 of 4 met

# Requirement Status Notes
1 Add a generic entitlement-style groups example to docs/configuration.md with issuer, audience, claim_groups, userinfo_claims, and a URN admin key. ✅ Met The example configures each setting and maps an illustrative URN to admin.
2 Document the login scope needed to release the entitlement claim and the requirement for at+jwt access tokens. ✅ Met The notes explain the needed login scopes and the at+jwt token type, including verify_token_type.
3 Add entitlement-style group guidance to docs/access-control.md, including URL-encoding # and : in group paths. ✅ Met The section gives the encodings and an encoded URN example, and links to the configuration example.
4 Keep settings for specific identity providers in deployment documentation, not this repository. ✅ Met The configuration documentation explicitly says provider-specific settings belong in deployment documentation; the example uses generic placeholders.

Sourcery assessment

Approved.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@codecov

codecov Bot commented Nov 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (6c5f808) to head (9db6e34).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #319   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines         2368      2368           
=========================================
  Hits          2368      2368           

☔ 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.

@uniqueg
uniqueg merged commit d48b12a into dev Nov 1, 2026
32 checks passed
@uniqueg
uniqueg deleted the docs/ls-login-example branch November 1, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: add an entitlement-style groups example

1 participant