Fix comments

This commit is contained in:
Benedikt Kulmann
2020-11-18 08:48:38 +01:00
parent b136966b51
commit f1082ca033
+4 -4
View File
@@ -28,7 +28,7 @@ type Options struct {
AccountsClient acc.AccountsService AccountsClient acc.AccountsService
// SettingsRoleService for the roles API in settings // SettingsRoleService for the roles API in settings
SettingsRoleService settings.RoleService SettingsRoleService settings.RoleService
// OIDCProviderFunc to lazily initialize a provider, must be set for the oidcProvider middleware // OIDCProviderFunc to lazily initialize an oidc provider, must be set for the oidc_auth middleware
OIDCProviderFunc func() (OIDCProvider, error) OIDCProviderFunc func() (OIDCProvider, error)
// OIDCIss is the oidcAuth-issuer // OIDCIss is the oidcAuth-issuer
OIDCIss string OIDCIss string
@@ -42,9 +42,9 @@ type Options struct {
AutoprovisionAccounts bool AutoprovisionAccounts bool
// EnableBasicAuth to allow basic auth // EnableBasicAuth to allow basic auth
EnableBasicAuth bool EnableBasicAuth bool
// TokenCacheSize defines the max number of entries in the token cache // TokenCacheSize defines the max number of entries in the token cache, intended for the oidc_auth middleware
TokenCacheSize int TokenCacheSize int
// TokenCacheTTL sets the max cache duration for the token cache // TokenCacheTTL sets the max cache duration for the token cache, intended for the oidc_auth middleware
TokenCacheTTL time.Duration TokenCacheTTL time.Duration
} }
@@ -94,7 +94,7 @@ func SettingsRoleService(rc settings.RoleService) Option {
} }
} }
// OIDCProviderFunc provides a function to set the the oidcAuth provider function option. // OIDCProviderFunc provides a function to set the the oidc provider function option.
func OIDCProviderFunc(f func() (OIDCProvider, error)) Option { func OIDCProviderFunc(f func() (OIDCProvider, error)) Option {
return func(o *Options) { return func(o *Options) {
o.OIDCProviderFunc = f o.OIDCProviderFunc = f