mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-06-06 22:49:43 +00:00
12 lines
425 B
Go
12 lines
425 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()
|
|
defer t.metadataMu.RUnlock()
|
|
return t.authURL != ""
|
|
}
|