added option to retrieve the OIDC user info from the id_token payload

This commit is contained in:
Gani Georgiev committed 2024-10-12 10:16:01 +03:00
1 parent 95d5ee40b0
commit 3c87df9e55
40 files changed
+465 -218

No files matched your search

+7
View File
@@ -92,6 +92,13 @@ type Provider interface {
// SetUserInfoURL sets the provider's UserInfoURL.
SetUserInfoURL(url string)
// Extra returns a shallow copy of any custom config data
// that the provider may be need.
Extra() map[string]any
// SetExtra updates the provider's custom config data.
SetExtra(data map[string]any)
// Client returns an http client using the provided token.
Client(token *oauth2.Token) *http.Client