summaryrefslogtreecommitdiff
path: root/internal/server/endpoints/endpoints.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/server/endpoints/endpoints.go')
-rw-r--r--internal/server/endpoints/endpoints.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/server/endpoints/endpoints.go b/internal/server/endpoints/endpoints.go
index 75bca55..3e675e4 100644
--- a/internal/server/endpoints/endpoints.go
+++ b/internal/server/endpoints/endpoints.go
@@ -37,6 +37,9 @@ func (e Endpoints) Validate() error {
if err != nil {
return errors.WrapPrefix(err, "failed to parse API token endpoint", 0)
}
+ if pAPI.Scheme != "https" {
+ return errors.Errorf("API Scheme: '%v', is not equal to HTTPS", pAPI.Scheme)
+ }
if pAPI.Scheme != pAuth.Scheme {
return errors.Errorf("API scheme: '%v', is not equal to authorization scheme: '%v'", pAPI.Scheme, pAuth.Scheme)
}