mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-06-06 22:49:43 +00:00
13 lines
427 B
Go
13 lines
427 B
Go
package traefikoidc
|
|
|
|
// Ready reports whether the middleware has completed at least one successful
|
|
// OIDC provider metadata discovery. Used by external supervisors (e.g. the
|
|
// oidcgate /readyz endpoint) to gate traffic until the IdP discovery doc
|
|
// has been fetched and the authorization endpoint is known.
|
|
func (t *TraefikOidc) Ready() bool {
|
|
t.metadataMu.RLock()
|
|
u := t.authURL
|
|
t.metadataMu.RUnlock()
|
|
return u != ""
|
|
}
|