mirror of
https://github.com/zitadel/zitadel.git
synced 2025-06-01 07:18:22 +00:00
fix(API): remove deprecated organisation_id from user factor in session service (#7631)
This commit is contained in:
parent
2021bad0ad
commit
a83829b5ff
@ -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\"";
|
||||
@ -179,4 +175,4 @@ message UserAgent {
|
||||
enum SessionFieldName {
|
||||
SESSION_FIELD_NAME_UNSPECIFIED = 0;
|
||||
SESSION_FIELD_NAME_CREATION_DATE = 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user