zitadel/pkg/admin/api/grpc/admin.pb.authoptions.go

42 lines
1017 B
Go
Raw Normal View History

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