Skip to content

Commit

Permalink
revert change to make propagated claims required (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbryzak authored Jan 18, 2024
1 parent 1df0e63 commit 15f9e5e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion api/v1alpha1/masteruserrecord_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ type MasterUserRecordSpec struct {

// PropagatedClaims contains a selection of claim values from the SSO Identity Provider which are intended to
// be "propagated" down the resource dependency chain
PropagatedClaims PropagatedClaims `json:"propagatedClaims"`
// +optional
PropagatedClaims PropagatedClaims `json:"propagatedClaims,omitempty"`
}

type UserAccountEmbedded struct {
Expand Down
3 changes: 2 additions & 1 deletion api/v1alpha1/useraccount_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ type UserAccountSpec struct {

// PropagatedClaims contains a selection of claim values from the SSO Identity Provider which are intended to
// be "propagated" down the resource dependency chain
PropagatedClaims PropagatedClaims `json:"propagatedClaims"`
// +optional
PropagatedClaims PropagatedClaims `json:"propagatedClaims,omitempty"`
}

// UserAccountStatus defines the observed state of UserAccount
Expand Down
3 changes: 2 additions & 1 deletion api/v1alpha1/usersignup_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ type UserSignupSpec struct {
OriginalSub string `json:"originalSub,omitempty"`

// IdentityClaims contains as-is claim values extracted from the user's access token
IdentityClaims IdentityClaimsEmbedded `json:"identityClaims"`
// +optional
IdentityClaims IdentityClaimsEmbedded `json:"identityClaims,omitempty"`
}

// IdentityClaimsEmbedded is used to define a set of SSO claim values that we are interested in storing
Expand Down
3 changes: 0 additions & 3 deletions api/v1alpha1/zz_generated.openapi.go

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

0 comments on commit 15f9e5e

Please sign in to comment.