From 6611c7caaff53e383e82d5d7a28eb132b0342461 Mon Sep 17 00:00:00 2001 From: Daniel Gaspar Date: Fri, 6 Oct 2023 15:24:18 +0100 Subject: [PATCH] lint --- tests/security/test_auth_oauth.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/security/test_auth_oauth.py b/tests/security/test_auth_oauth.py index c6bf75e02e..fb12ed927e 100644 --- a/tests/security/test_auth_oauth.py +++ b/tests/security/test_auth_oauth.py @@ -555,12 +555,6 @@ def test_oauth_user_info_azure_with_jwt_validation(self): 8m+N5G/MppasppHLJmXhnFeQsnBX7XcdYiCqHikuBlIzoQ0Cj5xbkfgMMCVORO64 r9+EFRsxA5GNYA== -----END PRIVATE KEY-----""" - public_key = """-----BEGIN PUBLIC KEY----- -MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC3g6IxJGvd12fyfGwxoJ9jCB8p -Gn4Asdg+sE2YJpoc6UR+/5Oyf1krKhunkhYN/JhibpDwmuHXBvHQi5nmoxH9oOCK -GmIhOecl7NKLv7YsQSSPMEWPjXwpbsYCHB3SoWSElTugpEea+3Yjf0ixz7BZw3dF -IjCeXOPFLCcJPE+U+wIDAQAB ------END PUBLIC KEY-----""" # Create an unsigned JWT unsigned_jwt = jwt.encode( claims, key=private_key, algorithm="RS256", headers={"kid": "1"} @@ -573,10 +567,16 @@ def test_oauth_user_info_azure_with_jwt_validation(self): "e": "AQAB", "kid": "1", "kty": "RSA", - "n": "t4OiMSRr3ddn8nxsMaCfYwgfKRp-ALHYPrBNmCaaHOlEfv-Tsn9ZKyobp5IWDfyYYm6Q8Jrh1wbx0IuZ5qMR_aDgihpiITnnJezSi7-2LEEkjzBFj418KW7GAhwd0qFkhJU7oKRHmvt2I39Isc-wWcN3RSIwnlzjxSwnCTxPlPs", + "n": "t4OiMSRr3ddn8nxsMaCfYwgfKRp-ALHYPrBNmCaaHOlEfv-" + "Tsn9ZKyobp5IWDfyYYm6Q8Jrh1wbx0IuZ5qMR_aDgihpiITnnJezSi7-" + "2LEEkjzBFj418KW7GAhwd0qFkhJU7oKRHmvt2I39Isc-wWcN3RSIwnlz" + "jxSwnCTxPlPs", "use": "sig", "x5c": [ - "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC3g6IxJGvd12fyfGwxoJ9jCB8pGn4Asdg+sE2YJpoc6UR+/5Oyf1krKhunkhYN/JhibpDwmuHXBvHQi5nmoxH9oOCKGmIhOecl7NKLv7YsQSSPMEWPjXwpbsYCHB3SoWSElTugpEea+3Yjf0ixz7BZw3dFIjCeXOPFLCcJPE+U+wIDAQAB" + "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC3g6IxJGvd12fyfGwxoJ9" + "jCB8pGn4Asdg+sE2YJpoc6UR+/5Oyf1krKhunkhYN/JhibpDwmuHXBvHQi5n" + "moxH9oOCKGmIhOecl7NKLv7YsQSSPMEWPjXwpbsYCHB3SoWSElTugpEea+3Y" + "jf0ixz7BZw3dFIjCeXOPFLCcJPE+U+wIDAQAB" ], } ]