File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -744,6 +744,12 @@ def reset_override_params_api():
744
744
return jsonify ({"ok" : True })
745
745
746
746
747
+ @app .route ("/test/resetoverridelogs" , methods = ["GET" ]) # type: ignore
748
+ def reset_override_logs ():
749
+ override_logging .reset_override_logs ()
750
+ return jsonify ({"ok" : True })
751
+
752
+
747
753
@app .route ("/test/getoverridelogs" , methods = ["GET" ]) # type: ignore
748
754
def get_override_logs ():
749
755
return jsonify ({"logs" : override_logging .override_logs })
Original file line number Diff line number Diff line change @@ -142,6 +142,10 @@ async def get_mfa_requirements_for_auth(
142
142
required_secondary_factors_for_tenant : Any ,
143
143
user_context : Dict [str , Any ],
144
144
) -> MFARequirementList :
145
+ # Test specifies an override, return the required data
146
+ if 'getMFARequirementsForAuth:async()=>["totp"]' in eval_str :
147
+ return ["totp" ]
148
+
145
149
return ["otp-phone" ] if user_context .get ("requireFactor" ) else []
146
150
147
151
original_implementation .get_mfa_requirements_for_auth = (
You can’t perform that action at this time.
0 commit comments