mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-30 17:37:25 +02:00
config: add getters for URLs to avoid nils (#777)
* config: add getters for URLs to avoid nils * allow nil url for cache grpc client connection in authenticate
This commit is contained in:
parent
39187eb305
commit
f770ccfedd
11 changed files with 52 additions and 19 deletions
|
@ -110,7 +110,7 @@ func New(opts config.Options) (*Authenticate, error) {
|
|||
|
||||
// shared state encoder setup
|
||||
sharedCipher, _ := cryptutil.NewAEADCipherFromBase64(opts.SharedKey)
|
||||
sharedEncoder, err := jws.NewHS256Signer([]byte(opts.SharedKey), opts.AuthenticateURL.Host)
|
||||
sharedEncoder, err := jws.NewHS256Signer([]byte(opts.SharedKey), opts.GetAuthenticateURL().Host)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue