mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 19:17:32 +00:00
fix: remove manipulate metadata from authapi (#2303)
This commit is contained in:
@@ -97,30 +97,6 @@ service AuthService {
|
||||
};
|
||||
}
|
||||
|
||||
// Sets a user metadata by key to the authorized user
|
||||
rpc SetMyMetadata(SetMyMetadataRequest) returns (SetMyMetadataResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/users/me/metadata/{key}"
|
||||
body: "*"
|
||||
};
|
||||
|
||||
option (zitadel.v1.auth_option) = {
|
||||
permission: "authenticated"
|
||||
};
|
||||
}
|
||||
|
||||
// Set a list of user metadata to the authorized user
|
||||
rpc BulkSetMyMetadata(BulkSetMyMetadataRequest) returns (BulkSetMyMetadataResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/users/me/metadata/_bulk"
|
||||
body: "*"
|
||||
};
|
||||
|
||||
option (zitadel.v1.auth_option) = {
|
||||
permission: "authenticated"
|
||||
};
|
||||
}
|
||||
|
||||
// Returns the user metadata of the authorized user
|
||||
rpc ListMyMetadata(ListMyMetadataRequest) returns (ListMyMetadataResponse) {
|
||||
option (google.api.http) = {
|
||||
@@ -144,29 +120,6 @@ service AuthService {
|
||||
};
|
||||
}
|
||||
|
||||
// Removes a user metadata by key to the authorized user
|
||||
rpc RemoveMyMetadata(RemoveMyMetadataRequest) returns (RemoveMyMetadataResponse) {
|
||||
option (google.api.http) = {
|
||||
delete: "/users/me/metadata/{key}"
|
||||
};
|
||||
|
||||
option (zitadel.v1.auth_option) = {
|
||||
permission: "authenticated"
|
||||
};
|
||||
}
|
||||
|
||||
// Set a list of user metadata to the authorized user
|
||||
rpc BulkRemoveMyMetadata(BulkRemoveMyMetadataRequest) returns (BulkRemoveMyMetadataResponse) {
|
||||
option (google.api.http) = {
|
||||
delete: "/users/me/metadata/_bulk"
|
||||
body: "*"
|
||||
};
|
||||
|
||||
option (zitadel.v1.auth_option) = {
|
||||
permission: "authenticated"
|
||||
};
|
||||
}
|
||||
|
||||
// Returns the refresh tokens of the authorized user
|
||||
rpc ListMyRefreshTokens(ListMyRefreshTokensRequest) returns (ListMyRefreshTokensResponse) {
|
||||
option (google.api.http) = {
|
||||
|
Reference in New Issue
Block a user