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 raw claims to the response of test identity provider (#16545)
boojackd758f2a0e903
diff --git a/backend/api/v1/auth_service.go b/backend/api/v1/auth_service.goindex 5ece3b7d4c..48b5078978 100644--- a/backend/api/v1/auth_service.go+++ b/backend/api/v1/auth_service.go@@ -321,7 +321,7 @@ func (s *AuthService) getOrCreateUserWithIDP(ctx context.Context, request *v1pb.if err != nil {return nil, status.Errorf(codes.Internal, "failed to exchange token: %v", err)}- userInfo, err = oauth2IdentityProvider.UserInfo(token)+ userInfo, _, err = oauth2IdentityProvider.UserInfo(token)if err != nil {return nil, status.Errorf(codes.Internal, "failed to get user info: %v", err)}@@ -342,7 +342,7 @@ func (s *AuthService) getOrCreateUserWithIDP(ctx context.Context, request *v1pb.return nil, status.Errorf(codes.Internal, "failed to exchange token: %v", err)}- userInfo, err = oidcIDP.UserInfo(ctx, token, "")+ userInfo, _, err = oidcIDP.UserInfo(ctx, token, "")if err != nil {return nil, status.Errorf(codes.Internal, "failed to get user info: %v", err)}diff --git a/backend/api/v1/idp_service.go b/backend/api/v1/idp_service.goindex ba42a30298..2175cefb24 100644--- a/backend/api/v1/idp_service.go+++ b/backend/api/v1/idp_service.go@@ -257,9 +257,17 @@ func (s *IdentityProviderService) TestIdentityProvider(ctx context.Context, requif err != nil {return nil, status.Errorf(codes.InvalidArgument, "failed to exchange access token, error: %s", err.Error())}- if _, err := oauth2IdentityProvider.UserInfo(token); err != nil {+ _, claims, err := oauth2IdentityProvider.UserInfo(token)+ if err != nil {return nil, status.Errorf(codes.InvalidArgument, "failed to get user info, error: %s", err.Error())}++ // Convert claims to map[string]string for protobuf+ stringClaims := make(map[string]string)+ for key, value := range claims {+ stringClaims[key] = fmt.Sprintf("%v", value)+ }+ return &v1pb.TestIdentityProviderResponse{Claims: stringClaims}, nilcase v1pb.IdentityProviderType_OIDC:// Find client secret for those existed identity providers.if identityProvider.Config.GetOidcConfig().ClientSecret == "" {@@ -287,9 +295,17 @@ func (s *IdentityProviderService) TestIdentityProvider(ctx context.Context, requif err != nil {return nil, status.Errorf(codes.InvalidArgument, "failed to exchange access token, error: %s", err.Error())}- if _, err := oidcIdentityProvider.UserInfo(ctx, token, ""); err != nil {+ _, claims, err := oidcIdentityProvider.UserInfo(ctx, token, "")+ if err != nil {return nil, status.Errorf(codes.InvalidArgument, "failed to get user info, error: %s", err.Error())}++ // Convert claims to map[string]string for protobuf+ stringClaims := make(map[string]string)+ for key, value := range claims {+ stringClaims[key] = fmt.Sprintf("%v", value)+ }+ return &v1pb.TestIdentityProviderResponse{Claims: stringClaims}, nilcase v1pb.IdentityProviderType_LDAP:// Retrieve bind password from stored identity provider if not provided.if identityProvider.Config.GetLdapConfig().BindPassword == "" {@@ -325,10 +341,12 @@ func (s *IdentityProviderService) TestIdentityProvider(ctx context.Context, requreturn nil, status.Errorf(codes.InvalidArgument, "failed to test connection, error: %s", err.Error())}_ = conn.Close()++ // LDAP doesn't return claims like OAuth2/OIDC, so return empty claims+ return &v1pb.TestIdentityProviderResponse{Claims: make(map[string]string)}, nildefault:return nil, status.Errorf(codes.InvalidArgument, "identity provider type %s not supported", identityProvider.Type.String())}- return &v1pb.TestIdentityProviderResponse{}, nil}func (s *IdentityProviderService) getIdentityProviderMessage(ctx context.Context, name string) (*store.IdentityProviderMessage, error) {diff --git a/backend/plugin/idp/oauth2/oauth2.go b/backend/plugin/idp/oauth2/oauth2.goindex 2a09680f87..b3ddf42c4d 100644--- a/backend/plugin/idp/oauth2/oauth2.go+++ b/backend/plugin/idp/oauth2/oauth2.go@@ -86,30 +86,29 @@ func (p *IdentityProvider) ExchangeToken(ctx context.Context, redirectURL, code}// UserInfo returns the parsed user information using the given OAuth2 token.-func (p *IdentityProvider) UserInfo(token string) (*storepb.IdentityProviderUserInfo, error) {+func (p *IdentityProvider) UserInfo(token string) (*storepb.IdentityProviderUserInfo, map[string]any, error) {req, err := http.NewRequest(http.MethodGet, p.config.UserInfoUrl, nil)if err != nil {- return nil, errors.Wrap(err, "failed to new http request")+ return nil, nil, errors.Wrap(err, "failed to new http request")}req.Header.Set("Content-Type", "application/json")req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", token))resp, err := p.client.Do(req)if err != nil {slog.Error("Failed to get user information", slog.String("token", token), log.BBError(err))- return nil, errors.Wrap(err, "failed to get user information")+ return nil, nil, errors.Wrap(err, "failed to get user information")}defer resp.Body.Close()body, err := io.ReadAll(resp.Body)if err != nil {slog.Error("Failed to read response body", slog.String("token", token), log.BBError(err))- return nil, errors.Wrap(err, "failed to read response body")+ return nil, nil, errors.Wrap(err, "failed to read response body")}var claims map[string]any- err = json.Unmarshal(body, &claims)- if err != nil {+ if err := json.Unmarshal(body, &claims); err != nil {slog.Error("Failed to unmarshal response body", slog.String("token", token), slog.String("body", string(body)), log.BBError(err))- return nil, errors.Wrap(err, "failed to unmarshal response body")+ return nil, nil, errors.Wrap(err, "failed to unmarshal response body")}slog.Debug("User info", slog.Any("claims", claims))@@ -119,10 +118,10 @@ func (p *IdentityProvider) UserInfo(token string) (*storepb.IdentityProviderUser}if userInfo.Identifier == "" {slog.Error("Missing identifier in response body", slog.String("token", token), slog.Any("claims", claims))- return nil, errors.Errorf("the field %q is not found in claims or has empty value", p.config.FieldMapping.Identifier)+ return nil, claims, errors.Errorf("the field %q is not found in claims or has empty value", p.config.FieldMapping.Identifier)}- // Best effort to map optional fields+ // Best effort to map optional fields.if p.config.FieldMapping.DisplayName != "" {if v, ok := idp.GetValueWithKey(claims, p.config.FieldMapping.DisplayName).(string); ok {userInfo.DisplayName = v@@ -139,5 +138,5 @@ func (p *IdentityProvider) UserInfo(token string) (*storepb.IdentityProviderUser}}}- return userInfo, nil+ return userInfo, claims, nil}diff --git a/backend/plugin/idp/oauth2/oauth2_test.go b/backend/plugin/idp/oauth2/oauth2_test.goindex 67ad9eee0b..8dc62006a7 100644--- a/backend/plugin/idp/oauth2/oauth2_test.go+++ b/backend/plugin/idp/oauth2/oauth2_test.go@@ -155,7 +155,7 @@ func TestIdentityProvider(t *testing.T) {require.NoError(t, err)require.Equal(t, testAccessToken, oauthToken)- userInfoResult, err := oauth2.UserInfo(oauthToken)+ userInfoResult, _, err := oauth2.UserInfo(oauthToken)require.NoError(t, err)wantUserInfo := &storepb.IdentityProviderUserInfo{@@ -228,7 +228,7 @@ func TestIdentityProvider_SelfSigned(t *testing.T) {require.NoError(t, err)require.Equal(t, testAccessToken, oauthToken)- userInfoResult, err := oauth2.UserInfo(oauthToken)+ userInfoResult, _, err := oauth2.UserInfo(oauthToken)require.NoError(t, err)wantUserInfo := &storepb.IdentityProviderUserInfo{diff --git a/backend/plugin/idp/oidc/oidc.go b/backend/plugin/idp/oidc/oidc.goindex eca1a72b14..68d34c85a5 100644--- a/backend/plugin/idp/oidc/oidc.go+++ b/backend/plugin/idp/oidc/oidc.go@@ -90,18 +90,18 @@ func (p *IdentityProvider) ExchangeToken(ctx context.Context, redirectURL, code// The nonce is used for request validation, which should be the same value as// it was sent to the issuer as part of the Authentication Request, see// https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest.-func (p *IdentityProvider) UserInfo(ctx context.Context, token *oauth2.Token, nonce string) (*storepb.IdentityProviderUserInfo, error) {+func (p *IdentityProvider) UserInfo(ctx context.Context, token *oauth2.Token, nonce string) (*storepb.IdentityProviderUserInfo, map[string]any, error) {// Extract the ID Token from the access token, see http://openid.net/specs/openid-connect-core-1_0.html#TokenResponse.rawIDToken, ok := token.Extra("id_token").(string)if !ok {- return nil, errors.New(`missing "id_token" from the issuer's authorization response`)+ return nil, nil, errors.New(`missing "id_token" from the issuer's authorization response`)}ctx = context.WithValue(ctx, oauth2.HTTPClient, p.client)verifier := p.provider.Verifier(&oidc.Config{ClientID: p.config.ClientId})idToken, err := verifier.Verify(ctx, rawIDToken)if err != nil {- return nil, errors.Wrap(err, "verify raw ID Token")+ return nil, nil, errors.Wrap(err, "verify raw ID Token")}// NOTE: Skip checking nonce if the expected nonce is empty. It is OK because@@ -109,18 +109,18 @@ func (p *IdentityProvider) UserInfo(ctx context.Context, token *oauth2.Token, no// and some IdP implementations are just behaving strangely that would return a// random nonce when we send an empty nonce to them.if nonce != "" && nonce != idToken.Nonce {- return nil, errors.Errorf("mismatched nonce, want %q but got %q", nonce, idToken.Nonce)+ return nil, nil, errors.Errorf("mismatched nonce, want %q but got %q", nonce, idToken.Nonce)}rawUserInfo, err := p.provider.UserInfo(ctx, oauth2.StaticTokenSource(token))if err != nil {- return nil, errors.Wrap(err, "fetch user info")+ return nil, nil, errors.Wrap(err, "fetch user info")}var claims map[string]anyerr = rawUserInfo.Claims(&claims)if err != nil {- return nil, errors.Wrap(err, "unmarshal claims")+ return nil, nil, errors.Wrap(err, "unmarshal claims")}slog.Debug("User info", slog.Any("claims", claims))@@ -129,7 +129,7 @@ func (p *IdentityProvider) UserInfo(ctx context.Context, token *oauth2.Token, nouserInfo.Identifier = v}if userInfo.Identifier == "" {- return nil, errors.Errorf("the field %q is not found in claims or has empty value", p.config.FieldMapping.Identifier)+ return nil, claims, errors.Errorf("the field %q is not found in claims or has empty value", p.config.FieldMapping.Identifier)}// Best effort to map optional fields@@ -161,7 +161,7 @@ func (p *IdentityProvider) UserInfo(ctx context.Context, token *oauth2.Token, no}}}- return userInfo, nil+ return userInfo, claims, nil}// The common OIDC configuration response.diff --git a/backend/plugin/idp/oidc/oidc_test.go b/backend/plugin/idp/oidc/oidc_test.goindex 684eb7e0ca..269bd8a309 100644--- a/backend/plugin/idp/oidc/oidc_test.go+++ b/backend/plugin/idp/oidc/oidc_test.go@@ -217,7 +217,7 @@ func TestIdentityProvider(t *testing.T) {require.NoError(t, err)require.Equal(t, testAccessToken, oauthToken.AccessToken)- userInfo, err := oidc.UserInfo(ctx, oauthToken, testNonce)+ userInfo, _, err := oidc.UserInfo(ctx, oauthToken, testNonce)require.NoError(t, err)wantUserInfo := &storepb.IdentityProviderUserInfo{@@ -291,7 +291,7 @@ func TestIdentityProvider_SelfSigned(t *testing.T) {require.NoError(t, err)require.Equal(t, testAccessToken, oauthToken.AccessToken)- userInfo, err := oidc.UserInfo(ctx, oauthToken, testNonce)+ userInfo, _, err := oidc.UserInfo(ctx, oauthToken, testNonce)require.NoError(t, err)wantUserInfo := &storepb.IdentityProviderUserInfo{diff --git a/frontend/src/components/IdentityProvider/IdentityProviderCreateWizard.vue b/frontend/src/components/IdentityProvider/IdentityProviderCreateWizard.vueindex 6d7e9542c1..678217e5c3 100644--- a/frontend/src/components/IdentityProvider/IdentityProviderCreateWizard.vue+++ b/frontend/src/components/IdentityProvider/IdentityProviderCreateWizard.vue@@ -380,14 +380,12 @@</div><div>- <NButton+ <TestConnection:disabled="!allowTestConnection"- @click="testConnection"- size="large"- class="text-base"- >- {{ $t("identity-provider.test-connection") }}- </NButton>+ :size="'large'"+ :is-creating="true"+ :idp="idpToCreate"+ /></div></div></div>@@ -482,6 +480,7 @@ import type { OAuth2IdentityProviderTemplate } from "@/utils";import { identityProviderTypeToString } from "@/utils";import IdentityProviderExternalURL from "./IdentityProviderExternalURL.vue";import IdentityProviderForm from "./IdentityProviderForm.vue";+import TestConnection from "./TestConnection.vue";interface IdentityProviderTemplate extends OAuth2IdentityProviderTemplate {feature: PlanFeature;@@ -532,6 +531,37 @@ const resourceIdField = ref<InstanceType<typeof ResourceIdField>>();const resourceIdValue = ref<string>("");// Computed+const idpToCreate = computed(+ (): IdentityProvider => ({+ name: resourceIdField.value?.resourceId || resourceIdValue.value,+ title: identityProvider.value.title,+ domain: identityProvider.value.domain,+ type: selectedType.value,+ config: {+ ...(selectedType.value === IdentityProviderType.OAUTH2 && {+ oauth2Config: {+ ...configForOAuth2.value,+ scopes: scopesStringOfConfig.value.split(" ").filter(Boolean),+ fieldMapping,+ },+ }),+ ...(selectedType.value === IdentityProviderType.OIDC && {+ oidcConfig: {+ ...configForOIDC.value,+ scopes: scopesStringOfConfig.value.split(" ").filter(Boolean),+ fieldMapping,+ },+ }),+ ...(selectedType.value === IdentityProviderType.LDAP && {+ ldapConfig: {+ ...configForLDAP.value,+ fieldMapping,+ },+ }),+ },+ })+);+const externalUrl = computed(() => useActuatorV1Store().serverInfo?.externalUrl ?? "");@@ -878,11 +908,6 @@ const handleNextStep = () => {}};-const testConnection = async () => {- // Implementation would be similar to the original component- // TODO: Implement test connection functionality-};-const handleCreate = async () => {if (!canCreate.value) return;@@ -894,34 +919,9 @@ const handleCreate = async () => {throw new Error("Resource ID is required");}- const createdProvider = await identityProviderStore.createIdentityProvider({- name: finalResourceId,- title: identityProvider.value.title,- domain: identityProvider.value.domain,- type: selectedType.value,- config: {- ...(selectedType.value === IdentityProviderType.OAUTH2 && {- oauth2Config: {- ...configForOAuth2.value,- scopes: scopesStringOfConfig.value.split(" ").filter(Boolean),- fieldMapping,- },- }),- ...(selectedType.value === IdentityProviderType.OIDC && {- oidcConfig: {- ...configForOIDC.value,- scopes: scopesStringOfConfig.value.split(" ").filter(Boolean),- fieldMapping,- },- }),- ...(selectedType.value === IdentityProviderType.LDAP && {- ldapConfig: {- ...configForLDAP.value,- fieldMapping,- },- }),- },- });+ const createdProvider = await identityProviderStore.createIdentityProvider(+ idpToCreate.value+ );pushNotification({module: "bytebase",diff --git a/frontend/src/components/IdentityProvider/IdentityProviderEditForm.vue b/frontend/src/components/IdentityProvider/IdentityProviderEditForm.vueindex 39e2c323cc..bd3b73ad8d 100644--- a/frontend/src/components/IdentityProvider/IdentityProviderEditForm.vue+++ b/frontend/src/components/IdentityProvider/IdentityProviderEditForm.vue@@ -188,14 +188,12 @@</div><div>- <NButton+ <TestConnection:disabled="!allowTestConnection"- @click="testConnection"- size="large"- class="text-base"- >- {{ $t("identity-provider.test-connection") }}- </NButton>+ :size="'large'"+ :is-creating="false"+ :idp="buildUpdatedIdentityProvider()"+ /></div></div></div>@@ -273,6 +271,7 @@ import {identityProviderTypeToString,} from "@/utils";import IdentityProviderForm from "./IdentityProviderForm.vue";+import TestConnection from "./TestConnection.vue";interface Props {identityProvider: IdentityProvider;@@ -473,10 +472,6 @@ const initializeFromProps = () => {}};-const testConnection = async () => {- // TODO: Implement test connection-};-const handleUpdate = async () => {if (!canUpdate.value) return;diff --git a/frontend/src/components/IdentityProvider/IdentityProviderForm.vue b/frontend/src/components/IdentityProvider/IdentityProviderForm.vueindex b6723b7455..3a80a8870a 100644--- a/frontend/src/components/IdentityProvider/IdentityProviderForm.vue+++ b/frontend/src/components/IdentityProvider/IdentityProviderForm.vue@@ -235,7 +235,7 @@<span class="text-red-600">*</span></label><BBTextField- :model-value="scopesString"+ :value="scopesString"@update:value="$emit('update:scopes-string', $event)"requiredsize="large"diff --git a/frontend/src/components/IdentityProvider/TestConnection.vue b/frontend/src/components/IdentityProvider/TestConnection.vuenew file mode 100644index 0000000000..16c0b976ac--- /dev/null+++ b/frontend/src/components/IdentityProvider/TestConnection.vue@@ -0,0 +1,227 @@+<template>+ <NButton+ @click="testConnection"+ :loading="isTestingInProgress"+ :disabled="isTestingInProgress"+ v-bind="$attrs"+ >+ {{ $t("identity-provider.test-connection") }}+ </NButton>++ <!-- Claims Dialog -->+ <NModal+ v-model:show="showClaimsDialog"+ preset="dialog"+ class="!w-128"+ :show-icon="false"+ >+ <template #header>+ <div class="flex items-center gap-x-2">+ <heroicons:check-circle class="w-6 h-6 text-success" />+ <span>{{ $t("identity-provider.test-connection-success") }}</span>+ </div>+ </template>+ <div class="space-y-4">+ <p class="text-sm text-control-light">+ {{ $t("identity-provider.claims-description") }}+ </p>+ <div class="bg-gray-50 dark:bg-gray-800 rounded-lg p-4">+ <div class="space-y-2">+ <div+ v-if="Object.keys(claims).length === 0"+ class="text-sm text-control-light italic"+ >+ {{ $t("identity-provider.no-claims") }}+ </div>+ <div v-else>+ <div+ v-for="[key, value] in Object.entries(claims)"+ :key="key"+ class="grid grid-cols-3 gap-2 py-1 border-b border-gray-200 dark:border-gray-600 last:border-b-0"+ >+ <div+ class="text-sm font-medium text-control truncate"+ :title="key"+ >+ {{ key }}+ </div>+ <div+ class="col-span-2 text-sm text-main break-all"+ :title="value"+ >+ {{ value }}+ </div>+ </div>+ </div>+ </div>+ </div>+ </div>+ </NModal>+</template>++<script lang="ts" setup>+import { NButton, NModal } from "naive-ui";+import { ref, onUnmounted, watch } from "vue";+import { identityProviderClient } from "@/grpcweb";+import { pushNotification } from "@/store";+import type { OAuthWindowEventPayload } from "@/types";+import {+ IdentityProviderType,+ type IdentityProvider,+} from "@/types/proto/v1/idp_service";+import { openWindowForSSO } from "@/utils";++const props = defineProps<{+ idp: IdentityProvider;+ isCreating?: boolean;+}>();++// Reactive state for the claims dialog+const showClaimsDialog = ref(false);+const claims = ref<Record<string, string>>({});++// Track current event listener to prevent duplicates+const currentEventName = ref<string>("");++// Track if test is in progress to prevent multiple calls+const isTestingInProgress = ref(false);++const loginWithIdentityProviderEventListener = async (event: Event) => {+ // Prevent multiple concurrent API calls+ if (isTestingInProgress.value) {+ return;+ }++ const payload = (event as CustomEvent).detail as OAuthWindowEventPayload;+ if (payload.error) {+ pushNotification({+ module: "bytebase",+ style: "CRITICAL",+ title: `Request error occurred`,+ description: payload.error,+ });+ return;+ }++ const code = payload.code;+ try {+ isTestingInProgress.value = true;+ const response = await identityProviderClient.testIdentityProvider({+ identityProvider: props.idp,+ oauth2Context: {+ code: code,+ },+ });++ // Show claims in dialog+ claims.value = response.claims || {};+ showClaimsDialog.value = true;+ } catch (error) {+ pushNotification({+ module: "bytebase",+ style: "CRITICAL",+ title: `Request error occurred`,+ description: (error as any).details,+ });+ } finally {+ isTestingInProgress.value = false;+ }+};++const testConnection = async () => {+ // Prevent multiple test connections from running simultaneously+ if (isTestingInProgress.value) {+ return;+ }++ const { idp, isCreating } = props;+ if (+ idp.type === IdentityProviderType.OAUTH2 ||+ idp.type === IdentityProviderType.OIDC+ ) {+ let idpForTesting = idp;+ // For OIDC, we need to obtain the auth endpoint from the issuer in backend.+ if (isCreating && idp.type === IdentityProviderType.OIDC) {+ idpForTesting = await identityProviderClient.createIdentityProvider({+ identityProviderId: idp.name,+ identityProvider: idp,+ validateOnly: true,+ });+ }++ // Ensure event listener is set up for the correct IDP name+ const eventName = `bb.oauth.signin.${idpForTesting.name}`;++ // Remove any existing listener first+ if (currentEventName.value) {+ window.removeEventListener(+ currentEventName.value,+ loginWithIdentityProviderEventListener,+ false+ );+ }++ // Add the listener only if it's not already registered for this event+ if (currentEventName.value !== eventName) {+ window.addEventListener(+ eventName,+ loginWithIdentityProviderEventListener,+ false+ );+ currentEventName.value = eventName;+ }++ try {+ await openWindowForSSO(idpForTesting);+ } catch (error) {+ pushNotification({+ module: "bytebase",+ style: "CRITICAL",+ title: `Request error occurred`,+ description: (error as any).message,+ });+ }+ } else if (idp.type === IdentityProviderType.LDAP) {+ try {+ isTestingInProgress.value = true;+ const response = await identityProviderClient.testIdentityProvider({+ identityProvider: idp,+ });++ // Show claims in dialog (LDAP will have empty claims)+ claims.value = response.claims || {};+ showClaimsDialog.value = true;+ } catch (error) {+ pushNotification({+ module: "bytebase",+ style: "CRITICAL",+ title: `Request error occurred`,+ description: (error as any).details,+ });+ } finally {+ isTestingInProgress.value = false;+ }+ }+};++// Reset testing state when component unmounts+onUnmounted(() => {+ if (currentEventName.value) {+ window.removeEventListener(+ currentEventName.value,+ loginWithIdentityProviderEventListener,+ false+ );+ currentEventName.value = "";+ }+ isTestingInProgress.value = false;+});++// Watch for dialog close to reset testing state if needed+watch(showClaimsDialog, (newValue) => {+ if (!newValue) {+ // Reset testing state when dialog is closed+ isTestingInProgress.value = false;+ }+});+</script>diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex b799214a4f..a6d6a38ad4 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -2292,6 +2292,9 @@},"identity-provider": {"test-connection": "Test Connection",+ "test-connection-success": "Test Connection Successful",+ "claims-description": "The following claims were returned by the identity provider. This information can help you configure field mappings.",+ "no-claims": "No claims returned by the identity provider.","identity-provider-created": "Identity provider created successfully","identity-provider-deleted": "Identity provider deleted successfully","identity-provider-update-failed": "Failed to update identity provider",diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex a1f8890ed5..47fbd01319 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -2292,6 +2292,9 @@},"identity-provider": {"test-connection": "Probar conexión",+ "test-connection-success": "Conexión de prueba exitosa",+ "claims-description": "El proveedor de identidad devolvió las siguientes notificaciones. Esta información puede ayudarle a configurar las asignaciones de campos.",+ "no-claims": "El proveedor de identidad no devolvió ninguna reclamación.","identity-provider-created": "Proveedor de identidad creado exitosamente","identity-provider-deleted": "Proveedor de identidad eliminado exitosamente","identity-provider-update-failed": "No se pudo actualizar el proveedor de identidad",diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex 205dd7540c..897bde49e9 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -2292,6 +2292,9 @@},"identity-provider": {"test-connection": "テスト接続",+ "test-connection-success": "テスト接続に成功しました",+ "claims-description": "IDプロバイダーから以下のクレームが返されました。この情報は、フィールドマッピングの設定に役立ちます。",+ "no-claims": "アイデンティティ プロバイダーから返されるクレームはありません。","identity-provider-created": "ID プロバイダが正常に作成されました","identity-provider-deleted": "ID プロバイダが正常に削除されました","identity-provider-update-failed": "IDプロバイダの更新に失敗しました",diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.jsonindex aadc67f9ff..63250c7926 100644--- a/frontend/src/locales/vi-VN.json+++ b/frontend/src/locales/vi-VN.json@@ -2292,6 +2292,9 @@},"identity-provider": {"test-connection": "Kiểm tra kết nối",+ "test-connection-success": "Kiểm tra kết nối thành công",+ "claims-description": "Các yêu cầu sau đây đã được nhà cung cấp danh tính trả về. Thông tin này có thể giúp bạn cấu hình ánh xạ trường.",+ "no-claims": "Nhà cung cấp danh tính không trả lại bất kỳ khiếu nại nào.","identity-provider-created": "Nhà cung cấp danh tính đã được tạo thành công","identity-provider-deleted": "Nhà cung cấp danh tính đã xóa thành công","identity-provider-update-failed": "Không cập nhật được nhà cung cấp danh tính",diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 38665617fe..b7357952c4 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -2292,6 +2292,9 @@},"identity-provider": {"test-connection": "测试连接",+ "test-connection-success": "测试连接成功",+ "claims-description": "身份提供商返回了以下 claims。此信息可帮助您配置用户信息映射。",+ "no-claims": "身份提供商未返回 claims。","identity-provider-created": "身份提供商创建成功","identity-provider-deleted": "身份提供商已成功删除","identity-provider-update-failed": "无法更新身份提供商",diff --git a/frontend/src/types/proto-es/v1/idp_service_pb.d.ts b/frontend/src/types/proto-es/v1/idp_service_pb.d.tsindex 7d601d81de..b55e2b3215 100644--- a/frontend/src/types/proto-es/v1/idp_service_pb.d.ts+++ b/frontend/src/types/proto-es/v1/idp_service_pb.d.ts@@ -221,6 +221,12 @@ export declare const OAuth2IdentityProviderTestRequestContextSchema: GenMessage<* @generated from message bytebase.v1.TestIdentityProviderResponse*/export declare type TestIdentityProviderResponse = Message<"bytebase.v1.TestIdentityProviderResponse"> & {+ /**+ * The map of claims returned by the identity provider.+ *+ * @generated from field: map<string, string> claims = 1;+ */+ claims: { [key: string]: string };};/**diff --git a/frontend/src/types/proto-es/v1/idp_service_pb.js b/frontend/src/types/proto-es/v1/idp_service_pb.jsindex 9196ad8bb4..5df6b5e83a 100644--- a/frontend/src/types/proto-es/v1/idp_service_pb.js+++ b/frontend/src/types/proto-es/v1/idp_service_pb.js@@ -14,7 +14,7 @@ import { file_v1_annotation } from "./annotation_pb";* Describes the file v1/idp_service.proto.*/export const file_v1_idp_service = /*@__PURE__*/- fileDesc("ChR2MS9pZHBfc2VydmljZS5wcm90bxILYnl0ZWJhc2UudjEiRQoaR2V0SWRlbnRpdHlQcm92a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dHlfcHJvdmlkZXIubmFtZT1pZHBzLyp9EqUBChZEZWxldGVJZGVudGl0eVByb3ZpZGVyEiouYnl0ZWJhc2UudjEuRGVsZXRlSWRlbnRpdHlQcm92aWRlclJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiR9pBBG5hbWWK6jAbYmIuaWRlbnRpdHlQcm92aWRlcnMuZGVsZXRlkOowAZjqMAGC0+STAhMqES92MS97bmFtZT1pZHBzLyp9EqoBChRUZXN0SWRlbnRpdHlQcm92aWRlchIoLmJ5dGViYXNlLnYxLlRlc3RJZGVudGl0eVByb3ZpZGVyUmVxdWVzdBopLmJ5dGViYXNlLnYxLlRlc3RJZGVudGl0eVByb3ZpZGVyUmVzcG9uc2UiPYrqMBtiYi5pZGVudGl0eVByb3ZpZGVycy51cGRhdGWQ6jABgtPkkwIUOgEqIg8vdjEvaWRwcy8qOnRlc3RCNFoyZ2l0aHViLmNvbS9ieXRlYmFzZS9ieXRlYmFzZS9wcm90by9nZW5lcmF0ZWQtZ28vdjFiBnByb3RvMw", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_empty, file_google_protobuf_field_mask, file_v1_annotation]);+ fileDesc("ChR2MS9pZHBfc2VydmljZS5wcm90bxILYnl0ZWJhc2UudjEiRQoaR2V0SWRlbnRpdHlQcm92aWRlclJlcXVlc3QSJwoEbmFtZRgBIAEoCUIZ4kEBAvpBEgoQYnl0ZWJhc2UuY29tL0lkUCJFChxMaXN0SWRlbnRpdHlQcm92aWRlcnNSZXF1ZXN0EhEKCXBhZ2Vfc2l6ZRgBIAEoBRISCgpwYWdlX3Rva2VuGAIgASgJInMKHUxpc3RJZGVudGl0eVByb3ZpZGVyc1Jlc3BvbnNlEjkKEmlkZW50aXR5X3Byb3ZpZGVycxgBIAMoCzIdLmJ5dGViYXNlLnYxLklkZW50aXR5UHJvdmlkZXISFwoPbmV4dF9wYWdlX3Rva2VuGAIgASgJIpQBCh1DcmVhdGV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ZWxldGWQ6jABmOowAYLT5JMCEyoRL3YxL3tuYW1lPWlkcHMvKn0SqgEKFFRlc3RJZGVudGl0eVByb3ZpZGVyEiguYnl0ZWJhc2UudjEuVGVzdElkZW50aXR5UHJvdmlkZXJSZXF1ZXN0GikuYnl0ZWJhc2UudjEuVGVzdElkZW50aXR5UHJvdmlkZXJSZXNwb25zZSI9iuowG2JiLmlkZW50aXR5UHJvdmlkZXJzLnVwZGF0ZZDqMAGC0+STAhQ6ASoiDy92MS9pZHBzLyo6dGVzdEI0WjJnaXRodWIuY29tL2J5dGViYXNlL2J5dGViYXNlL3Byb3RvL2dlbmVyYXRlZC1nby92MWIGcHJvdG8z", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_empty, file_google_protobuf_field_mask, file_v1_annotation]);/*** Describes the message bytebase.v1.GetIdentityProviderRequest.diff --git a/frontend/src/types/proto/v1/idp_service.ts b/frontend/src/types/proto/v1/idp_service.tsindex 6b7434b1f1..3309bd3a58 100644--- a/frontend/src/types/proto/v1/idp_service.ts+++ b/frontend/src/types/proto/v1/idp_service.ts@@ -219,6 +219,13 @@ export interface OAuth2IdentityProviderTestRequestContext {}export interface TestIdentityProviderResponse {+ /** The map of claims returned by the identity provider. */+ claims: { [key: string]: string };+}++export interface TestIdentityProviderResponse_ClaimsEntry {+ key: string;+ value: string;}export interface IdentityProvider {@@ -973,11 +980,14 @@ export const OAuth2IdentityProviderTestRequestContext: MessageFns<OAuth2Identity};function createBaseTestIdentityProviderResponse(): TestIdentityProviderResponse {- return {};+ return { claims: {} };}export const TestIdentityProviderResponse: MessageFns<TestIdentityProviderResponse> = {- encode(_: TestIdentityProviderResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ encode(message: TestIdentityProviderResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ Object.entries(message.claims).forEach(([key, value]) => {+ TestIdentityProviderResponse_ClaimsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();+ });return writer;},@@ -988,6 +998,17 @@ export const TestIdentityProviderResponse: MessageFns<TestIdentityProviderResponwhile (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {+ case 1: {+ if (tag !== 10) {+ break;+ }++ const entry1 = TestIdentityProviderResponse_ClaimsEntry.decode(reader, reader.uint32());+ if (entry1.value !== undefined) {+ message.claims[entry1.key] = entry1.value;+ }+ continue;+ }}if ((tag & 7) === 4 || tag === 0) {break;@@ -997,20 +1018,118 @@ export const TestIdentityProviderResponse: MessageFns<TestIdentityProviderResponreturn message;},- fromJSON(_: any): TestIdentityProviderResponse {- return {};+ fromJSON(object: any): TestIdentityProviderResponse {+ return {+ claims: isObject(object.claims)+ ? Object.entries(object.claims).reduce<{ [key: string]: string }>((acc, [key, value]) => {+ acc[key] = String(value);+ return acc;+ }, {})+ : {},+ };},- toJSON(_: TestIdentityProviderResponse): unknown {+ toJSON(message: TestIdentityProviderResponse): unknown {const obj: any = {};+ if (message.claims) {+ const entries = Object.entries(message.claims);+ if (entries.length > 0) {+ obj.claims = {};+ entries.forEach(([k, v]) => {+ obj.claims[k] = v;+ });+ }+ }return obj;},create(base?: DeepPartial<TestIdentityProviderResponse>): TestIdentityProviderResponse {return TestIdentityProviderResponse.fromPartial(base ?? {});},- fromPartial(_: DeepPartial<TestIdentityProviderResponse>): TestIdentityProviderResponse {+ fromPartial(object: DeepPartial<TestIdentityProviderResponse>): TestIdentityProviderResponse {const message = createBaseTestIdentityProviderResponse();+ message.claims = Object.entries(object.claims ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {+ if (value !== undefined) {+ acc[key] = globalThis.String(value);+ }+ return acc;+ }, {});+ return message;+ },+};++function createBaseTestIdentityProviderResponse_ClaimsEntry(): TestIdentityProviderResponse_ClaimsEntry {+ return { key: "", value: "" };+}++export const TestIdentityProviderResponse_ClaimsEntry: MessageFns<TestIdentityProviderResponse_ClaimsEntry> = {+ encode(message: TestIdentityProviderResponse_ClaimsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.key !== "") {+ writer.uint32(10).string(message.key);+ }+ if (message.value !== "") {+ writer.uint32(18).string(message.value);+ }+ return writer;+ },++ decode(input: BinaryReader | Uint8Array, length?: number): TestIdentityProviderResponse_ClaimsEntry {+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseTestIdentityProviderResponse_ClaimsEntry();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1: {+ if (tag !== 10) {+ break;+ }++ message.key = reader.string();+ continue;+ }+ case 2: {+ if (tag !== 18) {+ break;+ }++ message.value = reader.string();+ continue;+ }+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): TestIdentityProviderResponse_ClaimsEntry {+ return {+ key: isSet(object.key) ? globalThis.String(object.key) : "",+ value: isSet(object.value) ? globalThis.String(object.value) : "",+ };+ },++ toJSON(message: TestIdentityProviderResponse_ClaimsEntry): unknown {+ const obj: any = {};+ if (message.key !== "") {+ obj.key = message.key;+ }+ if (message.value !== "") {+ obj.value = message.value;+ }+ return obj;+ },++ create(base?: DeepPartial<TestIdentityProviderResponse_ClaimsEntry>): TestIdentityProviderResponse_ClaimsEntry {+ return TestIdentityProviderResponse_ClaimsEntry.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<TestIdentityProviderResponse_ClaimsEntry>): TestIdentityProviderResponse_ClaimsEntry {+ const message = createBaseTestIdentityProviderResponse_ClaimsEntry();+ message.key = object.key ?? "";+ message.value = object.value ?? "";return message;},};@@ -2358,6 +2477,10 @@ export type DeepPartial<T> = T extends Builtin ? T: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }: Partial<T>;+function isObject(value: any): boolean {+ return typeof value === "object" && value !== null;+}+function isSet(value: any): boolean {return value !== null && value !== undefined;}diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex cd3c6e1662..497ddbcc6b 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -13655,7 +13655,12 @@ components:$ref: '#/components/schemas/OAuth2IdentityProviderTestRequestContext'TestIdentityProviderResponse:type: object- properties: {}+ properties:+ claims:+ type: object+ additionalProperties:+ type: string+ description: The map of claims returned by the identity provider.TestWebhookRequest:required:- projectdiff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 5d554ab544..05deffd668 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -382,6 +382,7 @@- [OIDCIdentityProviderConfig](#bytebase-v1-OIDCIdentityProviderConfig)- [TestIdentityProviderRequest](#bytebase-v1-TestIdentityProviderRequest)- [TestIdentityProviderResponse](#bytebase-v1-TestIdentityProviderResponse)+ - [TestIdentityProviderResponse.ClaimsEntry](#bytebase-v1-TestIdentityProviderResponse-ClaimsEntry)- [UpdateIdentityProviderRequest](#bytebase-v1-UpdateIdentityProviderRequest)- [IdentityProviderType](#bytebase-v1-IdentityProviderType)@@ -6449,6 +6450,27 @@ OIDCIdentityProviderConfig is the structure for OIDC identity provider config.+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| claims | [TestIdentityProviderResponse.ClaimsEntry](#bytebase-v1-TestIdentityProviderResponse-ClaimsEntry) | repeated | The map of claims returned by the identity provider. |+++++++<a name="bytebase-v1-TestIdentityProviderResponse-ClaimsEntry"></a>++### TestIdentityProviderResponse.ClaimsEntry++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| key | [string](#string) | | |+| value | [string](#string) | | |++diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex 078060a5ef..58681ad5a3 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -1637,6 +1637,10 @@<a href="#bytebase.v1.TestIdentityProviderResponse"><span class="badge">M</span>TestIdentityProviderResponse</a></li>+ <li>+ <a href="#bytebase.v1.TestIdentityProviderResponse.ClaimsEntry"><span class="badge">M</span>TestIdentityProviderResponse.ClaimsEntry</a>+ </li>+<li><a href="#bytebase.v1.UpdateIdentityProviderRequest"><span class="badge">M</span>UpdateIdentityProviderRequest</a></li>@@ -18123,6 +18127,54 @@ Should be fetched from the well-known configuration file of the OIDC provider. <<p></p>+ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>claims</td>+ <td><a href="#bytebase.v1.TestIdentityProviderResponse.ClaimsEntry">TestIdentityProviderResponse.ClaimsEntry</a></td>+ <td>repeated</td>+ <td><p>The map of claims returned by the identity provider. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TestIdentityProviderResponse.ClaimsEntry">TestIdentityProviderResponse.ClaimsEntry</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>key</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>value</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++diff --git a/proto/generated-go/v1/idp_service.pb.go b/proto/generated-go/v1/idp_service.pb.goindex a2612d94c2..7e710d6426 100644--- a/proto/generated-go/v1/idp_service.pb.go+++ b/proto/generated-go/v1/idp_service.pb.go@@ -631,7 +631,9 @@ func (x *OAuth2IdentityProviderTestRequestContext) GetCode() string {}type TestIdentityProviderResponse struct {- state protoimpl.MessageState `protogen:"open.v1"`+ state protoimpl.MessageState `protogen:"open.v1"`+ // The map of claims returned by the identity provider.+ Claims map[string]string `protobuf:"bytes,1,rep,name=claims,proto3" json:"claims,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`unknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache}@@ -666,6 +668,13 @@ func (*TestIdentityProviderResponse) Descriptor() ([]byte, []int) {return file_v1_idp_service_proto_rawDescGZIP(), []int{8}}+func (x *TestIdentityProviderResponse) GetClaims() map[string]string {+ if x != nil {+ return x.Claims+ }+ return nil+}+type IdentityProvider struct {state protoimpl.MessageState `protogen:"open.v1"`// The name of the identity provider.@@ -1287,8 +1296,12 @@ const file_v1_idp_service_proto_rawDesc = "" +"\x0eoauth2_context\x18\x02 \x01(\v25.bytebase.v1.OAuth2IdentityProviderTestRequestContextH\x00R\roauth2ContextB\t\n" +"\acontext\">\n" +"(OAuth2IdentityProviderTestRequestContext\x12\x12\n" +- "\x04code\x18\x01 \x01(\tR\x04code\"\x1e\n" +- "\x1cTestIdentityProviderResponse\"\xf1\x01\n" ++ "\x04code\x18\x01 \x01(\tR\x04code\"\xa8\x01\n" ++ "\x1cTestIdentityProviderResponse\x12M\n" ++ "\x06claims\x18\x01 \x03(\v25.bytebase.v1.TestIdentityProviderResponse.ClaimsEntryR\x06claims\x1a9\n" ++ "\vClaimsEntry\x12\x10\n" ++ "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" ++ "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xf1\x01\n" +"\x10IdentityProvider\x12\x12\n" +"\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" +"\x05title\x18\x04 \x01(\tR\x05title\x12\x16\n" +@@ -1379,7 +1392,7 @@ func file_v1_idp_service_proto_rawDescGZIP() []byte {}var file_v1_idp_service_proto_enumTypes = make([]protoimpl.EnumInfo, 3)-var file_v1_idp_service_proto_msgTypes = make([]protoimpl.MessageInfo, 15)+var file_v1_idp_service_proto_msgTypes = make([]protoimpl.MessageInfo, 16)var file_v1_idp_service_proto_goTypes = []any{(IdentityProviderType)(0), // 0: bytebase.v1.IdentityProviderType(OAuth2AuthStyle)(0), // 1: bytebase.v1.OAuth2AuthStyle@@ -1399,44 +1412,46 @@ var file_v1_idp_service_proto_goTypes = []any{(*OIDCIdentityProviderConfig)(nil), // 15: bytebase.v1.OIDCIdentityProviderConfig(*LDAPIdentityProviderConfig)(nil), // 16: bytebase.v1.LDAPIdentityProviderConfig(*FieldMapping)(nil), // 17: bytebase.v1.FieldMapping- (*fieldmaskpb.FieldMask)(nil), // 18: google.protobuf.FieldMask- (*emptypb.Empty)(nil), // 19: google.protobuf.Empty+ nil, // 18: bytebase.v1.TestIdentityProviderResponse.ClaimsEntry+ (*fieldmaskpb.FieldMask)(nil), // 19: google.protobuf.FieldMask+ (*emptypb.Empty)(nil), // 20: google.protobuf.Empty}var file_v1_idp_service_proto_depIdxs = []int32{12, // 0: bytebase.v1.ListIdentityProvidersResponse.identity_providers:type_name -> bytebase.v1.IdentityProvider12, // 1: bytebase.v1.CreateIdentityProviderRequest.identity_provider:type_name -> bytebase.v1.IdentityProvider12, // 2: bytebase.v1.UpdateIdentityProviderRequest.identity_provider:type_name -> bytebase.v1.IdentityProvider- 18, // 3: bytebase.v1.UpdateIdentityProviderRequest.update_mask:type_name -> google.protobuf.FieldMask+ 19, // 3: bytebase.v1.UpdateIdentityProviderRequest.update_mask:type_name -> google.protobuf.FieldMask12, // 4: bytebase.v1.TestIdentityProviderRequest.identity_provider:type_name -> bytebase.v1.IdentityProvider10, // 5: bytebase.v1.TestIdentityProviderRequest.oauth2_context:type_name -> bytebase.v1.OAuth2IdentityProviderTestRequestContext- 0, // 6: bytebase.v1.IdentityProvider.type:type_name -> bytebase.v1.IdentityProviderType- 13, // 7: bytebase.v1.IdentityProvider.config:type_name -> bytebase.v1.IdentityProviderConfig- 14, // 8: bytebase.v1.IdentityProviderConfig.oauth2_config:type_name -> bytebase.v1.OAuth2IdentityProviderConfig- 15, // 9: bytebase.v1.IdentityProviderConfig.oidc_config:type_name -> bytebase.v1.OIDCIdentityProviderConfig- 16, // 10: bytebase.v1.IdentityProviderConfig.ldap_config:type_name -> bytebase.v1.LDAPIdentityProviderConfig- 17, // 11: bytebase.v1.OAuth2IdentityProviderConfig.field_mapping:type_name -> bytebase.v1.FieldMapping- 1, // 12: bytebase.v1.OAuth2IdentityProviderConfig.auth_style:type_name -> bytebase.v1.OAuth2AuthStyle- 17, // 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.LDAPIdentityProviderConfig.security_protocol:type_name -> bytebase.v1.LDAPIdentityProviderConfig.SecurityProtocol- 17, // 16: bytebase.v1.LDAPIdentityProviderConfig.field_mapping:type_name -> bytebase.v1.FieldMapping- 3, // 17: bytebase.v1.IdentityProviderService.GetIdentityProvider:input_type -> bytebase.v1.GetIdentityProviderRequest- 4, // 18: bytebase.v1.IdentityProviderService.ListIdentityProviders:input_type -> bytebase.v1.ListIdentityProvidersRequest- 6, // 19: bytebase.v1.IdentityProviderService.CreateIdentityProvider:input_type -> bytebase.v1.CreateIdentityProviderRequest- 7, // 20: bytebase.v1.IdentityProviderService.UpdateIdentityProvider:input_type -> bytebase.v1.UpdateIdentityProviderRequest- 8, // 21: bytebase.v1.IdentityProviderService.DeleteIdentityProvider:input_type -> bytebase.v1.DeleteIdentityProviderRequest- 9, // 22: bytebase.v1.IdentityProviderService.TestIdentityProvider:input_type -> bytebase.v1.TestIdentityProviderRequest- 12, // 23: bytebase.v1.IdentityProviderService.GetIdentityProvider:output_type -> bytebase.v1.IdentityProvider- 5, // 24: bytebase.v1.IdentityProviderService.ListIdentityProviders:output_type -> bytebase.v1.ListIdentityProvidersResponse- 12, // 25: bytebase.v1.IdentityProviderService.CreateIdentityProvider:output_type -> bytebase.v1.IdentityProvider- 12, // 26: bytebase.v1.IdentityProviderService.UpdateIdentityProvider:output_type -> bytebase.v1.IdentityProvider- 19, // 27: bytebase.v1.IdentityProviderService.DeleteIdentityProvider:output_type -> google.protobuf.Empty- 11, // 28: bytebase.v1.IdentityProviderService.TestIdentityProvider:output_type -> bytebase.v1.TestIdentityProviderResponse- 23, // [23:29] is the sub-list for method output_type- 17, // [17:23] is the sub-list for method input_type- 17, // [17:17] is the sub-list for extension type_name- 17, // [17:17] is the sub-list for extension extendee- 0, // [0:17] is the sub-list for field type_name+ 18, // 6: bytebase.v1.TestIdentityProviderResponse.claims:type_name -> bytebase.v1.TestIdentityProviderResponse.ClaimsEntry+ 0, // 7: bytebase.v1.IdentityProvider.type:type_name -> bytebase.v1.IdentityProviderType+ 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.IdentityProviderConfig.ldap_config:type_name -> bytebase.v1.LDAPIdentityProviderConfig+ 17, // 12: bytebase.v1.OAuth2IdentityProviderConfig.field_mapping:type_name -> bytebase.v1.FieldMapping+ 1, // 13: bytebase.v1.OAuth2IdentityProviderConfig.auth_style:type_name -> bytebase.v1.OAuth2AuthStyle+ 17, // 14: bytebase.v1.OIDCIdentityProviderConfig.field_mapping:type_name -> bytebase.v1.FieldMapping+ 1, // 15: bytebase.v1.OIDCIdentityProviderConfig.auth_style:type_name -> bytebase.v1.OAuth2AuthStyle+ 2, // 16: bytebase.v1.LDAPIdentityProviderConfig.security_protocol:type_name -> bytebase.v1.LDAPIdentityProviderConfig.SecurityProtocol+ 17, // 17: bytebase.v1.LDAPIdentityProviderConfig.field_mapping:type_name -> bytebase.v1.FieldMapping+ 3, // 18: bytebase.v1.IdentityProviderService.GetIdentityProvider:input_type -> bytebase.v1.GetIdentityProviderRequest+ 4, // 19: bytebase.v1.IdentityProviderService.ListIdentityProviders:input_type -> bytebase.v1.ListIdentityProvidersRequest+ 6, // 20: bytebase.v1.IdentityProviderService.CreateIdentityProvider:input_type -> bytebase.v1.CreateIdentityProviderRequest+ 7, // 21: bytebase.v1.IdentityProviderService.UpdateIdentityProvider:input_type -> bytebase.v1.UpdateIdentityProviderRequest+ 8, // 22: bytebase.v1.IdentityProviderService.DeleteIdentityProvider:input_type -> bytebase.v1.DeleteIdentityProviderRequest+ 9, // 23: bytebase.v1.IdentityProviderService.TestIdentityProvider:input_type -> bytebase.v1.TestIdentityProviderRequest+ 12, // 24: bytebase.v1.IdentityProviderService.GetIdentityProvider:output_type -> bytebase.v1.IdentityProvider+ 5, // 25: bytebase.v1.IdentityProviderService.ListIdentityProviders:output_type -> bytebase.v1.ListIdentityProvidersResponse+ 12, // 26: bytebase.v1.IdentityProviderService.CreateIdentityProvider:output_type -> bytebase.v1.IdentityProvider+ 12, // 27: bytebase.v1.IdentityProviderService.UpdateIdentityProvider:output_type -> bytebase.v1.IdentityProvider+ 20, // 28: bytebase.v1.IdentityProviderService.DeleteIdentityProvider:output_type -> google.protobuf.Empty+ 11, // 29: bytebase.v1.IdentityProviderService.TestIdentityProvider:output_type -> bytebase.v1.TestIdentityProviderResponse+ 24, // [24:30] is the sub-list for method output_type+ 18, // [18:24] is the sub-list for method input_type+ 18, // [18:18] is the sub-list for extension type_name+ 18, // [18:18] is the sub-list for extension extendee+ 0, // [0:18] is the sub-list for field type_name}func init() { file_v1_idp_service_proto_init() }@@ -1459,7 +1474,7 @@ func file_v1_idp_service_proto_init() {GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: unsafe.Slice(unsafe.StringData(file_v1_idp_service_proto_rawDesc), len(file_v1_idp_service_proto_rawDesc)),NumEnums: 3,- NumMessages: 15,+ NumMessages: 16,NumExtensions: 0,NumServices: 1,},diff --git a/proto/v1/v1/idp_service.proto b/proto/v1/v1/idp_service.protoindex dbc98d0b3c..d97ecd9835 100644--- a/proto/v1/v1/idp_service.proto+++ b/proto/v1/v1/idp_service.proto@@ -149,7 +149,10 @@ message OAuth2IdentityProviderTestRequestContext {string code = 1;}-message TestIdentityProviderResponse {}+message TestIdentityProviderResponse {+ // The map of claims returned by the identity provider.+ map<string, string> claims = 1;+}message IdentityProvider {option (google.api.resource) = {