feat(api): add google provider template (#5247)

add functionality to manage templates based Google IDP
This commit is contained in:
Livio Spring
2023-02-21 18:18:28 +01:00
committed by GitHub
parent 94116fa04b
commit 40e7356f3e
28 changed files with 2527 additions and 50 deletions

View File

@@ -593,12 +593,36 @@ Returns an identity provider of the instance
GET: /idps/templates/{id}
### AddGoogleProvider
> **rpc** AddGoogleProvider([AddGoogleProviderRequest](#addgoogleproviderrequest))
[AddGoogleProviderResponse](#addgoogleproviderresponse)
Add a new Google identity provider on the instance
POST: /idps/google
### UpdateGoogleProvider
> **rpc** UpdateGoogleProvider([UpdateGoogleProviderRequest](#updategoogleproviderrequest))
[UpdateGoogleProviderResponse](#updategoogleproviderresponse)
Change an existing Google identity provider on the instance
PUT: /idps/google/{id}
### AddLDAPProvider
> **rpc** AddLDAPProvider([AddLDAPProviderRequest](#addldapproviderrequest))
[AddLDAPProviderResponse](#addldapproviderresponse)
Add a new ldap identity provider on the instance
Add a new LDAP identity provider on the instance
@@ -610,7 +634,7 @@ Add a new ldap identity provider on the instance
> **rpc** UpdateLDAPProvider([UpdateLDAPProviderRequest](#updateldapproviderrequest))
[UpdateLDAPProviderResponse](#updateldapproviderresponse)
Change an existing ldap identity provider on the instance
Change an existing LDAP identity provider on the instance
@@ -1849,6 +1873,33 @@ This is an empty request
### AddGoogleProviderRequest
| Field | Type | Description | Validation |
| ----- | ---- | ----------- | ----------- |
| name | string | Google will be used as default, if no name is provided | string.max_len: 200<br /> |
| client_id | string | - | string.min_len: 1<br /> string.max_len: 200<br /> |
| client_secret | string | - | string.min_len: 1<br /> string.max_len: 200<br /> |
| scopes | repeated string | - | repeated.max_items: 20<br /> repeated.items.string.min_len: 1<br /> repeated.items.string.max_len: 100<br /> |
| provider_options | zitadel.idp.v1.Options | - | |
### AddGoogleProviderResponse
| Field | Type | Description | Validation |
| ----- | ---- | ----------- | ----------- |
| details | zitadel.v1.ObjectDetails | - | |
| id | string | - | |
### AddIAMMemberRequest
@@ -4788,6 +4839,33 @@ this is en empty request
### UpdateGoogleProviderRequest
| Field | Type | Description | Validation |
| ----- | ---- | ----------- | ----------- |
| id | string | - | string.min_len: 1<br /> string.max_len: 200<br /> |
| name | string | - | string.max_len: 200<br /> |
| client_id | string | - | string.min_len: 1<br /> string.max_len: 200<br /> |
| client_secret | string | client_secret will only be updated if provided | string.max_len: 200<br /> |
| scopes | repeated string | - | repeated.max_items: 20<br /> repeated.items.string.min_len: 1<br /> repeated.items.string.max_len: 100<br /> |
| provider_options | zitadel.idp.v1.Options | - | |
### UpdateGoogleProviderResponse
| Field | Type | Description | Validation |
| ----- | ---- | ----------- | ----------- |
| details | zitadel.v1.ObjectDetails | - | |
### UpdateIAMMemberRequest

View File

@@ -9,6 +9,18 @@ title: zitadel/idp.proto
## Messages
### GoogleConfig
| Field | Type | Description | Validation |
| ----- | ---- | ----------- | ----------- |
| client_id | string | - | |
| scopes | repeated string | - | |
### IDP
@@ -201,6 +213,7 @@ title: zitadel/idp.proto
| ----- | ---- | ----------- | ----------- |
| options | Options | - | |
| [**oneof**](https://developers.google.com/protocol-buffers/docs/proto3#oneof) config.ldap | LDAPConfig | - | |
| [**oneof**](https://developers.google.com/protocol-buffers/docs/proto3#oneof) config.google | GoogleConfig | - | |

View File

@@ -3050,12 +3050,36 @@ Returns an identity provider of the organisation
GET: /idps/templates/{id}
### AddGoogleProvider
> **rpc** AddGoogleProvider([AddGoogleProviderRequest](#addgoogleproviderrequest))
[AddGoogleProviderResponse](#addgoogleproviderresponse)
Add a new Google identity provider in the organisation
POST: /idps/google
### UpdateGoogleProvider
> **rpc** UpdateGoogleProvider([UpdateGoogleProviderRequest](#updategoogleproviderrequest))
[UpdateGoogleProviderResponse](#updategoogleproviderresponse)
Change an existing Google identity provider in the organisation
PUT: /idps/google/{id}
### AddLDAPProvider
> **rpc** AddLDAPProvider([AddLDAPProviderRequest](#addldapproviderrequest))
[AddLDAPProviderResponse](#addldapproviderresponse)
Add a new ldap identity provider in the organisation
Add a new LDAP identity provider in the organisation
@@ -3067,7 +3091,7 @@ Add a new ldap identity provider in the organisation
> **rpc** UpdateLDAPProvider([UpdateLDAPProviderRequest](#updateldapproviderrequest))
[UpdateLDAPProviderResponse](#updateldapproviderresponse)
Change an existing ldap identity provider in the organisation
Change an existing LDAP identity provider in the organisation
@@ -3523,6 +3547,33 @@ This is an empty request
### AddGoogleProviderRequest
| Field | Type | Description | Validation |
| ----- | ---- | ----------- | ----------- |
| name | string | Google will be used as default, if no name is provided | string.max_len: 200<br /> |
| client_id | string | - | string.min_len: 1<br /> string.max_len: 200<br /> |
| client_secret | string | - | string.min_len: 1<br /> string.max_len: 200<br /> |
| scopes | repeated string | - | repeated.max_items: 20<br /> repeated.items.string.min_len: 1<br /> repeated.items.string.max_len: 100<br /> |
| provider_options | zitadel.idp.v1.Options | - | |
### AddGoogleProviderResponse
| Field | Type | Description | Validation |
| ----- | ---- | ----------- | ----------- |
| details | zitadel.v1.ObjectDetails | - | |
| id | string | - | |
### AddHumanUserRequest
@@ -8860,6 +8911,33 @@ This is an empty request
### UpdateGoogleProviderRequest
| Field | Type | Description | Validation |
| ----- | ---- | ----------- | ----------- |
| id | string | - | string.min_len: 1<br /> string.max_len: 200<br /> |
| name | string | - | string.max_len: 200<br /> |
| client_id | string | - | string.min_len: 1<br /> string.max_len: 200<br /> |
| client_secret | string | client_secret will only be updated if provided | string.max_len: 200<br /> |
| scopes | repeated string | - | repeated.max_items: 20<br /> repeated.items.string.min_len: 1<br /> repeated.items.string.max_len: 100<br /> |
| provider_options | zitadel.idp.v1.Options | - | |
### UpdateGoogleProviderResponse
| Field | Type | Description | Validation |
| ----- | ---- | ----------- | ----------- |
| details | zitadel.v1.ObjectDetails | - | |
### UpdateHumanEmailRequest