mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-27 23:18:13 +02:00
config: use config.Config instead of config.Options everywhere
This commit is contained in:
parent
5f51510e91
commit
1b80e8a6c2
40 changed files with 484 additions and 412 deletions
|
@ -6,7 +6,7 @@ import (
|
|||
)
|
||||
|
||||
type authenticateConfig struct {
|
||||
getIdentityProvider func(options *config.Options, idpID string) (identity.Authenticator, error)
|
||||
getIdentityProvider func(cfg *config.Config, idpID string) (identity.Authenticator, error)
|
||||
}
|
||||
|
||||
// An Option customizes the Authenticate config.
|
||||
|
@ -22,7 +22,7 @@ func getAuthenticateConfig(options ...Option) *authenticateConfig {
|
|||
}
|
||||
|
||||
// WithGetIdentityProvider sets the getIdentityProvider function in the config.
|
||||
func WithGetIdentityProvider(getIdentityProvider func(options *config.Options, idpID string) (identity.Authenticator, error)) Option {
|
||||
func WithGetIdentityProvider(getIdentityProvider func(cfg *config.Config, idpID string) (identity.Authenticator, error)) Option {
|
||||
return func(cfg *authenticateConfig) {
|
||||
cfg.getIdentityProvider = getIdentityProvider
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue