From 1c8ee575e27cafa555647da1febaa4327cbabfbc Mon Sep 17 00:00:00 2001 From: aeneasr Date: Sat, 3 Nov 2018 12:28:58 +0100 Subject: [PATCH] cmd: Improve issuer error message Closes #1133 Signed-off-by: aeneasr --- cmd/serve.go | 2 +- cmd/server/handler.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/serve.go b/cmd/serve.go index c29a1d02bb..d7d941ad85 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -99,7 +99,7 @@ OAUTH2 CONTROLS of ORY Hydra. Example: OAUTH2_LOGOUT_REDIRECT_URL=https://myapp.com/ -- OAUTH2_ISSUER_URL: IssuerURL is the public URL of your Hydra installation. It is used for OAuth2 and OpenID Connect and must be +- OAUTH2_ISSUER_URL: This is the public URL of your ORY Hydra installation. It is used for OAuth2 and OpenID Connect and must be specified and using HTTPS protocol, unless --dangerous-force-http is set. Example: OAUTH2_ISSUER_URL=https://hydra.myapp.com/ diff --git a/cmd/server/handler.go b/cmd/server/handler.go index 2b7a61200b..127c776a7e 100644 --- a/cmd/server/handler.go +++ b/cmd/server/handler.go @@ -140,12 +140,12 @@ func setup(c *config.Config, cmd *cobra.Command, args []string, name string) (ha if !c.ForceHTTP { if c.Issuer == "" { - logger.Fatalln("IssuerURL must be explicitly specified unless --dangerous-force-http is passed. To find out more, use `hydra help serve`.") + logger.Fatalln("OAUTH2_ISSUER_URL must be explicitly specified unless --dangerous-force-http is passed. To find out more, use `hydra help serve`.") } issuer, err := url.Parse(c.Issuer) cmdx.Must(err, "Could not parse issuer URL: %s", err) if issuer.Scheme != "https" { - logger.Fatalln("IssuerURL must use HTTPS unless --dangerous-force-http is passed. To find out more, use `hydra help serve`.") + logger.Fatalln("OAUTH2_ISSUER_URL must use HTTPS unless --dangerous-force-http is passed. To find out more, use `hydra help serve`.") } }