diff --git a/api/v1alpha1/usersignup_types.go b/api/v1alpha1/usersignup_types.go index 2f07c9e1..1f4a6942 100644 --- a/api/v1alpha1/usersignup_types.go +++ b/api/v1alpha1/usersignup_types.go @@ -201,6 +201,7 @@ type IdentityClaimsEmbedded struct { Company string `json:"company,omitempty"` } +// +k8s:openapi-gen=true type PropagatedClaims struct { // Sub contains the value of the 'sub' claim Sub string `json:"sub"` diff --git a/api/v1alpha1/zz_generated.openapi.go b/api/v1alpha1/zz_generated.openapi.go index 2de0fdbb..e4e27d45 100644 --- a/api/v1alpha1/zz_generated.openapi.go +++ b/api/v1alpha1/zz_generated.openapi.go @@ -78,6 +78,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/codeready-toolchain/api/api/v1alpha1.NotificationSpec": schema_codeready_toolchain_api_api_v1alpha1_NotificationSpec(ref), "github.com/codeready-toolchain/api/api/v1alpha1.NotificationStatus": schema_codeready_toolchain_api_api_v1alpha1_NotificationStatus(ref), "github.com/codeready-toolchain/api/api/v1alpha1.NotificationsConfig": schema_codeready_toolchain_api_api_v1alpha1_NotificationsConfig(ref), + "github.com/codeready-toolchain/api/api/v1alpha1.PropagatedClaims": schema_codeready_toolchain_api_api_v1alpha1_PropagatedClaims(ref), "github.com/codeready-toolchain/api/api/v1alpha1.ProxyPlugin": schema_codeready_toolchain_api_api_v1alpha1_ProxyPlugin(ref), "github.com/codeready-toolchain/api/api/v1alpha1.ProxyPluginSpec": schema_codeready_toolchain_api_api_v1alpha1_ProxyPluginSpec(ref), "github.com/codeready-toolchain/api/api/v1alpha1.ProxyPluginStatus": schema_codeready_toolchain_api_api_v1alpha1_ProxyPluginStatus(ref), @@ -2406,6 +2407,56 @@ func schema_codeready_toolchain_api_api_v1alpha1_NotificationsConfig(ref common. } } +func schema_codeready_toolchain_api_api_v1alpha1_PropagatedClaims(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "sub": { + SchemaProps: spec.SchemaProps{ + Description: "Sub contains the value of the 'sub' claim", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "userID": { + SchemaProps: spec.SchemaProps{ + Description: "UserID contains the value of the 'user_id' claim", + Type: []string{"string"}, + Format: "", + }, + }, + "accountID": { + SchemaProps: spec.SchemaProps{ + Description: "AccountID contains the value of the 'account_id' claim", + Type: []string{"string"}, + Format: "", + }, + }, + "originalSub": { + SchemaProps: spec.SchemaProps{ + Description: "OriginalSub is an optional property temporarily introduced for the purpose of migrating the users to a new IdP provider client, and contains the user's \"original-sub\" claim", + Type: []string{"string"}, + Format: "", + }, + }, + "email": { + SchemaProps: spec.SchemaProps{ + Description: "Email contains the user's email address", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"sub", "email"}, + }, + }, + } +} + func schema_codeready_toolchain_api_api_v1alpha1_ProxyPlugin(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{