Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CorsHeaders ¶
Types ¶
type CustomClaims ¶
type JSONWebKeys ¶
type Jwks ¶
type Jwks struct {
Keys []JSONWebKeys `json:"keys"`
}
type SilverGorilla ¶
type SilverGorilla struct { IssStr string // issuer string for keycloak this would look like: http://{server}/auth/realms/{realm} CertURL string // certificates, for example with KeyCloak this would be /auth/realms/{realm}/protocol/openid-connect/certs Jwks Jwks // JWT Keys }
func (SilverGorilla) GetJWKs ¶
func (sg SilverGorilla) GetJWKs() error
GetJWKs gets the JWKs from the well known Cert address and populates the sg type.
func (SilverGorilla) SilverGorillaMiddlewareHandler ¶
func (sg SilverGorilla) SilverGorillaMiddlewareHandler(h http.Handler) http.Handler
func (SilverGorilla) ValidationKeyGetter ¶
func (sg SilverGorilla) ValidationKeyGetter(token *jwt.Token) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.