mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-19 22:37:35 +00:00
62b654ea18
* feat: iam members in admin api * feat: add error id in translate error * fix: resolve merge conflicts
107 lines
2.7 KiB
Go
107 lines
2.7 KiB
Go
// Code generated by protoc-gen-authmethod. DO NOT EDIT.
|
|
|
|
package grpc
|
|
|
|
import (
|
|
"google.golang.org/grpc"
|
|
|
|
utils_auth "github.com/caos/zitadel/internal/api/auth"
|
|
"github.com/caos/zitadel/internal/api/grpc/server/middleware"
|
|
)
|
|
|
|
/**
|
|
* AdminService
|
|
*/
|
|
|
|
var AdminService_AuthMethods = utils_auth.MethodMapping{
|
|
|
|
"/caos.zitadel.admin.api.v1.AdminService/IsOrgUnique": utils_auth.Option{
|
|
Permission: "iam.read",
|
|
CheckParam: "",
|
|
},
|
|
|
|
"/caos.zitadel.admin.api.v1.AdminService/GetOrgByID": utils_auth.Option{
|
|
Permission: "iam.read",
|
|
CheckParam: "",
|
|
},
|
|
|
|
"/caos.zitadel.admin.api.v1.AdminService/SearchOrgs": utils_auth.Option{
|
|
Permission: "iam.read",
|
|
CheckParam: "",
|
|
},
|
|
|
|
"/caos.zitadel.admin.api.v1.AdminService/SetUpOrg": utils_auth.Option{
|
|
Permission: "iam.write",
|
|
CheckParam: "",
|
|
},
|
|
|
|
"/caos.zitadel.admin.api.v1.AdminService/GetOrgIamPolicy": utils_auth.Option{
|
|
Permission: "iam.policy.read",
|
|
CheckParam: "",
|
|
},
|
|
|
|
"/caos.zitadel.admin.api.v1.AdminService/CreateOrgIamPolicy": utils_auth.Option{
|
|
Permission: "iam.policy.write",
|
|
CheckParam: "",
|
|
},
|
|
|
|
"/caos.zitadel.admin.api.v1.AdminService/UpdateOrgIamPolicy": utils_auth.Option{
|
|
Permission: "iam.policy.write",
|
|
CheckParam: "",
|
|
},
|
|
|
|
"/caos.zitadel.admin.api.v1.AdminService/DeleteOrgIamPolicy": utils_auth.Option{
|
|
Permission: "iam.policy.delete",
|
|
CheckParam: "",
|
|
},
|
|
|
|
"/caos.zitadel.admin.api.v1.AdminService/GetIamMemberRoles": utils_auth.Option{
|
|
Permission: "iam.member.read",
|
|
CheckParam: "",
|
|
},
|
|
|
|
"/caos.zitadel.admin.api.v1.AdminService/AddIamMember": utils_auth.Option{
|
|
Permission: "iam.member.write",
|
|
CheckParam: "",
|
|
},
|
|
|
|
"/caos.zitadel.admin.api.v1.AdminService/ChangeIamMember": utils_auth.Option{
|
|
Permission: "iam.member.write",
|
|
CheckParam: "",
|
|
},
|
|
|
|
"/caos.zitadel.admin.api.v1.AdminService/RemoveIamMember": utils_auth.Option{
|
|
Permission: "iam.member.delete",
|
|
CheckParam: "",
|
|
},
|
|
|
|
"/caos.zitadel.admin.api.v1.AdminService/SearchIamMembers": utils_auth.Option{
|
|
Permission: "iam.member.read",
|
|
CheckParam: "",
|
|
},
|
|
|
|
"/caos.zitadel.admin.api.v1.AdminService/GetViews": utils_auth.Option{
|
|
Permission: "iam.read",
|
|
CheckParam: "",
|
|
},
|
|
|
|
"/caos.zitadel.admin.api.v1.AdminService/ClearView": utils_auth.Option{
|
|
Permission: "iam.write",
|
|
CheckParam: "",
|
|
},
|
|
|
|
"/caos.zitadel.admin.api.v1.AdminService/GetFailedEvents": utils_auth.Option{
|
|
Permission: "iam.read",
|
|
CheckParam: "",
|
|
},
|
|
|
|
"/caos.zitadel.admin.api.v1.AdminService/RemoveFailedEvent": utils_auth.Option{
|
|
Permission: "iam.write",
|
|
CheckParam: "",
|
|
},
|
|
}
|
|
|
|
func AdminService_Authorization_Interceptor(verifier utils_auth.TokenVerifier, authConf *utils_auth.Config) grpc.UnaryServerInterceptor {
|
|
return middleware.AuthorizationInterceptor(verifier, authConf, AdminService_AuthMethods)
|
|
}
|