This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AzureADOAuth2v2(BaseOAuth2): | |
# Workaround for setting the redirect_uri to localhost. | |
# Host is set in proxy server.py and redirect_uri takes the request host value | |
def get_redirect_uri(self, state=None): | |
"""Build redirect with redirect_state parameter.""" | |
uri = self.redirect_uri | |
if self.REDIRECT_STATE and state: | |
uri = self.url_add_parameters(uri, {"redirect_state": state}) |