mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 19:44:21 +00:00
42 lines
1010 B
Go
42 lines
1010 B
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"
|
||
|
utils_grpc "github.com/caos/zitadel/internal/api/grpc"
|
||
|
)
|
||
|
|
||
|
/**
|
||
|
* 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 {
|
||
|
return utils_grpc.AuthorizationInterceptor(verifier, authConf, AdminService_AuthMethods)
|
||
|
}
|