mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-23 05:18:46 +00:00
# Which Problems Are Solved As part of our efforts to simplify the structure and versions of our APIs, were moving all existing v2beta endpoints to v2 and deprecate them. They will be removed in Zitadel V5. # How the Problems Are Solved - This PR moves app v2beta service and its endpoints to a corresponding to application v2 version. The v2beta service and endpoints are deprecated. - The comments and have been improved and, where not already done, moved from swagger annotations to proto. - All required fields have been marked with (google.api.field_behavior) = REQUIRED and validation rules have been added where missing. - Name ID of the application always `application_id`, previously was also `id` and `app_id`. - Get rid of all `app` abbreviations and name it `application` including the service name, `AppState` -> `ApplicationState` and `AppSorting` -> `ApplicationSorting` - Updated `CreateApplicationRequest`: - renamed `creation_request_type` to `application_type` and all its options to `XY_configuration` instead of `XY_request` - `RegenerateClientSecret` - renamed method to `GenerateClientSecret` - removed `app_type` from request - `ListApplicationRequest`: - removed required `project_id` and provided it as a filter - Type `ApplicationNameQuery` has been renamed to `ApplicationNameFilter` as its usage in the request - Renamed all fields and types from `config` to `configuration` - Updated `DeleteApplicationKeyRequest` - removed `organization_id` - Updated `GetApplicationKeyRequest`: - removed `project_id`, `application_id` and `organization_id`` - Updated `ListApplicationKeysRequest`: - removed oneOf `resource_id` and moved the options into filters - Name ID of the application key always `key_id`. - removed unnecessary package prefixed (`zitadel.application.v2`) - formatted using `buf` # Additional Changes None # Additional Context - part of https://github.com/zitadel/zitadel/issues/10772 - requires backport to v4.x
22 lines
716 B
Protocol Buffer
22 lines
716 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package zitadel.application.v2;
|
|
|
|
import "protoc-gen-openapiv2/options/annotations.proto";
|
|
|
|
option go_package = "github.com/zitadel/zitadel/pkg/grpc/application/v2;application";
|
|
|
|
enum APIAuthMethodType {
|
|
API_AUTH_METHOD_TYPE_BASIC = 0;
|
|
API_AUTH_METHOD_TYPE_PRIVATE_KEY_JWT = 1;
|
|
}
|
|
|
|
message APIConfiguration {
|
|
// The unique OAuth2 client_id used for authentication of the API,
|
|
// e.g. at the introspection endpoint.
|
|
string client_id = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {example: "\"69629023906488334@ZITADEL\""}];
|
|
|
|
// The authentication method type used by the API to authenticate at the introspection endpoint.
|
|
APIAuthMethodType auth_method_type = 2;
|
|
}
|