diff --git a/authority/provisioner/oidc.go b/authority/provisioner/oidc.go index 06823e2fc..69b5be76e 100644 --- a/authority/provisioner/oidc.go +++ b/authority/provisioner/oidc.go @@ -93,6 +93,8 @@ type OIDC struct { ListenAddress string `json:"listenAddress,omitempty"` Claims *Claims `json:"claims,omitempty"` Options *Options `json:"options,omitempty"` + Scopes []string `json:"scopes,omitempty"` + AuthParams []string `json:"authParams,omitempty"` configuration openIDConfiguration keyStore *keyStore ctl *Controller diff --git a/authority/provisioners.go b/authority/provisioners.go index bfb969897..5fb9ff5bc 100644 --- a/authority/provisioners.go +++ b/authority/provisioners.go @@ -918,6 +918,8 @@ func ProvisionerToCertificates(p *linkedca.Provisioner) (provisioner.Interface, Domains: cfg.Domains, Groups: cfg.Groups, ListenAddress: cfg.ListenAddress, + Scopes: cfg.Scopes, + AuthParams: cfg.AuthParams, Claims: claims, Options: options, }, nil @@ -1066,6 +1068,8 @@ func ProvisionerToLinkedca(p provisioner.Interface) (*linkedca.Provisioner, erro Groups: p.Groups, ListenAddress: p.ListenAddress, TenantId: p.TenantID, + Scopes: p.Scopes, + AuthParams: p.AuthParams, }, }, },