Documentation
¶
Index ¶
- Constants
- Variables
- func Authenticate(v JWSValidator, ctx context.Context, input *openapi3filter.AuthenticationInput, ...) error
- func CreateMiddleware(v JWSValidator, swagger *openapi3.T, audience string, issuer string) ([]echo.MiddlewareFunc, error)
- func GetJWSFromRequest(req *http.Request) (string, error)
- func NewAuthenticator(v JWSValidator, audience string, issuer string) openapi3filter.AuthenticationFunc
- type InstanceAuthenticator
- type JWSValidator
Constants ¶
View Source
const KeyID = `key-id`
View Source
const PermissionsClaim = "perm"
View Source
const PrivateKey = `` /* 226-byte string literal not displayed */
Variables ¶
Functions ¶
func Authenticate ¶
func Authenticate(v JWSValidator, ctx context.Context, input *openapi3filter.AuthenticationInput, audience string, issuer string) error
func CreateMiddleware ¶
func CreateMiddleware(v JWSValidator, swagger *openapi3.T, audience string, issuer string) ([]echo.MiddlewareFunc, error)
func NewAuthenticator ¶
func NewAuthenticator(v JWSValidator, audience string, issuer string) openapi3filter.AuthenticationFunc
Types ¶
type InstanceAuthenticator ¶
type InstanceAuthenticator struct {
PrivateKey *ecdsa.PrivateKey
KeySet jwk.Set
}
func NewInstanceAuthenticator ¶
func NewInstanceAuthenticator() (*InstanceAuthenticator, error)
func (*InstanceAuthenticator) ValidateJWS ¶
Click to show internal directories.
Click to hide internal directories.