Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions api/common/oidc_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ type OIDCProviderConfig struct {
// +kubebuilder:validation:MinLength=1
UsernamePrefix string `json:"usernamePrefix"`

// ExtraScopes is a list of extra scopes that should be requested from the OIDC provider.
// +optional
ExtraScopes []string `json:"extraScopes,omitempty"`

// RoleBindings is a list of subjects with (cluster) role bindings that should be created for them.
// Note that the username prefix is added automatically to the subjects' names, it must not be explicitly specified here.
RoleBindings []RoleBindings `json:"roleBindings"`
Expand Down
5 changes: 5 additions & 0 deletions api/common/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions api/crds/manifests/clusters.openmcp.cloud_accessrequests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ spec:
clientID:
description: ClientID is the client ID to use for the OIDC provider.
type: string
extraScopes:
description: ExtraScopes is a list of extra scopes that should
be requested from the OIDC provider.
items:
type: string
type: array
groupsClaim:
default: groups
description: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ spec:
description: ClientID is the client ID to use for the OIDC
provider.
type: string
extraScopes:
description: ExtraScopes is a list of extra scopes that
should be requested from the OIDC provider.
items:
type: string
type: array
groupsClaim:
default: groups
description: |-
Expand Down