Skip to content

Commit

Permalink
Update jwkset and README.md (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
MicahParks authored Jan 10, 2024
1 parent 8f59e07 commit d272c92
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ JWK Set via an HTTPS endpoint. This package has the ability to consume that JWK
[`jwt.Keyfunc`](https://pkg.go.dev/github.com/golang-jwt/jwt/v5#Keyfunc). It is important that a JWK Set endpoint is
using HTTPS to ensure the keys are from the correct trusted source.

This repository only depends on:

* [github.com/golang-jwt/jwt/v5](https://github.com/golang-jwt/jwt)
* [github.com/MicahParks/jwkset](https://github.com/MicahParks/jwkset)

## Basic usage

For complete examples, please see the `examples` directory.
Expand Down Expand Up @@ -73,6 +68,7 @@ the `.Storage()` method. Using the [github.com/MicahParks/jwkset](https://github
provides the below features, and more:

* An HTTP client that automatically updates one or more remote JWK Set resources.
* An automatic refresh of remote HTTP resources when an unknown key ID (`kid`) is encountered.
* X.509 URIs or embedded [certificate chains](https://pkg.go.dev/crypto/x509#Certificate), when a JWK contains them.
* Support for private asymmetric keys.
* Specified key operations and usage.
Expand Down
7 changes: 5 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ module github.com/MicahParks/keyfunc/v3

go 1.21.5

require github.com/golang-jwt/jwt/v5 v5.2.0
require (
github.com/MicahParks/jwkset v0.5.6
github.com/golang-jwt/jwt/v5 v5.2.0
)

require github.com/MicahParks/jwkset v0.5.5
require golang.org/x/time v0.5.0 // indirect
6 changes: 4 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
github.com/MicahParks/jwkset v0.5.5 h1:1Pob9XuVJXoiRJn8kYtpwiYfi0hE35H5YpTq4UZLrPA=
github.com/MicahParks/jwkset v0.5.5/go.mod h1:fOx7dCX+XgPDzcRbZzi9DMY3vyebWXmsz7XPqstr3ms=
github.com/MicahParks/jwkset v0.5.6 h1:j7DxnWgzNigqpPsplDug1MR2zCzUmi8wdyHhhq/wIk4=
github.com/MicahParks/jwkset v0.5.6/go.mod h1:6QApSQehWQGJUc1mPbUQ65YByW8IE2eXZeqFImpg4JA=
github.com/golang-jwt/jwt/v5 v5.2.0 h1:d/ix8ftRUorsN+5eMIlF4T6J8CAt9rch3My2winC1Jw=
github.com/golang-jwt/jwt/v5 v5.2.0/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk=
golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk=
golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=

0 comments on commit d272c92

Please sign in to comment.