Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat: add auth style field to idp (#7236)
boojackc0070f78eaac
diff --git a/frontend/src/types/proto/store/idp.ts b/frontend/src/types/proto/store/idp.tsindex ab0a42e232..27189d5d67 100644--- a/frontend/src/types/proto/store/idp.ts+++ b/frontend/src/types/proto/store/idp.ts@@ -42,6 +42,53 @@ export function identityProviderTypeToJSON(object: IdentityProviderType): string}}+export enum OAuth2AuthStyle {+ OAUTH2_AUTH_STYLE_UNSPECIFIED = 0,+ /**+ * IN_PARAMS - IN_PARAMS sends the "client_id" and "client_secret" in the POST body+ * as application/x-www-form-urlencoded parameters.+ */+ IN_PARAMS = 1,+ /**+ * IN_HEADER - IN_HEADER sends the client_id and client_password using HTTP Basic Authorization.+ * This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.+ */+ IN_HEADER = 2,+ UNRECOGNIZED = -1,+}++export function oAuth2AuthStyleFromJSON(object: any): OAuth2AuthStyle {+ switch (object) {+ case 0:+ case "OAUTH2_AUTH_STYLE_UNSPECIFIED":+ return OAuth2AuthStyle.OAUTH2_AUTH_STYLE_UNSPECIFIED;+ case 1:+ case "IN_PARAMS":+ return OAuth2AuthStyle.IN_PARAMS;+ case 2:+ case "IN_HEADER":+ return OAuth2AuthStyle.IN_HEADER;+ case -1:+ case "UNRECOGNIZED":+ default:+ return OAuth2AuthStyle.UNRECOGNIZED;+ }+}++export function oAuth2AuthStyleToJSON(object: OAuth2AuthStyle): string {+ switch (object) {+ case OAuth2AuthStyle.OAUTH2_AUTH_STYLE_UNSPECIFIED:+ return "OAUTH2_AUTH_STYLE_UNSPECIFIED";+ case OAuth2AuthStyle.IN_PARAMS:+ return "IN_PARAMS";+ case OAuth2AuthStyle.IN_HEADER:+ return "IN_HEADER";+ case OAuth2AuthStyle.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}+export interface IdentityProviderConfig {oauth2Config?: OAuth2IdentityProviderConfig | undefined;oidcConfig?: OIDCIdentityProviderConfig | undefined;@@ -57,6 +104,7 @@ export interface OAuth2IdentityProviderConfig {scopes: string[];fieldMapping?: FieldMapping | undefined;skipTlsVerify: boolean;+ authStyle: OAuth2AuthStyle;}/** OIDCIdentityProviderConfig is the structure for OIDC identity provider config. */@@ -66,6 +114,7 @@ export interface OIDCIdentityProviderConfig {clientSecret: string;fieldMapping?: FieldMapping | undefined;skipTlsVerify: boolean;+ authStyle: OAuth2AuthStyle;}/**@@ -183,6 +232,7 @@ function createBaseOAuth2IdentityProviderConfig(): OAuth2IdentityProviderConfigscopes: [],fieldMapping: undefined,skipTlsVerify: false,+ authStyle: 0,};}@@ -212,6 +262,9 @@ export const OAuth2IdentityProviderConfig = {if (message.skipTlsVerify === true) {writer.uint32(64).bool(message.skipTlsVerify);}+ if (message.authStyle !== 0) {+ writer.uint32(72).int32(message.authStyle);+ }return writer;},@@ -278,6 +331,13 @@ export const OAuth2IdentityProviderConfig = {message.skipTlsVerify = reader.bool();continue;+ case 9:+ if (tag !== 72) {+ break;+ }++ message.authStyle = reader.int32() as any;+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -297,6 +357,7 @@ export const OAuth2IdentityProviderConfig = {scopes: Array.isArray(object?.scopes) ? object.scopes.map((e: any) => String(e)) : [],fieldMapping: isSet(object.fieldMapping) ? FieldMapping.fromJSON(object.fieldMapping) : undefined,skipTlsVerify: isSet(object.skipTlsVerify) ? Boolean(object.skipTlsVerify) : false,+ authStyle: isSet(object.authStyle) ? oAuth2AuthStyleFromJSON(object.authStyle) : 0,};},@@ -315,6 +376,7 @@ export const OAuth2IdentityProviderConfig = {message.fieldMapping !== undefined &&(obj.fieldMapping = message.fieldMapping ? FieldMapping.toJSON(message.fieldMapping) : undefined);message.skipTlsVerify !== undefined && (obj.skipTlsVerify = message.skipTlsVerify);+ message.authStyle !== undefined && (obj.authStyle = oAuth2AuthStyleToJSON(message.authStyle));return obj;},@@ -334,12 +396,13 @@ export const OAuth2IdentityProviderConfig = {? FieldMapping.fromPartial(object.fieldMapping): undefined;message.skipTlsVerify = object.skipTlsVerify ?? false;+ message.authStyle = object.authStyle ?? 0;return message;},};function createBaseOIDCIdentityProviderConfig(): OIDCIdentityProviderConfig {- return { issuer: "", clientId: "", clientSecret: "", fieldMapping: undefined, skipTlsVerify: false };+ return { issuer: "", clientId: "", clientSecret: "", fieldMapping: undefined, skipTlsVerify: false, authStyle: 0 };}export const OIDCIdentityProviderConfig = {@@ -359,6 +422,9 @@ export const OIDCIdentityProviderConfig = {if (message.skipTlsVerify === true) {writer.uint32(40).bool(message.skipTlsVerify);}+ if (message.authStyle !== 0) {+ writer.uint32(48).int32(message.authStyle);+ }return writer;},@@ -404,6 +470,13 @@ export const OIDCIdentityProviderConfig = {message.skipTlsVerify = reader.bool();continue;+ case 6:+ if (tag !== 48) {+ break;+ }++ message.authStyle = reader.int32() as any;+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -420,6 +493,7 @@ export const OIDCIdentityProviderConfig = {clientSecret: isSet(object.clientSecret) ? String(object.clientSecret) : "",fieldMapping: isSet(object.fieldMapping) ? FieldMapping.fromJSON(object.fieldMapping) : undefined,skipTlsVerify: isSet(object.skipTlsVerify) ? Boolean(object.skipTlsVerify) : false,+ authStyle: isSet(object.authStyle) ? oAuth2AuthStyleFromJSON(object.authStyle) : 0,};},@@ -431,6 +505,7 @@ export const OIDCIdentityProviderConfig = {message.fieldMapping !== undefined &&(obj.fieldMapping = message.fieldMapping ? FieldMapping.toJSON(message.fieldMapping) : undefined);message.skipTlsVerify !== undefined && (obj.skipTlsVerify = message.skipTlsVerify);+ message.authStyle !== undefined && (obj.authStyle = oAuth2AuthStyleToJSON(message.authStyle));return obj;},@@ -447,6 +522,7 @@ export const OIDCIdentityProviderConfig = {? FieldMapping.fromPartial(object.fieldMapping): undefined;message.skipTlsVerify = object.skipTlsVerify ?? false;+ message.authStyle = object.authStyle ?? 0;return message;},};diff --git a/frontend/src/types/proto/v1/idp_service.ts b/frontend/src/types/proto/v1/idp_service.tsindex 4b4fd3721f..766fe15251 100644--- a/frontend/src/types/proto/v1/idp_service.ts+++ b/frontend/src/types/proto/v1/idp_service.ts@@ -46,6 +46,53 @@ export function identityProviderTypeToJSON(object: IdentityProviderType): string}}+export enum OAuth2AuthStyle {+ OAUTH2_AUTH_STYLE_UNSPECIFIED = 0,+ /**+ * IN_PARAMS - IN_PARAMS sends the "client_id" and "client_secret" in the POST body+ * as application/x-www-form-urlencoded parameters.+ */+ IN_PARAMS = 1,+ /**+ * IN_HEADER - IN_HEADER sends the client_id and client_password using HTTP Basic Authorization.+ * This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.+ */+ IN_HEADER = 2,+ UNRECOGNIZED = -1,+}++export function oAuth2AuthStyleFromJSON(object: any): OAuth2AuthStyle {+ switch (object) {+ case 0:+ case "OAUTH2_AUTH_STYLE_UNSPECIFIED":+ return OAuth2AuthStyle.OAUTH2_AUTH_STYLE_UNSPECIFIED;+ case 1:+ case "IN_PARAMS":+ return OAuth2AuthStyle.IN_PARAMS;+ case 2:+ case "IN_HEADER":+ return OAuth2AuthStyle.IN_HEADER;+ case -1:+ case "UNRECOGNIZED":+ default:+ return OAuth2AuthStyle.UNRECOGNIZED;+ }+}++export function oAuth2AuthStyleToJSON(object: OAuth2AuthStyle): string {+ switch (object) {+ case OAuth2AuthStyle.OAUTH2_AUTH_STYLE_UNSPECIFIED:+ return "OAUTH2_AUTH_STYLE_UNSPECIFIED";+ case OAuth2AuthStyle.IN_PARAMS:+ return "IN_PARAMS";+ case OAuth2AuthStyle.IN_HEADER:+ return "IN_HEADER";+ case OAuth2AuthStyle.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}+export interface GetIdentityProviderRequest {name: string;}@@ -169,6 +216,7 @@ export interface OAuth2IdentityProviderConfig {scopes: string[];fieldMapping?: FieldMapping | undefined;skipTlsVerify: boolean;+ authStyle: OAuth2AuthStyle;}/** OIDCIdentityProviderConfig is the structure for OIDC identity provider config. */@@ -179,6 +227,7 @@ export interface OIDCIdentityProviderConfig {scopes: string[];fieldMapping?: FieldMapping | undefined;skipTlsVerify: boolean;+ authStyle: OAuth2AuthStyle;}/**@@ -1083,6 +1132,7 @@ function createBaseOAuth2IdentityProviderConfig(): OAuth2IdentityProviderConfigscopes: [],fieldMapping: undefined,skipTlsVerify: false,+ authStyle: 0,};}@@ -1112,6 +1162,9 @@ export const OAuth2IdentityProviderConfig = {if (message.skipTlsVerify === true) {writer.uint32(64).bool(message.skipTlsVerify);}+ if (message.authStyle !== 0) {+ writer.uint32(72).int32(message.authStyle);+ }return writer;},@@ -1178,6 +1231,13 @@ export const OAuth2IdentityProviderConfig = {message.skipTlsVerify = reader.bool();continue;+ case 9:+ if (tag !== 72) {+ break;+ }++ message.authStyle = reader.int32() as any;+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -1197,6 +1257,7 @@ export const OAuth2IdentityProviderConfig = {scopes: Array.isArray(object?.scopes) ? object.scopes.map((e: any) => String(e)) : [],fieldMapping: isSet(object.fieldMapping) ? FieldMapping.fromJSON(object.fieldMapping) : undefined,skipTlsVerify: isSet(object.skipTlsVerify) ? Boolean(object.skipTlsVerify) : false,+ authStyle: isSet(object.authStyle) ? oAuth2AuthStyleFromJSON(object.authStyle) : 0,};},@@ -1215,6 +1276,7 @@ export const OAuth2IdentityProviderConfig = {message.fieldMapping !== undefined &&(obj.fieldMapping = message.fieldMapping ? FieldMapping.toJSON(message.fieldMapping) : undefined);message.skipTlsVerify !== undefined && (obj.skipTlsVerify = message.skipTlsVerify);+ message.authStyle !== undefined && (obj.authStyle = oAuth2AuthStyleToJSON(message.authStyle));return obj;},@@ -1234,12 +1296,21 @@ export const OAuth2IdentityProviderConfig = {? FieldMapping.fromPartial(object.fieldMapping): undefined;message.skipTlsVerify = object.skipTlsVerify ?? false;+ message.authStyle = object.authStyle ?? 0;return message;},};function createBaseOIDCIdentityProviderConfig(): OIDCIdentityProviderConfig {- return { issuer: "", clientId: "", clientSecret: "", scopes: [], fieldMapping: undefined, skipTlsVerify: false };+ return {+ issuer: "",+ clientId: "",+ clientSecret: "",+ scopes: [],+ fieldMapping: undefined,+ skipTlsVerify: false,+ authStyle: 0,+ };}export const OIDCIdentityProviderConfig = {@@ -1262,6 +1333,9 @@ export const OIDCIdentityProviderConfig = {if (message.skipTlsVerify === true) {writer.uint32(48).bool(message.skipTlsVerify);}+ if (message.authStyle !== 0) {+ writer.uint32(56).int32(message.authStyle);+ }return writer;},@@ -1314,6 +1388,13 @@ export const OIDCIdentityProviderConfig = {message.skipTlsVerify = reader.bool();continue;+ case 7:+ if (tag !== 56) {+ break;+ }++ message.authStyle = reader.int32() as any;+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -1331,6 +1412,7 @@ export const OIDCIdentityProviderConfig = {scopes: Array.isArray(object?.scopes) ? object.scopes.map((e: any) => String(e)) : [],fieldMapping: isSet(object.fieldMapping) ? FieldMapping.fromJSON(object.fieldMapping) : undefined,skipTlsVerify: isSet(object.skipTlsVerify) ? Boolean(object.skipTlsVerify) : false,+ authStyle: isSet(object.authStyle) ? oAuth2AuthStyleFromJSON(object.authStyle) : 0,};},@@ -1347,6 +1429,7 @@ export const OIDCIdentityProviderConfig = {message.fieldMapping !== undefined &&(obj.fieldMapping = message.fieldMapping ? FieldMapping.toJSON(message.fieldMapping) : undefined);message.skipTlsVerify !== undefined && (obj.skipTlsVerify = message.skipTlsVerify);+ message.authStyle !== undefined && (obj.authStyle = oAuth2AuthStyleToJSON(message.authStyle));return obj;},@@ -1364,6 +1447,7 @@ export const OIDCIdentityProviderConfig = {? FieldMapping.fromPartial(object.fieldMapping): undefined;message.skipTlsVerify = object.skipTlsVerify ?? false;+ message.authStyle = object.authStyle ?? 0;return message;},};diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex d5a8eb5218..6a2ea6ce3c 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -65,6 +65,7 @@- [OIDCIdentityProviderConfig](#bytebase-store-OIDCIdentityProviderConfig)- [IdentityProviderType](#bytebase-store-IdentityProviderType)+ - [OAuth2AuthStyle](#bytebase-store-OAuth2AuthStyle)- [store/instance.proto](#store_instance-proto)- [InstanceOptions](#bytebase-store-InstanceOptions)@@ -1015,6 +1016,7 @@ OAuth2IdentityProviderConfig is the structure for OAuth2 identity provider confi| scopes | [string](#string) | repeated | || field_mapping | [FieldMapping](#bytebase-store-FieldMapping) | | || skip_tls_verify | [bool](#bool) | | |+| auth_style | [OAuth2AuthStyle](#bytebase-store-OAuth2AuthStyle) | | |@@ -1034,6 +1036,7 @@ OIDCIdentityProviderConfig is the structure for OIDC identity provider config.| client_secret | [string](#string) | | || field_mapping | [FieldMapping](#bytebase-store-FieldMapping) | | || skip_tls_verify | [bool](#bool) | | |+| auth_style | [OAuth2AuthStyle](#bytebase-store-OAuth2AuthStyle) | | |@@ -1054,6 +1057,19 @@ OIDCIdentityProviderConfig is the structure for OIDC identity provider config.| OIDC | 2 | |++<a name="bytebase-store-OAuth2AuthStyle"></a>++### OAuth2AuthStyle+++| Name | Number | Description |+| ---- | ------ | ----------- |+| OAUTH2_AUTH_STYLE_UNSPECIFIED | 0 | |+| IN_PARAMS | 1 | IN_PARAMS sends the "client_id" and "client_secret" in the POST body as application/x-www-form-urlencoded parameters. |+| IN_HEADER | 2 | IN_HEADER sends the client_id and client_password using HTTP Basic Authorization. This is an optional style described in the OAuth2 RFC 6749 section 2.3.1. |++diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex d51adb0be6..f774d96ebb 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -247,6 +247,7 @@- [UpdateIdentityProviderRequest](#bytebase-v1-UpdateIdentityProviderRequest)- [IdentityProviderType](#bytebase-v1-IdentityProviderType)+ - [OAuth2AuthStyle](#bytebase-v1-OAuth2AuthStyle)- [IdentityProviderService](#bytebase-v1-IdentityProviderService)@@ -4091,6 +4092,7 @@ OAuth2IdentityProviderConfig is the structure for OAuth2 identity provider confi| scopes | [string](#string) | repeated | || field_mapping | [FieldMapping](#bytebase-v1-FieldMapping) | | || skip_tls_verify | [bool](#bool) | | |+| auth_style | [OAuth2AuthStyle](#bytebase-v1-OAuth2AuthStyle) | | |@@ -4126,6 +4128,7 @@ OIDCIdentityProviderConfig is the structure for OIDC identity provider config.| scopes | [string](#string) | repeated | || field_mapping | [FieldMapping](#bytebase-v1-FieldMapping) | | || skip_tls_verify | [bool](#bool) | | |+| auth_style | [OAuth2AuthStyle](#bytebase-v1-OAuth2AuthStyle) | | |@@ -4205,6 +4208,19 @@ The identity provider's `name` field is used to identify the identity provid| OIDC | 2 | |++<a name="bytebase-v1-OAuth2AuthStyle"></a>++### OAuth2AuthStyle+++| Name | Number | Description |+| ---- | ------ | ----------- |+| OAUTH2_AUTH_STYLE_UNSPECIFIED | 0 | |+| IN_PARAMS | 1 | IN_PARAMS sends the "client_id" and "client_secret" in the POST body as application/x-www-form-urlencoded parameters. |+| IN_HEADER | 2 | IN_HEADER sends the client_id and client_password using HTTP Basic Authorization. This is an optional style described in the OAuth2 RFC 6749 section 2.3.1. |++diff --git a/proto/generated-go/store/idp.pb.go b/proto/generated-go/store/idp.pb.goindex 485cb33ed1..a37aeaccbf 100644--- a/proto/generated-go/store/idp.pb.go+++ b/proto/generated-go/store/idp.pb.go@@ -69,6 +69,59 @@ func (IdentityProviderType) EnumDescriptor() ([]byte, []int) {return file_store_idp_proto_rawDescGZIP(), []int{0}}+type OAuth2AuthStyle int32++const (+ OAuth2AuthStyle_OAUTH2_AUTH_STYLE_UNSPECIFIED OAuth2AuthStyle = 0+ // IN_PARAMS sends the "client_id" and "client_secret" in the POST body+ // as application/x-www-form-urlencoded parameters.+ OAuth2AuthStyle_IN_PARAMS OAuth2AuthStyle = 1+ // IN_HEADER sends the client_id and client_password using HTTP Basic Authorization.+ // This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.+ OAuth2AuthStyle_IN_HEADER OAuth2AuthStyle = 2+)++// Enum value maps for OAuth2AuthStyle.+var (+ OAuth2AuthStyle_name = map[int32]string{+ 0: "OAUTH2_AUTH_STYLE_UNSPECIFIED",+ 1: "IN_PARAMS",+ 2: "IN_HEADER",+ }+ OAuth2AuthStyle_value = map[string]int32{+ "OAUTH2_AUTH_STYLE_UNSPECIFIED": 0,+ "IN_PARAMS": 1,+ "IN_HEADER": 2,+ }+)++func (x OAuth2AuthStyle) Enum() *OAuth2AuthStyle {+ p := new(OAuth2AuthStyle)+ *p = x+ return p+}++func (x OAuth2AuthStyle) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (OAuth2AuthStyle) Descriptor() protoreflect.EnumDescriptor {+ return file_store_idp_proto_enumTypes[1].Descriptor()+}++func (OAuth2AuthStyle) Type() protoreflect.EnumType {+ return &file_store_idp_proto_enumTypes[1]+}++func (x OAuth2AuthStyle) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use OAuth2AuthStyle.Descriptor instead.+func (OAuth2AuthStyle) EnumDescriptor() ([]byte, []int) {+ return file_store_idp_proto_rawDescGZIP(), []int{1}+}+type IdentityProviderConfig struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -156,14 +209,15 @@ type OAuth2IdentityProviderConfig struct {sizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- AuthUrl string `protobuf:"bytes,1,opt,name=auth_url,json=authUrl,proto3" json:"auth_url,omitempty"`- TokenUrl string `protobuf:"bytes,2,opt,name=token_url,json=tokenUrl,proto3" json:"token_url,omitempty"`- UserInfoUrl string `protobuf:"bytes,3,opt,name=user_info_url,json=userInfoUrl,proto3" json:"user_info_url,omitempty"`- ClientId string `protobuf:"bytes,4,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`- ClientSecret string `protobuf:"bytes,5,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`- Scopes []string `protobuf:"bytes,6,rep,name=scopes,proto3" json:"scopes,omitempty"`- FieldMapping *FieldMapping `protobuf:"bytes,7,opt,name=field_mapping,json=fieldMapping,proto3" json:"field_mapping,omitempty"`- SkipTlsVerify bool `protobuf:"varint,8,opt,name=skip_tls_verify,json=skipTlsVerify,proto3" json:"skip_tls_verify,omitempty"`+ AuthUrl string `protobuf:"bytes,1,opt,name=auth_url,json=authUrl,proto3" json:"auth_url,omitempty"`+ TokenUrl string `protobuf:"bytes,2,opt,name=token_url,json=tokenUrl,proto3" json:"token_url,omitempty"`+ UserInfoUrl string `protobuf:"bytes,3,opt,name=user_info_url,json=userInfoUrl,proto3" json:"user_info_url,omitempty"`+ ClientId string `protobuf:"bytes,4,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`+ ClientSecret string `protobuf:"bytes,5,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`+ Scopes []string `protobuf:"bytes,6,rep,name=scopes,proto3" json:"scopes,omitempty"`+ FieldMapping *FieldMapping `protobuf:"bytes,7,opt,name=field_mapping,json=fieldMapping,proto3" json:"field_mapping,omitempty"`+ SkipTlsVerify bool `protobuf:"varint,8,opt,name=skip_tls_verify,json=skipTlsVerify,proto3" json:"skip_tls_verify,omitempty"`+ AuthStyle OAuth2AuthStyle `protobuf:"varint,9,opt,name=auth_style,json=authStyle,proto3,enum=bytebase.store.OAuth2AuthStyle" json:"auth_style,omitempty"`}func (x *OAuth2IdentityProviderConfig) Reset() {@@ -254,17 +308,25 @@ func (x *OAuth2IdentityProviderConfig) GetSkipTlsVerify() bool {return false}+func (x *OAuth2IdentityProviderConfig) GetAuthStyle() OAuth2AuthStyle {+ if x != nil {+ return x.AuthStyle+ }+ return OAuth2AuthStyle_OAUTH2_AUTH_STYLE_UNSPECIFIED+}+// OIDCIdentityProviderConfig is the structure for OIDC identity provider config.type OIDCIdentityProviderConfig struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`- ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`- ClientSecret string `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`- FieldMapping *FieldMapping `protobuf:"bytes,4,opt,name=field_mapping,json=fieldMapping,proto3" json:"field_mapping,omitempty"`- SkipTlsVerify bool `protobuf:"varint,5,opt,name=skip_tls_verify,json=skipTlsVerify,proto3" json:"skip_tls_verify,omitempty"`+ Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`+ ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`+ ClientSecret string `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`+ FieldMapping *FieldMapping `protobuf:"bytes,4,opt,name=field_mapping,json=fieldMapping,proto3" json:"field_mapping,omitempty"`+ SkipTlsVerify bool `protobuf:"varint,5,opt,name=skip_tls_verify,json=skipTlsVerify,proto3" json:"skip_tls_verify,omitempty"`+ AuthStyle OAuth2AuthStyle `protobuf:"varint,6,opt,name=auth_style,json=authStyle,proto3,enum=bytebase.store.OAuth2AuthStyle" json:"auth_style,omitempty"`}func (x *OIDCIdentityProviderConfig) Reset() {@@ -334,6 +396,13 @@ func (x *OIDCIdentityProviderConfig) GetSkipTlsVerify() bool {return false}+func (x *OIDCIdentityProviderConfig) GetAuthStyle() OAuth2AuthStyle {+ if x != nil {+ return x.AuthStyle+ }+ return OAuth2AuthStyle_OAUTH2_AUTH_STYLE_UNSPECIFIED+}+// FieldMapping saves the field names from user info API of identity provider.// As we save all raw json string of user info response data into `principal.idp_user_info`,// we can extract the relevant data based with `FieldMapping`.@@ -491,7 +560,7 @@ var file_store_idp_proto_rawDesc = []byte{0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x49, 0x44, 0x43, 0x49, 0x64, 0x65, 0x6e,0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66,0x69, 0x67, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x69, 0x64, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,- 0x42, 0x08, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xbf, 0x02, 0x0a, 0x1c, 0x4f,+ 0x42, 0x08, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xff, 0x02, 0x0a, 0x1c, 0x4f,0x41, 0x75, 0x74, 0x68, 0x32, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f,0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x19, 0x0a, 0x08, 0x61,0x75, 0x74, 0x68, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61,@@ -511,7 +580,11 @@ var file_store_idp_proto_rawDesc = []byte{0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x70,0x70, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x74, 0x6c, 0x73,0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x73,- 0x6b, 0x69, 0x70, 0x54, 0x6c, 0x73, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x22, 0xe1, 0x01, 0x0a,+ 0x6b, 0x69, 0x70, 0x54, 0x6c, 0x73, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x3e, 0x0a, 0x0a,+ 0x61, 0x75, 0x74, 0x68, 0x5f, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e,+ 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,+ 0x65, 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x41, 0x75, 0x74, 0x68, 0x53, 0x74, 0x79, 0x6c,+ 0x65, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x22, 0xa1, 0x02, 0x0a,0x1a, 0x4f, 0x49, 0x44, 0x43, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f,0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x69,0x73, 0x73, 0x75, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x73, 0x73,@@ -526,6 +599,10 @@ var file_store_idp_proto_rawDesc = []byte{0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x6b, 0x69, 0x70,0x5f, 0x74, 0x6c, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28,0x08, 0x52, 0x0d, 0x73, 0x6b, 0x69, 0x70, 0x54, 0x6c, 0x73, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79,+ 0x12, 0x3e, 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x18, 0x06,+ 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x41, 0x75, 0x74, 0x68,+ 0x53, 0x74, 0x79, 0x6c, 0x65, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x53, 0x74, 0x79, 0x6c, 0x65,0x22, 0x67, 0x0a, 0x0c, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67,0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01,0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72,@@ -545,9 +622,14 @@ var file_store_idp_proto_rawDesc = []byte{0x54, 0x59, 0x5f, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x44, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45,0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a,0x0a, 0x06, 0x4f, 0x41, 0x55, 0x54, 0x48, 0x32, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4f, 0x49,- 0x44, 0x43, 0x10, 0x02, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65,- 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,- 0x6f, 0x33,+ 0x44, 0x43, 0x10, 0x02, 0x2a, 0x52, 0x0a, 0x0f, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x41, 0x75,+ 0x74, 0x68, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x12, 0x21, 0x0a, 0x1d, 0x4f, 0x41, 0x55, 0x54, 0x48,+ 0x32, 0x5f, 0x41, 0x55, 0x54, 0x48, 0x5f, 0x53, 0x54, 0x59, 0x4c, 0x45, 0x5f, 0x55, 0x4e, 0x53,+ 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x49, 0x4e,+ 0x5f, 0x50, 0x41, 0x52, 0x41, 0x4d, 0x53, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x49, 0x4e, 0x5f,+ 0x48, 0x45, 0x41, 0x44, 0x45, 0x52, 0x10, 0x02, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65,+ 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06,+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,}var (@@ -562,26 +644,29 @@ func file_store_idp_proto_rawDescGZIP() []byte {return file_store_idp_proto_rawDescData}-var file_store_idp_proto_enumTypes = make([]protoimpl.EnumInfo, 1)+var file_store_idp_proto_enumTypes = make([]protoimpl.EnumInfo, 2)var file_store_idp_proto_msgTypes = make([]protoimpl.MessageInfo, 5)var file_store_idp_proto_goTypes = []interface{}{(IdentityProviderType)(0), // 0: bytebase.store.IdentityProviderType- (*IdentityProviderConfig)(nil), // 1: bytebase.store.IdentityProviderConfig- (*OAuth2IdentityProviderConfig)(nil), // 2: bytebase.store.OAuth2IdentityProviderConfig- (*OIDCIdentityProviderConfig)(nil), // 3: bytebase.store.OIDCIdentityProviderConfig- (*FieldMapping)(nil), // 4: bytebase.store.FieldMapping- (*IdentityProviderUserInfo)(nil), // 5: bytebase.store.IdentityProviderUserInfo+ (OAuth2AuthStyle)(0), // 1: bytebase.store.OAuth2AuthStyle+ (*IdentityProviderConfig)(nil), // 2: bytebase.store.IdentityProviderConfig+ (*OAuth2IdentityProviderConfig)(nil), // 3: bytebase.store.OAuth2IdentityProviderConfig+ (*OIDCIdentityProviderConfig)(nil), // 4: bytebase.store.OIDCIdentityProviderConfig+ (*FieldMapping)(nil), // 5: bytebase.store.FieldMapping+ (*IdentityProviderUserInfo)(nil), // 6: bytebase.store.IdentityProviderUserInfo}var file_store_idp_proto_depIdxs = []int32{- 2, // 0: bytebase.store.IdentityProviderConfig.oauth2_config:type_name -> bytebase.store.OAuth2IdentityProviderConfig- 3, // 1: bytebase.store.IdentityProviderConfig.oidc_config:type_name -> bytebase.store.OIDCIdentityProviderConfig- 4, // 2: bytebase.store.OAuth2IdentityProviderConfig.field_mapping:type_name -> bytebase.store.FieldMapping- 4, // 3: bytebase.store.OIDCIdentityProviderConfig.field_mapping:type_name -> bytebase.store.FieldMapping- 4, // [4:4] is the sub-list for method output_type- 4, // [4:4] is the sub-list for method input_type- 4, // [4:4] is the sub-list for extension type_name- 4, // [4:4] is the sub-list for extension extendee- 0, // [0:4] is the sub-list for field type_name+ 3, // 0: bytebase.store.IdentityProviderConfig.oauth2_config:type_name -> bytebase.store.OAuth2IdentityProviderConfig+ 4, // 1: bytebase.store.IdentityProviderConfig.oidc_config:type_name -> bytebase.store.OIDCIdentityProviderConfig+ 5, // 2: bytebase.store.OAuth2IdentityProviderConfig.field_mapping:type_name -> bytebase.store.FieldMapping+ 1, // 3: bytebase.store.OAuth2IdentityProviderConfig.auth_style:type_name -> bytebase.store.OAuth2AuthStyle+ 5, // 4: bytebase.store.OIDCIdentityProviderConfig.field_mapping:type_name -> bytebase.store.FieldMapping+ 1, // 5: bytebase.store.OIDCIdentityProviderConfig.auth_style:type_name -> bytebase.store.OAuth2AuthStyle+ 6, // [6:6] is the sub-list for method output_type+ 6, // [6:6] is the sub-list for method input_type+ 6, // [6:6] is the sub-list for extension type_name+ 6, // [6:6] is the sub-list for extension extendee+ 0, // [0:6] is the sub-list for field type_name}func init() { file_store_idp_proto_init() }@@ -660,7 +745,7 @@ func file_store_idp_proto_init() {File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_store_idp_proto_rawDesc,- NumEnums: 1,+ NumEnums: 2,NumMessages: 5,NumExtensions: 0,NumServices: 0,diff --git a/proto/generated-go/v1/idp_service.pb.go b/proto/generated-go/v1/idp_service.pb.goindex b8f5ad91bd..65965dba2a 100644--- a/proto/generated-go/v1/idp_service.pb.go+++ b/proto/generated-go/v1/idp_service.pb.go@@ -72,6 +72,59 @@ func (IdentityProviderType) EnumDescriptor() ([]byte, []int) {return file_v1_idp_service_proto_rawDescGZIP(), []int{0}}+type OAuth2AuthStyle int32++const (+ OAuth2AuthStyle_OAUTH2_AUTH_STYLE_UNSPECIFIED OAuth2AuthStyle = 0+ // IN_PARAMS sends the "client_id" and "client_secret" in the POST body+ // as application/x-www-form-urlencoded parameters.+ OAuth2AuthStyle_IN_PARAMS OAuth2AuthStyle = 1+ // IN_HEADER sends the client_id and client_password using HTTP Basic Authorization.+ // This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.+ OAuth2AuthStyle_IN_HEADER OAuth2AuthStyle = 2+)++// Enum value maps for OAuth2AuthStyle.+var (+ OAuth2AuthStyle_name = map[int32]string{+ 0: "OAUTH2_AUTH_STYLE_UNSPECIFIED",+ 1: "IN_PARAMS",+ 2: "IN_HEADER",+ }+ OAuth2AuthStyle_value = map[string]int32{+ "OAUTH2_AUTH_STYLE_UNSPECIFIED": 0,+ "IN_PARAMS": 1,+ "IN_HEADER": 2,+ }+)++func (x OAuth2AuthStyle) Enum() *OAuth2AuthStyle {+ p := new(OAuth2AuthStyle)+ *p = x+ return p+}++func (x OAuth2AuthStyle) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (OAuth2AuthStyle) Descriptor() protoreflect.EnumDescriptor {+ return file_v1_idp_service_proto_enumTypes[1].Descriptor()+}++func (OAuth2AuthStyle) Type() protoreflect.EnumType {+ return &file_v1_idp_service_proto_enumTypes[1]+}++func (x OAuth2AuthStyle) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use OAuth2AuthStyle.Descriptor instead.+func (OAuth2AuthStyle) EnumDescriptor() ([]byte, []int) {+ return file_v1_idp_service_proto_rawDescGZIP(), []int{1}+}+type GetIdentityProviderRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -816,14 +869,15 @@ type OAuth2IdentityProviderConfig struct {sizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- AuthUrl string `protobuf:"bytes,1,opt,name=auth_url,json=authUrl,proto3" json:"auth_url,omitempty"`- TokenUrl string `protobuf:"bytes,2,opt,name=token_url,json=tokenUrl,proto3" json:"token_url,omitempty"`- UserInfoUrl string `protobuf:"bytes,3,opt,name=user_info_url,json=userInfoUrl,proto3" json:"user_info_url,omitempty"`- ClientId string `protobuf:"bytes,4,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`- ClientSecret string `protobuf:"bytes,5,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`- Scopes []string `protobuf:"bytes,6,rep,name=scopes,proto3" json:"scopes,omitempty"`- FieldMapping *FieldMapping `protobuf:"bytes,7,opt,name=field_mapping,json=fieldMapping,proto3" json:"field_mapping,omitempty"`- SkipTlsVerify bool `protobuf:"varint,8,opt,name=skip_tls_verify,json=skipTlsVerify,proto3" json:"skip_tls_verify,omitempty"`+ AuthUrl string `protobuf:"bytes,1,opt,name=auth_url,json=authUrl,proto3" json:"auth_url,omitempty"`+ TokenUrl string `protobuf:"bytes,2,opt,name=token_url,json=tokenUrl,proto3" json:"token_url,omitempty"`+ UserInfoUrl string `protobuf:"bytes,3,opt,name=user_info_url,json=userInfoUrl,proto3" json:"user_info_url,omitempty"`+ ClientId string `protobuf:"bytes,4,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`+ ClientSecret string `protobuf:"bytes,5,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`+ Scopes []string `protobuf:"bytes,6,rep,name=scopes,proto3" json:"scopes,omitempty"`+ FieldMapping *FieldMapping `protobuf:"bytes,7,opt,name=field_mapping,json=fieldMapping,proto3" json:"field_mapping,omitempty"`+ SkipTlsVerify bool `protobuf:"varint,8,opt,name=skip_tls_verify,json=skipTlsVerify,proto3" json:"skip_tls_verify,omitempty"`+ AuthStyle OAuth2AuthStyle `protobuf:"varint,9,opt,name=auth_style,json=authStyle,proto3,enum=bytebase.v1.OAuth2AuthStyle" json:"auth_style,omitempty"`}func (x *OAuth2IdentityProviderConfig) Reset() {@@ -914,18 +968,26 @@ func (x *OAuth2IdentityProviderConfig) GetSkipTlsVerify() bool {return false}+func (x *OAuth2IdentityProviderConfig) GetAuthStyle() OAuth2AuthStyle {+ if x != nil {+ return x.AuthStyle+ }+ return OAuth2AuthStyle_OAUTH2_AUTH_STYLE_UNSPECIFIED+}+// OIDCIdentityProviderConfig is the structure for OIDC identity provider config.type OIDCIdentityProviderConfig struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`- ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`- ClientSecret string `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`- Scopes []string `protobuf:"bytes,4,rep,name=scopes,proto3" json:"scopes,omitempty"`- FieldMapping *FieldMapping `protobuf:"bytes,5,opt,name=field_mapping,json=fieldMapping,proto3" json:"field_mapping,omitempty"`- SkipTlsVerify bool `protobuf:"varint,6,opt,name=skip_tls_verify,json=skipTlsVerify,proto3" json:"skip_tls_verify,omitempty"`+ Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`+ ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`+ ClientSecret string `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`+ Scopes []string `protobuf:"bytes,4,rep,name=scopes,proto3" json:"scopes,omitempty"`+ FieldMapping *FieldMapping `protobuf:"bytes,5,opt,name=field_mapping,json=fieldMapping,proto3" json:"field_mapping,omitempty"`+ SkipTlsVerify bool `protobuf:"varint,6,opt,name=skip_tls_verify,json=skipTlsVerify,proto3" json:"skip_tls_verify,omitempty"`+ AuthStyle OAuth2AuthStyle `protobuf:"varint,7,opt,name=auth_style,json=authStyle,proto3,enum=bytebase.v1.OAuth2AuthStyle" json:"auth_style,omitempty"`}func (x *OIDCIdentityProviderConfig) Reset() {@@ -1002,6 +1064,13 @@ func (x *OIDCIdentityProviderConfig) GetSkipTlsVerify() bool {return false}+func (x *OIDCIdentityProviderConfig) GetAuthStyle() OAuth2AuthStyle {+ if x != nil {+ return x.AuthStyle+ }+ return OAuth2AuthStyle_OAUTH2_AUTH_STYLE_UNSPECIFIED+}+// FieldMapping saves the field names from user info API of identity provider.// As we save all raw json string of user info response data into `principal.idp_user_info`,// we can extract the relevant data based with `FieldMapping`.@@ -1189,7 +1258,7 @@ var file_v1_idp_service_proto_rawDesc = []byte{0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x49, 0x44, 0x43, 0x49, 0x64, 0x65, 0x6e,0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66,0x69, 0x67, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x69, 0x64, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,- 0x42, 0x08, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xbc, 0x02, 0x0a, 0x1c, 0x4f,+ 0x42, 0x08, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xf9, 0x02, 0x0a, 0x1c, 0x4f,0x41, 0x75, 0x74, 0x68, 0x32, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f,0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x19, 0x0a, 0x08, 0x61,0x75, 0x74, 0x68, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61,@@ -1209,101 +1278,114 @@ var file_v1_idp_service_proto_rawDesc = []byte{0x69, 0x6e, 0x67, 0x52, 0x0c, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e,0x67, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x74, 0x6c, 0x73, 0x5f, 0x76, 0x65,0x72, 0x69, 0x66, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x73, 0x6b, 0x69, 0x70,- 0x54, 0x6c, 0x73, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x22, 0xf6, 0x01, 0x0a, 0x1a, 0x4f, 0x49,- 0x44, 0x43, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,- 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75,- 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72,- 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a,- 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x03,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72,- 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03,- 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x0d, 0x66, 0x69,- 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28,- 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x66, 0x69,- 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x6b,- 0x69, 0x70, 0x5f, 0x74, 0x6c, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x06, 0x20,- 0x01, 0x28, 0x08, 0x52, 0x0d, 0x73, 0x6b, 0x69, 0x70, 0x54, 0x6c, 0x73, 0x56, 0x65, 0x72, 0x69,- 0x66, 0x79, 0x22, 0x67, 0x0a, 0x0c, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69,- 0x6e, 0x67, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69,- 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61,- 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61,- 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x2a, 0x54, 0x0a, 0x14, 0x49,- 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x54,- 0x79, 0x70, 0x65, 0x12, 0x26, 0x0a, 0x22, 0x49, 0x44, 0x45, 0x4e, 0x54, 0x49, 0x54, 0x59, 0x5f,- 0x50, 0x52, 0x4f, 0x56, 0x49, 0x44, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e,- 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4f,- 0x41, 0x55, 0x54, 0x48, 0x32, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4f, 0x49, 0x44, 0x43, 0x10,- 0x02, 0x32, 0x8f, 0x08, 0x0a, 0x17, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72,- 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7f, 0x0a,- 0x13, 0x47, 0x65, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76,- 0x69, 0x64, 0x65, 0x72, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72,- 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x65, 0x6e,- 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x20, 0xda, 0x41,- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12, 0x11, 0x2f, 0x76, 0x31,- 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x64, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x83,- 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50,- 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74,- 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75,- 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72,- 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,- 0x13, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0a, 0x12, 0x08, 0x2f, 0x76, 0x31, 0x2f,- 0x69, 0x64, 0x70, 0x73, 0x12, 0x8b, 0x01, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49,- 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12,- 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72,- 0x65, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76,+ 0x54, 0x6c, 0x73, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x3b, 0x0a, 0x0a, 0x61, 0x75, 0x74,+ 0x68, 0x5f, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x41, 0x75, 0x74,+ 0x68, 0x32, 0x41, 0x75, 0x74, 0x68, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x52, 0x09, 0x61, 0x75, 0x74,+ 0x68, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x22, 0xb3, 0x02, 0x0a, 0x1a, 0x4f, 0x49, 0x44, 0x43, 0x49,+ 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43,+ 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x1b, 0x0a,+ 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c,+ 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12,+ 0x16, 0x0a, 0x06, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52,+ 0x06, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x0d, 0x66, 0x69, 0x65, 0x6c, 0x64,+ 0x5f, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x65,+ 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x66, 0x69, 0x65, 0x6c, 0x64,+ 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x6b, 0x69, 0x70, 0x5f,+ 0x74, 0x6c, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08,+ 0x52, 0x0d, 0x73, 0x6b, 0x69, 0x70, 0x54, 0x6c, 0x73, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12,+ 0x3b, 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x18, 0x07, 0x20,+ 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x41, 0x75, 0x74, 0x68, 0x53, 0x74, 0x79, 0x6c,+ 0x65, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x22, 0x67, 0x0a, 0x0c,+ 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x1e, 0x0a, 0x0a,+ 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c,+ 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12,+ 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,+ 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x2a, 0x54, 0x0a, 0x14, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,+ 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x26, 0x0a,+ 0x22, 0x49, 0x44, 0x45, 0x4e, 0x54, 0x49, 0x54, 0x59, 0x5f, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x44,+ 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,+ 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4f, 0x41, 0x55, 0x54, 0x48, 0x32, 0x10,+ 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4f, 0x49, 0x44, 0x43, 0x10, 0x02, 0x2a, 0x52, 0x0a, 0x0f, 0x4f,+ 0x41, 0x75, 0x74, 0x68, 0x32, 0x41, 0x75, 0x74, 0x68, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x12, 0x21,+ 0x0a, 0x1d, 0x4f, 0x41, 0x55, 0x54, 0x48, 0x32, 0x5f, 0x41, 0x55, 0x54, 0x48, 0x5f, 0x53, 0x54,+ 0x59, 0x4c, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,+ 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x49, 0x4e, 0x5f, 0x50, 0x41, 0x52, 0x41, 0x4d, 0x53, 0x10, 0x01,+ 0x12, 0x0d, 0x0a, 0x09, 0x49, 0x4e, 0x5f, 0x48, 0x45, 0x41, 0x44, 0x45, 0x52, 0x10, 0x02, 0x32,+ 0x8f, 0x08, 0x0a, 0x17, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76,+ 0x69, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7f, 0x0a, 0x13, 0x47,+ 0x65, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,+ 0x65, 0x72, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x47, 0x65, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76,0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79,0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,- 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x26, 0xda, 0x41, 0x00, 0x82,- 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x3a, 0x11, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f,- 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x08, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x64,- 0x70, 0x73, 0x12, 0xc3, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65,+ 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x20, 0xda, 0x41, 0x04, 0x6e,+ 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12, 0x11, 0x2f, 0x76, 0x31, 0x2f, 0x7b,+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x64, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x83, 0x01, 0x0a,+ 0x15, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f,+ 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,+ 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x1a, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x4c, 0x69, 0x73, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76,+ 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x13, 0xda,+ 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0a, 0x12, 0x08, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x64,+ 0x70, 0x73, 0x12, 0x8b, 0x01, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65,0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x2a, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61,0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65,0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,- 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x5e, 0xda, 0x41, 0x1d, 0x69, 0x64, 0x65,- 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2c, 0x75,- 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x38,- 0x3a, 0x11, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69,- 0x64, 0x65, 0x72, 0x32, 0x23, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69,- 0x74, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x6e, 0x61, 0x6d, 0x65,- 0x3d, 0x69, 0x64, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7e, 0x0a, 0x16, 0x44, 0x65, 0x6c, 0x65,- 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,- 0x65, 0x72, 0x12, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50,- 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16,- 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,- 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x20, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82,- 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x2a, 0x11, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,- 0x3d, 0x69, 0x64, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x8e, 0x01, 0x0a, 0x18, 0x55, 0x6e, 0x64,+ 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x26, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4,+ 0x93, 0x02, 0x1d, 0x3a, 0x11, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x72,+ 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x08, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x64, 0x70, 0x73,+ 0x12, 0xc3, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74,+ 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x2a, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,+ 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72,+ 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x5e, 0xda, 0x41, 0x1d, 0x69, 0x64, 0x65, 0x6e, 0x74,+ 0x69, 0x74, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2c, 0x75, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x38, 0x3a, 0x11,+ 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,+ 0x72, 0x32, 0x23, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,+ 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69,+ 0x64, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7e, 0x0a, 0x16, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,+ 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,+ 0x12, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44,0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f,- 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x2c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e,- 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,- 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,- 0x65, 0x72, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a, 0x01, 0x2a, 0x22, 0x1a, 0x2f,- 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x64, 0x70, 0x73, 0x2f, 0x2a, 0x7d,- 0x3a, 0x75, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x14, 0x54, 0x65,- 0x73, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,- 0x65, 0x72, 0x12, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x54, 0x65, 0x73, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f,- 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x49,- 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52,- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x3a,- 0x01, 0x2a, 0x22, 0x0f, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x64, 0x70, 0x73, 0x2f, 0x2a, 0x3a, 0x74,- 0x65, 0x73, 0x74, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64,- 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67,+ 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45,+ 0x6d, 0x70, 0x74, 0x79, 0x22, 0x20, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4,+ 0x93, 0x02, 0x13, 0x2a, 0x11, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69,+ 0x64, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x8e, 0x01, 0x0a, 0x18, 0x55, 0x6e, 0x64, 0x65, 0x6c,+ 0x65, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69,+ 0x64, 0x65, 0x72, 0x12, 0x2c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,+ 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,+ 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a, 0x01, 0x2a, 0x22, 0x1a, 0x2f, 0x76, 0x31,+ 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x64, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75,+ 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x14, 0x54, 0x65, 0x73, 0x74,+ 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,+ 0x12, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54,+ 0x65, 0x73, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69,+ 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x49, 0x64, 0x65,+ 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73,+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x3a, 0x01, 0x2a,+ 0x22, 0x0f, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x64, 0x70, 0x73, 0x2f, 0x2a, 0x3a, 0x74, 0x65, 0x73,+ 0x74, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67,+ 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,}var (@@ -1318,62 +1400,65 @@ func file_v1_idp_service_proto_rawDescGZIP() []byte {return file_v1_idp_service_proto_rawDescData}-var file_v1_idp_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)+var file_v1_idp_service_proto_enumTypes = make([]protoimpl.EnumInfo, 2)var file_v1_idp_service_proto_msgTypes = make([]protoimpl.MessageInfo, 15)var file_v1_idp_service_proto_goTypes = []interface{}{(IdentityProviderType)(0), // 0: bytebase.v1.IdentityProviderType- (*GetIdentityProviderRequest)(nil), // 1: bytebase.v1.GetIdentityProviderRequest- (*ListIdentityProvidersRequest)(nil), // 2: bytebase.v1.ListIdentityProvidersRequest- (*ListIdentityProvidersResponse)(nil), // 3: bytebase.v1.ListIdentityProvidersResponse- (*CreateIdentityProviderRequest)(nil), // 4: bytebase.v1.CreateIdentityProviderRequest- (*UpdateIdentityProviderRequest)(nil), // 5: bytebase.v1.UpdateIdentityProviderRequest- (*DeleteIdentityProviderRequest)(nil), // 6: bytebase.v1.DeleteIdentityProviderRequest- (*UndeleteIdentityProviderRequest)(nil), // 7: bytebase.v1.UndeleteIdentityProviderRequest- (*TestIdentityProviderRequest)(nil), // 8: bytebase.v1.TestIdentityProviderRequest- (*OAuth2IdentityProviderTestRequestContext)(nil), // 9: bytebase.v1.OAuth2IdentityProviderTestRequestContext- (*TestIdentityProviderResponse)(nil), // 10: bytebase.v1.TestIdentityProviderResponse- (*IdentityProvider)(nil), // 11: bytebase.v1.IdentityProvider- (*IdentityProviderConfig)(nil), // 12: bytebase.v1.IdentityProviderConfig- (*OAuth2IdentityProviderConfig)(nil), // 13: bytebase.v1.OAuth2IdentityProviderConfig- (*OIDCIdentityProviderConfig)(nil), // 14: bytebase.v1.OIDCIdentityProviderConfig- (*FieldMapping)(nil), // 15: bytebase.v1.FieldMapping- (*fieldmaskpb.FieldMask)(nil), // 16: google.protobuf.FieldMask- (State)(0), // 17: bytebase.v1.State- (*emptypb.Empty)(nil), // 18: google.protobuf.Empty+ (OAuth2AuthStyle)(0), // 1: bytebase.v1.OAuth2AuthStyle+ (*GetIdentityProviderRequest)(nil), // 2: bytebase.v1.GetIdentityProviderRequest+ (*ListIdentityProvidersRequest)(nil), // 3: bytebase.v1.ListIdentityProvidersRequest+ (*ListIdentityProvidersResponse)(nil), // 4: bytebase.v1.ListIdentityProvidersResponse+ (*CreateIdentityProviderRequest)(nil), // 5: bytebase.v1.CreateIdentityProviderRequest+ (*UpdateIdentityProviderRequest)(nil), // 6: bytebase.v1.UpdateIdentityProviderRequest+ (*DeleteIdentityProviderRequest)(nil), // 7: bytebase.v1.DeleteIdentityProviderRequest+ (*UndeleteIdentityProviderRequest)(nil), // 8: bytebase.v1.UndeleteIdentityProviderRequest+ (*TestIdentityProviderRequest)(nil), // 9: bytebase.v1.TestIdentityProviderRequest+ (*OAuth2IdentityProviderTestRequestContext)(nil), // 10: bytebase.v1.OAuth2IdentityProviderTestRequestContext+ (*TestIdentityProviderResponse)(nil), // 11: bytebase.v1.TestIdentityProviderResponse+ (*IdentityProvider)(nil), // 12: bytebase.v1.IdentityProvider+ (*IdentityProviderConfig)(nil), // 13: bytebase.v1.IdentityProviderConfig+ (*OAuth2IdentityProviderConfig)(nil), // 14: bytebase.v1.OAuth2IdentityProviderConfig+ (*OIDCIdentityProviderConfig)(nil), // 15: bytebase.v1.OIDCIdentityProviderConfig+ (*FieldMapping)(nil), // 16: bytebase.v1.FieldMapping+ (*fieldmaskpb.FieldMask)(nil), // 17: google.protobuf.FieldMask+ (State)(0), // 18: bytebase.v1.State+ (*emptypb.Empty)(nil), // 19: google.protobuf.Empty}var file_v1_idp_service_proto_depIdxs = []int32{- 11, // 0: bytebase.v1.ListIdentityProvidersResponse.identity_providers:type_name -> bytebase.v1.IdentityProvider- 11, // 1: bytebase.v1.CreateIdentityProviderRequest.identity_provider:type_name -> bytebase.v1.IdentityProvider- 11, // 2: bytebase.v1.UpdateIdentityProviderRequest.identity_provider:type_name -> bytebase.v1.IdentityProvider- 16, // 3: bytebase.v1.UpdateIdentityProviderRequest.update_mask:type_name -> google.protobuf.FieldMask- 11, // 4: bytebase.v1.TestIdentityProviderRequest.identity_provider:type_name -> bytebase.v1.IdentityProvider- 9, // 5: bytebase.v1.TestIdentityProviderRequest.oauth2_context:type_name -> bytebase.v1.OAuth2IdentityProviderTestRequestContext- 17, // 6: bytebase.v1.IdentityProvider.state:type_name -> bytebase.v1.State+ 12, // 0: bytebase.v1.ListIdentityProvidersResponse.identity_providers:type_name -> bytebase.v1.IdentityProvider+ 12, // 1: bytebase.v1.CreateIdentityProviderRequest.identity_provider:type_name -> bytebase.v1.IdentityProvider+ 12, // 2: bytebase.v1.UpdateIdentityProviderRequest.identity_provider:type_name -> bytebase.v1.IdentityProvider+ 17, // 3: bytebase.v1.UpdateIdentityProviderRequest.update_mask:type_name -> google.protobuf.FieldMask+ 12, // 4: bytebase.v1.TestIdentityProviderRequest.identity_provider:type_name -> bytebase.v1.IdentityProvider+ 10, // 5: bytebase.v1.TestIdentityProviderRequest.oauth2_context:type_name -> bytebase.v1.OAuth2IdentityProviderTestRequestContext+ 18, // 6: bytebase.v1.IdentityProvider.state:type_name -> bytebase.v1.State0, // 7: bytebase.v1.IdentityProvider.type:type_name -> bytebase.v1.IdentityProviderType- 12, // 8: bytebase.v1.IdentityProvider.config:type_name -> bytebase.v1.IdentityProviderConfig- 13, // 9: bytebase.v1.IdentityProviderConfig.oauth2_config:type_name -> bytebase.v1.OAuth2IdentityProviderConfig- 14, // 10: bytebase.v1.IdentityProviderConfig.oidc_config:type_name -> bytebase.v1.OIDCIdentityProviderConfig- 15, // 11: bytebase.v1.OAuth2IdentityProviderConfig.field_mapping:type_name -> bytebase.v1.FieldMapping- 15, // 12: bytebase.v1.OIDCIdentityProviderConfig.field_mapping:type_name -> bytebase.v1.FieldMapping- 1, // 13: bytebase.v1.IdentityProviderService.GetIdentityProvider:input_type -> bytebase.v1.GetIdentityProviderRequest- 2, // 14: bytebase.v1.IdentityProviderService.ListIdentityProviders:input_type -> bytebase.v1.ListIdentityProvidersRequest- 4, // 15: bytebase.v1.IdentityProviderService.CreateIdentityProvider:input_type -> bytebase.v1.CreateIdentityProviderRequest- 5, // 16: bytebase.v1.IdentityProviderService.UpdateIdentityProvider:input_type -> bytebase.v1.UpdateIdentityProviderRequest- 6, // 17: bytebase.v1.IdentityProviderService.DeleteIdentityProvider:input_type -> bytebase.v1.DeleteIdentityProviderRequest- 7, // 18: bytebase.v1.IdentityProviderService.UndeleteIdentityProvider:input_type -> bytebase.v1.UndeleteIdentityProviderRequest- 8, // 19: bytebase.v1.IdentityProviderService.TestIdentityProvider:input_type -> bytebase.v1.TestIdentityProviderRequest- 11, // 20: bytebase.v1.IdentityProviderService.GetIdentityProvider:output_type -> bytebase.v1.IdentityProvider- 3, // 21: bytebase.v1.IdentityProviderService.ListIdentityProviders:output_type -> bytebase.v1.ListIdentityProvidersResponse- 11, // 22: bytebase.v1.IdentityProviderService.CreateIdentityProvider:output_type -> bytebase.v1.IdentityProvider- 11, // 23: bytebase.v1.IdentityProviderService.UpdateIdentityProvider:output_type -> bytebase.v1.IdentityProvider- 18, // 24: bytebase.v1.IdentityProviderService.DeleteIdentityProvider:output_type -> google.protobuf.Empty- 11, // 25: bytebase.v1.IdentityProviderService.UndeleteIdentityProvider:output_type -> bytebase.v1.IdentityProvider- 10, // 26: bytebase.v1.IdentityProviderService.TestIdentityProvider:output_type -> bytebase.v1.TestIdentityProviderResponse- 20, // [20:27] is the sub-list for method output_type- 13, // [13:20] is the sub-list for method input_type- 13, // [13:13] is the sub-list for extension type_name- 13, // [13:13] is the sub-list for extension extendee- 0, // [0:13] is the sub-list for field type_name+ 13, // 8: bytebase.v1.IdentityProvider.config:type_name -> bytebase.v1.IdentityProviderConfig+ 14, // 9: bytebase.v1.IdentityProviderConfig.oauth2_config:type_name -> bytebase.v1.OAuth2IdentityProviderConfig+ 15, // 10: bytebase.v1.IdentityProviderConfig.oidc_config:type_name -> bytebase.v1.OIDCIdentityProviderConfig+ 16, // 11: bytebase.v1.OAuth2IdentityProviderConfig.field_mapping:type_name -> bytebase.v1.FieldMapping+ 1, // 12: bytebase.v1.OAuth2IdentityProviderConfig.auth_style:type_name -> bytebase.v1.OAuth2AuthStyle+ 16, // 13: bytebase.v1.OIDCIdentityProviderConfig.field_mapping:type_name -> bytebase.v1.FieldMapping+ 1, // 14: bytebase.v1.OIDCIdentityProviderConfig.auth_style:type_name -> bytebase.v1.OAuth2AuthStyle+ 2, // 15: bytebase.v1.IdentityProviderService.GetIdentityProvider:input_type -> bytebase.v1.GetIdentityProviderRequest+ 3, // 16: bytebase.v1.IdentityProviderService.ListIdentityProviders:input_type -> bytebase.v1.ListIdentityProvidersRequest+ 5, // 17: bytebase.v1.IdentityProviderService.CreateIdentityProvider:input_type -> bytebase.v1.CreateIdentityProviderRequest+ 6, // 18: bytebase.v1.IdentityProviderService.UpdateIdentityProvider:input_type -> bytebase.v1.UpdateIdentityProviderRequest+ 7, // 19: bytebase.v1.IdentityProviderService.DeleteIdentityProvider:input_type -> bytebase.v1.DeleteIdentityProviderRequest+ 8, // 20: bytebase.v1.IdentityProviderService.UndeleteIdentityProvider:input_type -> bytebase.v1.UndeleteIdentityProviderRequest+ 9, // 21: bytebase.v1.IdentityProviderService.TestIdentityProvider:input_type -> bytebase.v1.TestIdentityProviderRequest+ 12, // 22: bytebase.v1.IdentityProviderService.GetIdentityProvider:output_type -> bytebase.v1.IdentityProvider+ 4, // 23: bytebase.v1.IdentityProviderService.ListIdentityProviders:output_type -> bytebase.v1.ListIdentityProvidersResponse+ 12, // 24: bytebase.v1.IdentityProviderService.CreateIdentityProvider:output_type -> bytebase.v1.IdentityProvider+ 12, // 25: bytebase.v1.IdentityProviderService.UpdateIdentityProvider:output_type -> bytebase.v1.IdentityProvider+ 19, // 26: bytebase.v1.IdentityProviderService.DeleteIdentityProvider:output_type -> google.protobuf.Empty+ 12, // 27: bytebase.v1.IdentityProviderService.UndeleteIdentityProvider:output_type -> bytebase.v1.IdentityProvider+ 11, // 28: bytebase.v1.IdentityProviderService.TestIdentityProvider:output_type -> bytebase.v1.TestIdentityProviderResponse+ 22, // [22:29] is the sub-list for method output_type+ 15, // [15:22] is the sub-list for method input_type+ 15, // [15:15] is the sub-list for extension type_name+ 15, // [15:15] is the sub-list for extension extendee+ 0, // [0:15] is the sub-list for field type_name}func init() { file_v1_idp_service_proto_init() }@@ -1576,7 +1661,7 @@ func file_v1_idp_service_proto_init() {File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_idp_service_proto_rawDesc,- NumEnums: 1,+ NumEnums: 2,NumMessages: 15,NumExtensions: 0,NumServices: 1,diff --git a/proto/store/idp.proto b/proto/store/idp.protoindex 5fa50e6a29..65ce8525f6 100644--- a/proto/store/idp.proto+++ b/proto/store/idp.proto@@ -34,6 +34,8 @@ message OAuth2IdentityProviderConfig {FieldMapping field_mapping = 7;bool skip_tls_verify = 8;++ OAuth2AuthStyle auth_style = 9;}// OIDCIdentityProviderConfig is the structure for OIDC identity provider config.@@ -47,6 +49,8 @@ message OIDCIdentityProviderConfig {FieldMapping field_mapping = 4;bool skip_tls_verify = 5;++ OAuth2AuthStyle auth_style = 6;}// FieldMapping saves the field names from user info API of identity provider.@@ -78,3 +82,13 @@ message IdentityProviderUserInfo {// Email is the value of primary email in 3rd-party idp user info.string email = 3;}++enum OAuth2AuthStyle {+ OAUTH2_AUTH_STYLE_UNSPECIFIED = 0;+ // IN_PARAMS sends the "client_id" and "client_secret" in the POST body+ // as application/x-www-form-urlencoded parameters.+ IN_PARAMS = 1;+ // IN_HEADER sends the client_id and client_password using HTTP Basic Authorization.+ // This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.+ IN_HEADER = 2;+}diff --git a/proto/v1/idp_service.proto b/proto/v1/idp_service.protoindex 52a84ba7a0..54bd7c0212 100644--- a/proto/v1/idp_service.proto+++ b/proto/v1/idp_service.proto@@ -189,6 +189,8 @@ message OAuth2IdentityProviderConfig {FieldMapping field_mapping = 7;bool skip_tls_verify = 8;++ OAuth2AuthStyle auth_style = 9;}// OIDCIdentityProviderConfig is the structure for OIDC identity provider config.@@ -204,6 +206,8 @@ message OIDCIdentityProviderConfig {FieldMapping field_mapping = 5;bool skip_tls_verify = 6;++ OAuth2AuthStyle auth_style = 7;}// FieldMapping saves the field names from user info API of identity provider.@@ -224,3 +228,13 @@ message FieldMapping {// Email is the field name of primary email in 3rd-party idp user info.string email = 3;}++enum OAuth2AuthStyle {+ OAUTH2_AUTH_STYLE_UNSPECIFIED = 0;+ // IN_PARAMS sends the "client_id" and "client_secret" in the POST body+ // as application/x-www-form-urlencoded parameters.+ IN_PARAMS = 1;+ // IN_HEADER sends the client_id and client_password using HTTP Basic Authorization.+ // This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.+ IN_HEADER = 2;+}