Skip to content
Snippets Groups Projects
Commit f8c106a6 authored by Mohammad Torkashvand's avatar Mohammad Torkashvand
Browse files

Skiped OPA policy checking for callback step endpoint

parent f4e54b76
No related branches found
No related tags found
1 merge request!145Skipped OPA policy checking for callback step endpoint
Pipeline #85452 passed
......@@ -411,6 +411,9 @@ def opa_decision(
if not (oauth2lib_settings.OAUTH2_ACTIVE and oauth2lib_settings.OAUTH2_AUTHORIZATION_ACTIVE):
return None
if _is_callback_step_endpoint(request):
return None
try:
json = await request.json()
# Silencing the Decode error or Type error when request.json() does not return anything sane.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment