Use app config SCHEME to enforce https when doing oauth redirects
This commit is contained in:
parent
89f24ac4e6
commit
2d3b54b80b
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user