Use app config SCHEME to enforce https when doing oauth redirects

This commit is contained in:
Francesco Siddi 2017-08-31 14:22:01 +02:00
parent 89f24ac4e6
commit 2d3b54b80b

View File

@ -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: