MCPcopy
hub / github.com/dosco/graphjin / JWTProvider

Interface JWTProvider

auth/provider/provider.go:47–52  ·  view source on GitHub ↗

JWTProvider is the interface to define providers for doing JWT authentication.

Source from the content-addressed store, hash-verified

45// JWTProvider is the interface to define providers for doing JWT
46// authentication.
47type JWTProvider interface {
48 KeyFunc() jwt.Keyfunc
49 VerifyAudience(jwt.MapClaims) bool
50 VerifyIssuer(jwt.MapClaims) bool
51 SetContextValues(context.Context, jwt.MapClaims) (context.Context, error)
52}
53
54// NewProvider creates a new JWT provider based on the config values
55func NewProvider(config JWTConfig) (JWTProvider, error) {

Callers 4

JwtHandlerFunction · 0.65
JwtHandlerFunction · 0.65
JwtHandlerFunction · 0.65
JwtHandlerFunction · 0.65

Implementers 4

FirebaseProviderauth/provider/firebase.go
JWKSProviderauth/provider/jwks.go
Auth0Providerauth/provider/auth0.go
GenericProviderauth/provider/generic.go

Calls

no outgoing calls

Tested by

no test coverage detected