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

Allow OIDC fallback to id_token for group support #5500

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

ogenstad
Copy link
Contributor

Fixes #5464

@github-actions github-actions bot added the group/backend Issue related to the backend (API Server, Git Agent) label Jan 17, 2025
Copy link

codspeed-hq bot commented Jan 17, 2025

CodSpeed Performance Report

Merging #5500 will not alter performance

Comparing pog-oidc-groups-from-id_token-IFC-1133 (cdcf22d) with stable (4929486)

Summary

✅ 10 untouched benchmarks

@ogenstad ogenstad force-pushed the pog-oidc-groups-from-id_token-IFC-1133 branch 2 times, most recently from 273a00b to 2b5c2f4 Compare January 17, 2025 10:10
@ogenstad ogenstad marked this pull request as ready for review January 17, 2025 10:41
@ogenstad ogenstad requested a review from a team January 20, 2025 12:31
@@ -185,3 +188,28 @@ def _validate_response(response: httpx.Response) -> None:
body=response.json(),
)
raise GatewayError(message="Invalid response from Authentication provider")


async def _get_id_token_groups(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would be good to add a unit test for this function with the expected format of the token

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've added some tests around this function now.

@ogenstad ogenstad force-pushed the pog-oidc-groups-from-id_token-IFC-1133 branch from 2b5c2f4 to cdcf22d Compare January 21, 2025 10:02
@ogenstad ogenstad requested a review from dgarros January 21, 2025 12:35
@ogenstad ogenstad merged commit 20d5465 into stable Jan 21, 2025
36 checks passed
@ogenstad ogenstad deleted the pog-oidc-groups-from-id_token-IFC-1133 branch January 21, 2025 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group/backend Issue related to the backend (API Server, Git Agent)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature: Be able to use Azure SSO with OIDC
2 participants