Skip to content

Commit 3dfe47b

Browse files
committed
Add Endpoint() api call to oidc.Provider
1 parent b85f9a7 commit 3dfe47b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

oidc/provider.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,3 +826,9 @@ func unmarshalRespJSON(r *http.Response, body []byte, v interface{}) error {
826826
}
827827
return fmt.Errorf("%s: expected Content-Type = application/json, got %q and could not unmarshal it as JSON: %w", op, ct, err)
828828
}
829+
830+
// Endpoint returns the oauth2 Endpoint information that the go-oidc
831+
// provider already knows about from its probe of the Discovery URL
832+
func (p *Provider) Endpoint() oauth2.Endpoint {
833+
return p.provider.Endpoint()
834+
}

0 commit comments

Comments
 (0)