summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/oauth/oauth.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/oauth/oauth.go b/internal/oauth/oauth.go
index f9bf164..cee6599 100644
--- a/internal/oauth/oauth.go
+++ b/internal/oauth/oauth.go
@@ -501,6 +501,8 @@ func (oauth *OAuth) AuthURL(name string, postProcessAuth func(string) string) (s
if err != nil {
return "", errors.WrapPrefix(err, fmt.Sprintf("failed to parse OAuth base URL '%s'", oauth.BaseAuthorizationURL), 0)
}
+ // Make sure the scheme is HTTPS
+ p.Scheme = "https"
u, err := httpw.ConstructURL(p, params)
if err != nil {