mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-11 16:17:39 +02:00
authenticate: catch missing required setting (#149)
This commit is contained in:
parent
191015a0ed
commit
7487de94df
2 changed files with 4 additions and 1 deletions
|
@ -19,7 +19,7 @@ import (
|
|||
// The checks do not modify the internal state of the Option structure. Returns
|
||||
// on first error found.
|
||||
func ValidateOptions(o *config.Options) error {
|
||||
if o.AuthenticateURL == nil {
|
||||
if o.AuthenticateURL == nil || o.AuthenticateURL.Hostname() == "" {
|
||||
return errors.New("authenticate: 'AUTHENTICATE_SERVICE_URL' missing")
|
||||
}
|
||||
if o.ClientID == "" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue