s12v / go-jwks Goto Github PK
View Code? Open in Web Editor NEWA Go library to retrieve RSA public keys from a JWKS (JSON Web Key Set) endpoint
License: MIT License
A Go library to retrieve RSA public keys from a JWKS (JSON Web Key Set) endpoint
License: MIT License
Instead of hard coding log.Printf("unable to refresh key: %v", err)
it would be nice if you either A) allowed disabling this log output or B) allowed specifying a custom logger using an interface.
I'm quite new to Go and I have some issues with module dependencies in my project. While trying to figure out what's the problem I found out that in the go.mod
of the go-jwks
repository there are two (to me) suspect lines:
require(
// ...
github.com/square/go-jose v2.6.0+incompatible
// ...
gopkg.in/square/go-jose.v2 v2.3.1 // indirect
)
They are targeting the same module, but with different versions and on different package registries (github.com
and gopkg.in
). Furthermore (as far as I can see) the gopkg.in/square/go-jose.v2
is never user inside the code of the repository.
Is this intentional? Cause I think that this could be the problem that is breaking my code.
https://github.com/square/go-jose is now archived go-jwks should probably now use go-jose/go-jose
Remove logger.Printf("Fetching JWKS from %s", s.jwksUri)
in source.go
This log is being printed as an error log in datadog. While this is not an error.
By the time sem
is released the context may have been done, if is ok to use context.Background()
I'll be happy to open a PR.
Lines 63 to 68 in f5cc55a
seeing this message in production prompted me to come here and create this issue:
unable to refresh key: Get "<the jwks source url>": context canceled
What is the timeout for the default client? Is the default one for net/http
?
Is it possible to change it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.