mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-14 07:33:36 +01:00
[PR #41] [MERGED] feat: add groups support for OIDC claims #148
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/yusing/godoxy/pull/41
Author: @polds
Created: 1/14/2025
Status: ✅ Merged
Merged: 1/14/2025
Merged by: @yusing
Base:
feat/oidc-middleware← Head:feat/oidc-group-support📝 Commits (1)
73de18efeat: add groups support for OIDC claims📊 Changes
7 files changed (+442 additions, -43 deletions)
View changed files
📝
.env.example(+14 -1)📝
internal/api/v1/auth/oidc.go(+25 -13)📝
internal/api/v1/auth/oidc_test.go(+275 -22)📝
internal/common/env.go(+7 -6)📝
internal/net/http/middleware/oidc.go(+5 -1)➕
internal/utils/slices.go(+20 -0)➕
internal/utils/slices_test.go(+96 -0)📄 Description
Allow users to specify allowed groups in the env and use it to inspect the claims.
This performs a logical AND of users and groups (additive).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.