Versions in this module Expand all Collapse all v0 v0.1.12 Dec 12, 2024 v0.1.11 Dec 5, 2024 v0.1.10 Sep 2, 2024 v0.1.9 Apr 4, 2024 v0.1.8 Dec 21, 2023 v0.1.7 Nov 28, 2023 v0.1.6 Nov 13, 2023 v0.1.5 Oct 9, 2023 v0.1.4 Oct 8, 2023 v0.1.3 Aug 22, 2023 v0.1.2 Aug 22, 2023 v0.1.1 Aug 14, 2023 Changes in this version + const ROLE_ADMINISTRATOR + const ROLE_SYSTEM + const ROLE_USER + func ClaimFullName(r *http.Request) string + func ClaimGetRoles(r *http.Request) []string + func ClaimGetRolesFromContext(ctx context.Context) []string + func ClaimIsInRole(ctx context.Context, role string) bool + func ClaimUserName(r *http.Request) string + func ClaimUserNameFromContext(ctx context.Context) string + func Init(cfg *utils.Config) + func JwtMSFTGetPemCert(token *jwt.Token) (string, error) + func JwtRoleCheckerADMINISTRATOR(next http.Handler) http.Handler + func JwtRoleCheckerContextADMINISTRATOR(ctx context.Context) (err error) + func JwtRoleCheckerContextUSER(ctx context.Context) (err error) + func JwtRoleCheckerSYSTEM(next http.Handler) http.Handler + func JwtRoleCheckerUSER(next http.Handler) http.Handler + type CustomClaimsShieldoo struct + Name string + PreferredName string + Provider string + Roles []string + Tenant string + UniqueName string + Upn string + func ClaimGetCustom(r *http.Request) *CustomClaimsShieldoo + func ClaimGetCustomFromContext(ctx context.Context) *CustomClaimsShieldoo + func (c *CustomClaimsShieldoo) Validate(ctx context.Context) error + type JSONWebKeys struct + E string + Kid string + Kty string + N string + Use string + X5c []string + type Jwks struct + Keys []JSONWebKeys v0.1.0 Jul 26, 2023