mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-03 09:28:55 +00:00
feat: register org process (#558)
* feat: register new organisation * feat: create org request in management * fix: tests * Update internal/ui/login/static/i18n/en.yaml Co-authored-by: Livio Amstutz <[email protected]> * Update internal/ui/login/static/i18n/de.yaml Co-authored-by: Livio Amstutz <[email protected]> * Update internal/ui/login/static/templates/register_org.html Co-authored-by: Livio Amstutz <[email protected]> * Update internal/ui/login/handler/register_org_handler.go Co-authored-by: Livio Amstutz <[email protected]> * Update internal/ui/login/handler/register_org_handler.go Co-authored-by: Livio Amstutz <[email protected]> * fix: remove autocomplete * fix: regenerate proto Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
@@ -523,6 +523,17 @@ service ManagementService {
|
||||
};
|
||||
}
|
||||
|
||||
rpc CreateOrg(OrgCreateRequest) returns (Org) {
|
||||
option (google.api.http) = {
|
||||
post: "/orgs"
|
||||
body: "*"
|
||||
};
|
||||
|
||||
option (caos.zitadel.utils.v1.auth_option) = {
|
||||
permission: "org.create"
|
||||
};
|
||||
}
|
||||
|
||||
rpc GetMyOrg(google.protobuf.Empty) returns (OrgView) {
|
||||
option (google.api.http) = {
|
||||
get: "/orgs/me"
|
||||
@@ -1862,6 +1873,10 @@ message OrgID {
|
||||
string id = 1;
|
||||
}
|
||||
|
||||
message OrgCreateRequest {
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
message Org {
|
||||
string id = 1;
|
||||
OrgState state = 2;
|
||||
|
||||
Reference in New Issue
Block a user