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:
Caleb Doxsey 2020-05-26 11:36:18 -06:00 committed by GitHub
parent 39187eb305
commit f770ccfedd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 52 additions and 19 deletions

View file

@ -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
}