Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GÉANT Service Orchestrator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
GÉANT Service Orchestrator
Merge requests
!145
Skipped OPA policy checking for callback step endpoint
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Skipped OPA policy checking for callback step endpoint
fix/skip-opa-for-calback-step
into
develop
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Mohammad Torkashvand
requested to merge
fix/skip-opa-for-calback-step
into
develop
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
f8c106a6
1 commit,
1 year ago
1 file
+
3
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
gso/auth/oidc_policy_helper.py
+
3
−
0
Options
@@ -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