Skip to content

Commit

Permalink
Expose ValidateOptions in HTTPClientStorageOptions (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmo314 authored Sep 18, 2024
1 parent 0a74b02 commit 9a9c935
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ type HTTPClientStorageOptions struct {
//
// This defaults to NewMemoryStorage().
Storage Storage

// ValidateOptions are the options to use when validating the JWKs.
ValidateOptions JWKValidateOptions
}

type httpStorage struct {
Expand Down Expand Up @@ -263,7 +266,7 @@ func NewStorageFromHTTP(u *url.URL, options HTTPClientStorageOptions) (Storage,
marshalOptions := JWKMarshalOptions{
Private: true,
}
jwk, err := NewJWKFromMarshal(marshal, marshalOptions, JWKValidateOptions{})
jwk, err := NewJWKFromMarshal(marshal, marshalOptions, options.ValidateOptions)
if err != nil {
return fmt.Errorf("failed to create JWK from JWK Marshal: %w", err)
}
Expand Down

0 comments on commit 9a9c935

Please sign in to comment.