mirror of
https://github.com/project-zot/zot.git
synced 2026-06-19 05:57:57 +08:00
Add OIDC workload identity authentication support
- Add BearerOIDCConfig to configuration for OIDC workload auth - Implement OIDCBearerAuthorizer for validating OIDC ID tokens - Update bearerAuthHandler to support both traditional and OIDC bearer auth - Add claim mapping support for extracting username from OIDC tokens - Support multiple audiences for token validation - Extract groups from token claims for authorization Co-authored-by: rchincha <45800463+rchincha@users.noreply.github.com>
This commit is contained in:
+2
-2
@@ -65,8 +65,8 @@ type BearerAuthorizer struct {
|
||||
key crypto.PublicKey
|
||||
}
|
||||
|
||||
func NewBearerAuthorizer(realm string, service string, key crypto.PublicKey) BearerAuthorizer {
|
||||
return BearerAuthorizer{
|
||||
func NewBearerAuthorizer(realm string, service string, key crypto.PublicKey) *BearerAuthorizer {
|
||||
return &BearerAuthorizer{
|
||||
realm: realm,
|
||||
service: service,
|
||||
key: key,
|
||||
|
||||
Reference in New Issue
Block a user