crash.software
Projects
Pull Requests
Issues
Builds
dolt
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
dolt
Files
🤬
Sign In
9becfc9d
ROOT
/
go
/
libraries
/
utils
/
jwtauth
/
jwks.go
Search
History
283 lines
|
ISO-8859-1
|
6 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
cachedJWKS
value
:
*jose.JSONWebKeySet
expires
:
time.Time
mutex
:
*sync.Mutex
newCachedJWKS
()
:
*cachedJWKS
fetchedJWKS
URL
:
string
HTTPTransport
:
*http.Transport
cache
:
*cachedJWKS
newJWKS
(provider JWTProvider)
:
(*fetchedJWKS, error)
newFetchedJWKS
(url string)
:
(*fetchedJWKS, error)
MultiJWKS
client
:
*http.Client
wg
:
sync.WaitGroup
stop
:
chan struct{}
refresh
:
[]chan *sync.WaitGroup
urls
:
[]string
sets
:
[]jose.JSONWebKeySet
agg
:
jose.JSONWebKeySet
mu
:
sync.RWMutex
lgr
:
*logrus.Entry
stopped
:
bool
NewMultiJWKS
(lgr *logrus.Entry, urls []string, client *http.Client)
:
*MultiJWKS
*fetchedJWKS
needsRefresh
()
:
bool
GetJWKS
()
:
(*jose.JSONWebKeySet, error)
GetKey
(kid string)
:
([]jose.JSONWebKey, error)
*MultiJWKS
Run
()
GracefulStop
()
needsRefresh
()
:
*sync.WaitGroup
store
(i int, jwks jose.JSONWebKeySet)
GetKey
(kid string)
:
([]jose.JSONWebKey, error)
fetch
(i int)
:
error
thread
(i int)
All occurrences
Please wait...
Page is in error, reload to recover