Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scopes claim #2556

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add scopes claim #2556

wants to merge 1 commit into from

Conversation

dvv
Copy link

@dvv dvv commented Mar 15, 2024

Description

The "scopes" claim is added

Motivation and Context

I want to provide upstream with X-Forwarded-Scopes header which shall contain the effective scopes granted by IDM.
Consider kanidm where scopes are collected with respect to user-group membership. The scopes are effectively rights granted to the user and passing them directly will allow to switch some applications to trusted sso headers thus simplifying such applications auth procedures (no need in unpacking cookie/authorization header).

How Has This Been Tested?

I'm new to Go and I just clone the existing code relevant to very similar "groups" claim. It works fine on my setup.
I don't see how it could affect affects other areas of the code in negative way.
If this PR is welcome I would appreciate if someone with stronger level in Go took the code and added needed (if any) tests.
This would allow me to study by example.
TIA

Checklist:

  • My change requires a change to the documentation or CHANGELOG.
  • I have updated the documentation/CHANGELOG accordingly.
  • I have created a feature (non-master) branch for my PR.
  • I have written tests for my code changes.

Copy link
Contributor

This pull request has been inactive for 60 days. If the pull request is still relevant please comment to re-activate the pull request. If no action is taken within 7 days, the pull request will be marked closed.

@github-actions github-actions bot added the Stale label May 17, 2024
@github-actions github-actions bot closed this May 24, 2024
@tuunit tuunit reopened this Jun 23, 2024
@github-actions github-actions bot removed the Stale label Jun 24, 2024
Copy link
Contributor

This pull request has been inactive for 60 days. If the pull request is still relevant please comment to re-activate the pull request. If no action is taken within 7 days, the pull request will be marked closed.

@github-actions github-actions bot added the Stale label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants