mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-06 10:58:48 +00:00
feat: get/list Zitadel IdP (#12394)
# Which Problems Are Solved This PR extends the functionality of `GetProviderByID`, `ListProviders` v1 endpoints and `GetIDPByID` v2 endpoint to also return Zitadel IdP when queried. # How the Problems Are Solved - Add `PROVIDER_TYPE_ZITADEL` and a `ZitadelConfig` to `zitadel.idp.v1.ProviderConfig` (v1 APIs). - Add `IDP_TYPE_ZITADEL`, `ZitadelConfig`, `InstanceRolesInfo` in v2 `idp.proto` - Extend internal/query IDP template querying to include a `ZitadelIDPTemplate` (incl. issuer, client credentials, scopes, instance roles info). - Add/extend integration tests for updating + fetching providers by ID and listing providers. # Additional Changes N/A # Additional Context Closes https://github.com/zitadel/zitadel/issues/12051 --------- Co-authored-by: Copilot Autofix powered by AI <[email protected]>
This commit is contained in:
co-authored by
Copilot Autofix powered by AI
parent
39ad66bded
commit
77169181a3
@@ -274,6 +274,7 @@ enum ProviderType {
|
||||
PROVIDER_TYPE_GOOGLE = 10;
|
||||
PROVIDER_TYPE_APPLE = 11;
|
||||
PROVIDER_TYPE_SAML = 12;
|
||||
PROVIDER_TYPE_ZITADEL = 13;
|
||||
}
|
||||
|
||||
enum SAMLBinding {
|
||||
@@ -312,6 +313,7 @@ message ProviderConfig {
|
||||
AzureADConfig azure_ad = 11;
|
||||
AppleConfig apple = 12;
|
||||
SAMLConfig saml = 13;
|
||||
ZitadelConfig zitadel = 14;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -525,6 +527,32 @@ message AzureADConfig {
|
||||
];
|
||||
}
|
||||
|
||||
message ZitadelConfig {
|
||||
string issuer = 1 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"https://zitadel.example.com/\"";
|
||||
description: "the OIDC issuer of the identity provider";
|
||||
}
|
||||
];
|
||||
string client_id = 2 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"client-id\"";
|
||||
description: "client id generated by the identity provider";
|
||||
}
|
||||
];
|
||||
repeated string scopes = 3 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "[\"openid\", \"profile\", \"email\"]";
|
||||
description: "the scopes requested by Zitadel during the request to the identity provider";
|
||||
}
|
||||
];
|
||||
repeated zitadel.idp.v1.InstanceRolesInfo instance_roles_info = 4 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
description: "the information about the organization and domain of the instance roles";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message Options {
|
||||
bool is_linking_allowed = 1 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
|
||||
@@ -55,6 +55,7 @@ enum IDPType {
|
||||
IDP_TYPE_GOOGLE = 10;
|
||||
IDP_TYPE_APPLE = 11;
|
||||
IDP_TYPE_SAML = 12;
|
||||
IDP_TYPE_ZITADEL = 13;
|
||||
}
|
||||
|
||||
enum SAMLBinding {
|
||||
@@ -93,6 +94,7 @@ message IDPConfig {
|
||||
AzureADConfig azure_ad = 11;
|
||||
AppleConfig apple = 12;
|
||||
SAMLConfig saml = 13;
|
||||
ZitadelConfig zitadel = 14;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -439,3 +441,49 @@ message AppleConfig {
|
||||
"[\"name\", \"email\"]";
|
||||
} ];
|
||||
}
|
||||
|
||||
message InstanceRolesInfo {
|
||||
string organization_id = 1
|
||||
[ (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example:
|
||||
"\"69629023906488334\"";
|
||||
description:
|
||||
"the id of the organization";
|
||||
} ];
|
||||
string organization_domain = 2
|
||||
[ (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example:
|
||||
"\"example-org.com\"";
|
||||
description:
|
||||
"the domain of the organization";
|
||||
} ];
|
||||
}
|
||||
|
||||
message ZitadelConfig {
|
||||
string issuer = 1
|
||||
[ (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example:
|
||||
"\"https://zitadel.example.com/\"";
|
||||
description:
|
||||
"the OIDC issuer of the identity provider";
|
||||
} ];
|
||||
string client_id = 2
|
||||
[ (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example:
|
||||
"\"client-id\"";
|
||||
description:
|
||||
"client id generated by the identity provider";
|
||||
} ];
|
||||
repeated string scopes = 3
|
||||
[ (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example:
|
||||
"[\"openid\", \"profile\", \"email\"]";
|
||||
description:
|
||||
"the scopes requested by Zitadel during the request to the identity provider";
|
||||
} ];
|
||||
repeated InstanceRolesInfo instance_roles_info = 4
|
||||
[ (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
description:
|
||||
"the information about the organization and domain of the instance roles";
|
||||
} ];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user