Add ability to look for the role in header.

This commit is contained in:
2023-10-10 19:48:56 +01:00
parent 2f87f40822
commit 51dfc8d9be
4 changed files with 37 additions and 28 deletions
+2 -1
View File
@@ -24,7 +24,8 @@ type config struct {
Client struct {
JWTUserClaimPath string
JWTRoleClaimPath string
JWTRoleRateLimit bool
RoleRateLimit bool
RoleFromHeader string
GQLClient *graphql.BaseClient
}