Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidateJwtFunc = validateJwt
Functions ¶
func ConfigHeaderNameDecodedJwt ¶
func ConfigHeaderNameDecodedJwt() string
func ConfigJwksUrl ¶
func ConfigJwksUrl() string
func GetAuthHeader ¶
func NewService ¶
Types ¶
type AccountGetterOidc ¶
type AccountGetterOidc struct{}
func (*AccountGetterOidc) GetAccount ¶
func (s *AccountGetterOidc) GetAccount(r *http.Request) (string, error)
GetRole retrieves the user role from jwt
type HasuraSaasClaims ¶
type JwtTokenWithClaims ¶
type JwtTokenWithClaims struct { *jwt.StandardClaims HasuraSaasNamespace HasuraSaasClaims `json:"hasura_saas_claims,omitempty"` }
type RoleGetterOidc ¶
type RoleGetterOidc struct{}
type UserGetterOidc ¶
type UserGetterOidc struct{}
Click to show internal directories.
Click to hide internal directories.