mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 20:37:30 +00:00
fix(API): remove deprecated organisation_id from user factor in session service (#7631)
This commit is contained in:
@@ -237,7 +237,6 @@ func userFactorToPb(factor query.SessionUserFactor) *session.UserFactor {
|
||||
Id: factor.UserID,
|
||||
LoginName: factor.LoginName,
|
||||
DisplayName: factor.DisplayName,
|
||||
OrganisationId: factor.ResourceOwner,
|
||||
OrganizationId: factor.ResourceOwner,
|
||||
}
|
||||
}
|
||||
|
@@ -157,7 +157,6 @@ func Test_sessionsToPb(t *testing.T) {
|
||||
Id: "345",
|
||||
LoginName: "donald",
|
||||
DisplayName: "donald duck",
|
||||
OrganisationId: "org1",
|
||||
OrganizationId: "org1",
|
||||
},
|
||||
},
|
||||
@@ -174,7 +173,6 @@ func Test_sessionsToPb(t *testing.T) {
|
||||
Id: "345",
|
||||
LoginName: "donald",
|
||||
DisplayName: "donald duck",
|
||||
OrganisationId: "org1",
|
||||
OrganizationId: "org1",
|
||||
},
|
||||
Password: &session.PasswordFactor{
|
||||
@@ -194,7 +192,6 @@ func Test_sessionsToPb(t *testing.T) {
|
||||
Id: "345",
|
||||
LoginName: "donald",
|
||||
DisplayName: "donald duck",
|
||||
OrganisationId: "org1",
|
||||
OrganizationId: "org1",
|
||||
},
|
||||
WebAuthN: &session.WebAuthNFactor{
|
||||
@@ -215,7 +212,6 @@ func Test_sessionsToPb(t *testing.T) {
|
||||
Id: "345",
|
||||
LoginName: "donald",
|
||||
DisplayName: "donald duck",
|
||||
OrganisationId: "org1",
|
||||
OrganizationId: "org1",
|
||||
},
|
||||
Totp: &session.TOTPFactor{
|
||||
|
@@ -59,6 +59,8 @@ message Factors {
|
||||
}
|
||||
|
||||
message UserFactor {
|
||||
reserved 5;
|
||||
reserved "organisation_id";
|
||||
google.protobuf.Timestamp verified_at = 1 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
description: "\"time when the user was last checked\"";
|
||||
@@ -79,12 +81,6 @@ message UserFactor {
|
||||
description: "\"display name of the checked user\"";
|
||||
}
|
||||
];
|
||||
// deprecated: use organization_id, will be remove before GA (https://github.com/zitadel/zitadel/issues/6718)
|
||||
string organisation_id = 5 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
description: "\"organization id of the checked user; deprecated: use organization_id\"";
|
||||
}
|
||||
];
|
||||
string organization_id = 6 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
description: "\"organization id of the checked user\"";
|
||||
|
Reference in New Issue
Block a user