Skip to content

Commit

Permalink
Merge pull request #89 from MicahParks/comment_correction
Browse files Browse the repository at this point in the history
Correct comment and error text
  • Loading branch information
MicahParks authored May 18, 2023
2 parents 770093f + 2730280 commit a65b424
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions multiple.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import (
)

// ErrMultipleJWKSSize is returned when the number of JWKS given are not enough to make a MultipleJWKS.
var ErrMultipleJWKSSize = errors.New("multiple JWKS must have two or more remote JWK Set resources")
var ErrMultipleJWKSSize = errors.New("multiple JWKS must have one or more remote JWK Set resources")

// MultipleJWKS manages multiple JWKS and has a field for jwt.Keyfunc.
type MultipleJWKS struct {
keySelector func(multiJWKS *MultipleJWKS, token *jwt.Token) (key interface{}, err error)
sets map[string]*JWKS // No lock is required because this map is read-only after initialization.
}

// GetMultiple creates a new MultipleJWKS. A map of length two or more JWKS URLs to Options is required.
// GetMultiple creates a new MultipleJWKS. A map of length one or more JWKS URLs to Options is required.
//
// Be careful when choosing Options for each JWKS in the map. If RefreshUnknownKID is set to true for all JWKS in the
// map then many refresh requests would take place each time a JWT is processed, this should be rate limited by
Expand Down

0 comments on commit a65b424

Please sign in to comment.