mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:27:42 +00:00
fix: provide more information in the retrieve idp information (#5927)
* fix: provide more information in the retrieve idp information * change raw_information to proto struct * change unmarshal * improve description
This commit is contained in:
@@ -5,14 +5,41 @@ package zitadel.user.v2alpha;
|
||||
option go_package = "github.com/zitadel/zitadel/pkg/grpc/user/v2alpha;user";
|
||||
|
||||
import "google/api/field_behavior.proto";
|
||||
import "google/protobuf/struct.proto";
|
||||
import "protoc-gen-openapiv2/options/annotations.proto";
|
||||
import "validate/validate.proto";
|
||||
|
||||
message IDPInformation{
|
||||
oneof access{
|
||||
IDPOAuthAccessInformation oauth = 1;
|
||||
IDPOAuthAccessInformation oauth = 1 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
description: "OAuth/OIDC access (and id_token) returned by the identity provider"
|
||||
}
|
||||
];
|
||||
}
|
||||
bytes idp_information = 2;
|
||||
string idp_id = 2 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
description: "ID of the identity provider"
|
||||
example: "\"d654e6ba-70a3-48ef-a95d-37c8d8a7901a\"";
|
||||
}
|
||||
];
|
||||
string user_id = 3 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
description: "ID of the user of the identity provider"
|
||||
example: "\"6516849804890468048461403518\"";
|
||||
}
|
||||
];
|
||||
string user_name = 4 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
description: "username of the user of the identity provider"
|
||||
example: "\"user@external.com\"";
|
||||
}
|
||||
];
|
||||
google.protobuf.Struct raw_information = 5 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
description: "complete information returned by the identity provider"
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message IDPOAuthAccessInformation{
|
||||
@@ -30,22 +57,22 @@ message IDPLink {
|
||||
example: "\"d654e6ba-70a3-48ef-a95d-37c8d8a7901a\"";
|
||||
}
|
||||
];
|
||||
string idp_external_id = 2 [
|
||||
string user_id = 2 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
description: "ID of user of the identity provider"
|
||||
description: "ID of the user of the identity provider"
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
example: "\"d654e6ba-70a3-48ef-a95d-37c8d8a7901a\"";
|
||||
example: "\"6516849804890468048461403518\"";
|
||||
}
|
||||
];
|
||||
string display_name = 3 [
|
||||
string user_name = 3 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
description: "Display name of user of the identity provider"
|
||||
description: "username of the user of the identity provider"
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
example: "\"Firstname Lastname\"";
|
||||
example: "\"user@external.com\"";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user