mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 18:36:30 +02:00
store authenticate state on creation (#4064)
This commit is contained in:
parent
438039d846
commit
6e39ebc189
1 changed files with 2 additions and 0 deletions
|
@ -51,6 +51,8 @@ func New(cfg *config.Config, options ...Option) (*Authenticate, error) {
|
||||||
state: atomicutil.NewValue(newAuthenticateState()),
|
state: atomicutil.NewValue(newAuthenticateState()),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.options.Store(cfg.Options)
|
||||||
|
|
||||||
state, err := newAuthenticateStateFromConfig(cfg)
|
state, err := newAuthenticateStateFromConfig(cfg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Add table
Reference in a new issue