2020-03-23 16:56:02 +01:00
|
|
|
// 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"
|
2020-03-25 10:54:45 +01:00
|
|
|
"github.com/caos/zitadel/internal/api/grpc/server/middleware"
|
2020-03-23 16:56:02 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
/**
|
|
|
|
* AdminService
|
|
|
|
*/
|
|
|
|
|
|
|
|
var AdminService_AuthMethods = utils_auth.MethodMapping{
|
|
|
|
|
2020-06-09 09:22:37 +02:00
|
|
|
"/caos.zitadel.admin.api.v1.AdminService/IsOrgUnique": utils_auth.Option{
|
2020-03-23 16:56:02 +01:00
|
|
|
Permission: "iam.read",
|
|
|
|
CheckParam: "",
|
|
|
|
},
|
|
|
|
|
2020-06-09 09:22:37 +02:00
|
|
|
"/caos.zitadel.admin.api.v1.AdminService/GetOrgByID": utils_auth.Option{
|
2020-03-23 16:56:02 +01:00
|
|
|
Permission: "iam.read",
|
|
|
|
CheckParam: "",
|
|
|
|
},
|
|
|
|
|
2020-06-09 09:22:37 +02:00
|
|
|
"/caos.zitadel.admin.api.v1.AdminService/SearchOrgs": utils_auth.Option{
|
2020-03-23 16:56:02 +01:00
|
|
|
Permission: "iam.read",
|
|
|
|
CheckParam: "",
|
|
|
|
},
|
|
|
|
|
2020-06-09 09:22:37 +02:00
|
|
|
"/caos.zitadel.admin.api.v1.AdminService/SetUpOrg": utils_auth.Option{
|
2020-03-23 16:56:02 +01:00
|
|
|
Permission: "iam.write",
|
|
|
|
CheckParam: "",
|
|
|
|
},
|
2020-06-16 11:40:18 +02:00
|
|
|
|
|
|
|
"/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: "",
|
|
|
|
},
|
2020-03-23 16:56:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func AdminService_Authorization_Interceptor(verifier utils_auth.TokenVerifier, authConf *utils_auth.Config) grpc.UnaryServerInterceptor {
|
2020-03-25 10:54:45 +01:00
|
|
|
return middleware.AuthorizationInterceptor(verifier, authConf, AdminService_AuthMethods)
|
2020-03-23 16:56:02 +01:00
|
|
|
}
|