Skip to content
Snippets Groups Projects

Skipped OPA policy checking for callback step endpoint

Merged Mohammad Torkashvand requested to merge fix/skip-opa-for-calback-step into develop
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
@@ -411,6 +411,9 @@ def opa_decision(
@@ -411,6 +411,9 @@ def opa_decision(
if not (oauth2lib_settings.OAUTH2_ACTIVE and oauth2lib_settings.OAUTH2_AUTHORIZATION_ACTIVE):
if not (oauth2lib_settings.OAUTH2_ACTIVE and oauth2lib_settings.OAUTH2_AUTHORIZATION_ACTIVE):
return None
return None
 
if _is_callback_step_endpoint(request):
 
return None
 
try:
try:
json = await request.json()
json = await request.json()
# Silencing the Decode error or Type error when request.json() does not return anything sane.
# Silencing the Decode error or Type error when request.json() does not return anything sane.
Loading