Skip to content

Commit 63d1e4e

Browse files
committed
Fix formatting
1 parent 55a5ebe commit 63d1e4e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

flask_appbuilder/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,4 +196,4 @@
196196
# OAuth Provider Constants
197197
# -----------------------------------
198198

199-
MICROSOFT_KEY_SET_URL="https://login.microsoftonline.com/common/discovery/keys"
199+
MICROSOFT_KEY_SET_URL = "https://login.microsoftonline.com/common/discovery/keys"

flask_appbuilder/security/manager.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -684,9 +684,7 @@ def get_oauth_user_info(self, provider, resp):
684684
return {}
685685

686686
def _decode_and_validate_azure_jwt(self, id_token):
687-
keyset = JsonWebKey.import_key_set(
688-
requests.get(MICROSOFT_KEY_SET_URL).json()
689-
)
687+
keyset = JsonWebKey.import_key_set(requests.get(MICROSOFT_KEY_SET_URL).json())
690688
claims = jwt.decode(id_token, keyset)
691689
claims.validate()
692690
log.debug("Decoded JWT:\n%s", json.dumps(claims, indent=4))

0 commit comments

Comments
 (0)