mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-19 20:17:30 +02:00
Make IDP_PROVIDER env var mandatory (#536)
This commit is contained in:
parent
1b8db111f5
commit
c14e3d8b34
1 changed files with 3 additions and 0 deletions
|
@ -39,6 +39,9 @@ func ValidateOptions(o config.Options) error {
|
|||
if err := urlutil.ValidateURL(o.AuthenticateURL); err != nil {
|
||||
return fmt.Errorf("authenticate: invalid 'AUTHENTICATE_SERVICE_URL': %w", err)
|
||||
}
|
||||
if o.Provider == "" {
|
||||
return errors.New("authenticate: 'IDP_PROVIDER' is required")
|
||||
}
|
||||
if o.ClientID == "" {
|
||||
return errors.New("authenticate: 'IDP_CLIENT_ID' is required")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue