added OAuth2 displayName and pkce options

This commit is contained in:
Gani Georgiev committed 2023-11-29 20:19:54 +02:00
1 parent 995733000f
commit b283ee2263
65 files changed
+421 -226

No files matched your search

+3 -1
View File
@@ -21,7 +21,9 @@ type OIDC struct {
// NewOIDCProvider creates new OpenID Connect (OIDC) provider instance with some defaults.
func NewOIDCProvider() *OIDC {
return &OIDC{&baseProvider{
ctx: context.Background(),
ctx: context.Background(),
displayName: "OIDC",
pkce: true,
scopes: []string{
"openid", // minimal requirement to return the id
"email",