From 2d3b54b80be2b5e9592e8d015f5130ffa88dbd3f Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Thu, 31 Aug 2017 14:22:01 +0200 Subject: [PATCH] Use app config SCHEME to enforce https when doing oauth redirects --- pillar/auth/oauth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pillar/auth/oauth.py b/pillar/auth/oauth.py index 7ac93502..19b7fc81 100644 --- a/pillar/auth/oauth.py +++ b/pillar/auth/oauth.py @@ -75,7 +75,7 @@ class OAuthSignIn(metaclass=abc.ABCMeta): def get_callback_url(self): return url_for('users.oauth_callback', provider=self.provider_name, - _external=True) + _external=True, scheme=current_app.config['SCHEME']) @staticmethod def auth_code_from_request() -> str: