Skip to content

Commit

Permalink
added given name, family name and company
Browse files Browse the repository at this point in the history
  • Loading branch information
sbryzak committed Aug 15, 2023
1 parent b2867db commit 0d9ef5e
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 2 deletions.
25 changes: 25 additions & 0 deletions api/v1alpha1/usersignup_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,31 @@ type UserSignupSpec struct {
// a new IdP provider client, and contains the user's "original-sub" claim
// +optional
OriginalSub string `json:"originalSub,omitempty"`

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

// IdentityClaimsEmbedded is used to define a set of SSO claim values that we are interested in storing
// +k8s:openapi-gen=true
type IdentityClaimsEmbedded struct {
// Sub contains the value of the 'sub' claim
Sub string `json:"sub,omitempty"`

// UserID contains the value of the 'user_id' claim
UserID string `json:"userID,omitempty"`

// AccountID contains the value of the 'account_id' claim
AccountID string `json:"accountID,omitempty"`

// GivenName contains the value of the 'given_name' claim
GivenName string `json:"givenName,omitempty"`

// FamilyName contains the value of the 'family_name' claim
FamilyName string `json:"familyName,omitempty"`

// Company contains the value of the 'company' claim
Company string `json:"company,omitempty"`
}

// UserSignupStatus defines the observed state of UserSignup
Expand Down
16 changes: 16 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

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

69 changes: 67 additions & 2 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 0d9ef5e

Please sign in to comment.