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,
|
Id: factor.UserID,
|
||||||
LoginName: factor.LoginName,
|
LoginName: factor.LoginName,
|
||||||
DisplayName: factor.DisplayName,
|
DisplayName: factor.DisplayName,
|
||||||
OrganisationId: factor.ResourceOwner,
|
|
||||||
OrganizationId: factor.ResourceOwner,
|
OrganizationId: factor.ResourceOwner,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -157,7 +157,6 @@ func Test_sessionsToPb(t *testing.T) {
|
|||||||
Id: "345",
|
Id: "345",
|
||||||
LoginName: "donald",
|
LoginName: "donald",
|
||||||
DisplayName: "donald duck",
|
DisplayName: "donald duck",
|
||||||
OrganisationId: "org1",
|
|
||||||
OrganizationId: "org1",
|
OrganizationId: "org1",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -174,7 +173,6 @@ func Test_sessionsToPb(t *testing.T) {
|
|||||||
Id: "345",
|
Id: "345",
|
||||||
LoginName: "donald",
|
LoginName: "donald",
|
||||||
DisplayName: "donald duck",
|
DisplayName: "donald duck",
|
||||||
OrganisationId: "org1",
|
|
||||||
OrganizationId: "org1",
|
OrganizationId: "org1",
|
||||||
},
|
},
|
||||||
Password: &session.PasswordFactor{
|
Password: &session.PasswordFactor{
|
||||||
@@ -194,7 +192,6 @@ func Test_sessionsToPb(t *testing.T) {
|
|||||||
Id: "345",
|
Id: "345",
|
||||||
LoginName: "donald",
|
LoginName: "donald",
|
||||||
DisplayName: "donald duck",
|
DisplayName: "donald duck",
|
||||||
OrganisationId: "org1",
|
|
||||||
OrganizationId: "org1",
|
OrganizationId: "org1",
|
||||||
},
|
},
|
||||||
WebAuthN: &session.WebAuthNFactor{
|
WebAuthN: &session.WebAuthNFactor{
|
||||||
@@ -215,7 +212,6 @@ func Test_sessionsToPb(t *testing.T) {
|
|||||||
Id: "345",
|
Id: "345",
|
||||||
LoginName: "donald",
|
LoginName: "donald",
|
||||||
DisplayName: "donald duck",
|
DisplayName: "donald duck",
|
||||||
OrganisationId: "org1",
|
|
||||||
OrganizationId: "org1",
|
OrganizationId: "org1",
|
||||||
},
|
},
|
||||||
Totp: &session.TOTPFactor{
|
Totp: &session.TOTPFactor{
|
||||||
|
@@ -59,6 +59,8 @@ message Factors {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message UserFactor {
|
message UserFactor {
|
||||||
|
reserved 5;
|
||||||
|
reserved "organisation_id";
|
||||||
google.protobuf.Timestamp verified_at = 1 [
|
google.protobuf.Timestamp verified_at = 1 [
|
||||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||||
description: "\"time when the user was last checked\"";
|
description: "\"time when the user was last checked\"";
|
||||||
@@ -79,12 +81,6 @@ message UserFactor {
|
|||||||
description: "\"display name of the checked user\"";
|
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 [
|
string organization_id = 6 [
|
||||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||||
description: "\"organization id of the checked user\"";
|
description: "\"organization id of the checked user\"";
|
||||||
@@ -179,4 +175,4 @@ message UserAgent {
|
|||||||
enum SessionFieldName {
|
enum SessionFieldName {
|
||||||
SESSION_FIELD_NAME_UNSPECIFIED = 0;
|
SESSION_FIELD_NAME_UNSPECIFIED = 0;
|
||||||
SESSION_FIELD_NAME_CREATION_DATE = 1;
|
SESSION_FIELD_NAME_CREATION_DATE = 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user