Commit 199e30c 1 parent 5e489ae commit 199e30c Copy full SHA for 199e30c
File tree 1 file changed +2
-10
lines changed
1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -296,18 +296,10 @@ async def process_assertion(saml_response: str) -> Optional[AssertionData]:
296
296
297
297
response , authn_ref = await get_authn_response (saml_response )
298
298
logger .debug (f"authn response: { response } " )
299
+
299
300
if authn_ref not in saml2_sp .authn_req_cache :
300
301
logger .info ("Unknown response" )
301
- # DEBUG flaky cache?
302
- from time import sleep
303
-
304
- logger .debug (f"current authn_ref: { authn_ref } " )
305
- logger .debug (f"existing authn_req_cache: { saml2_sp .authn_req_cache .items ()} " )
306
- # retry lookup
307
- sleep (1 )
308
- if authn_ref not in saml2_sp .authn_req_cache :
309
- logger .info ("Unknown response, second try" )
310
- raise BadSAMLResponse ("Unknown response" )
302
+ raise BadSAMLResponse ("Unknown response" )
311
303
312
304
session_info = SessionInfo .from_pysaml2 (response .session_info ())
313
305
assertion_data = AssertionData (session_info = session_info , authn_req_ref = authn_ref )
You can’t perform that action at this time.
0 commit comments