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
!233
remove unused code for auth
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
remove unused code for auth
remove-unused-codes-for-auth
into
develop
Overview
0
Commits
1
Pipelines
2
Changes
5
Merged
Mohammad Torkashvand
requested to merge
remove-unused-codes-for-auth
into
develop
9 months ago
Overview
0
Commits
1
Pipelines
2
Changes
5
Expand
0
0
Merge request reports
Compare
develop
version 1
4c54441e
9 months ago
develop (base)
and
latest version
latest version
72ba2bb1
1 commit,
9 months ago
version 1
4c54441e
1 commit,
9 months ago
5 files
+
2
−
51
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
gso/auth/settings.py deleted
100644 → 0
+
0
−
39
Options
"""
Security configurations and utilities for the GSO application. Handles OAuth2 and OpenID Connect.
authentication and authorization, including token validation and user authentication. Integrates
with external authentication providers for enhanced security management.
Todo: Remove token and sensitive data from OPA console and API.
"""
from
pydantic
import
Field
from
pydantic_settings
import
BaseSettings
class
Oauth2LibSettings
(
BaseSettings
):
"""
Common settings for applications depending on oauth2.
"""
ENVIRONMENT
:
str
=
"
local
"
SERVICE_NAME
:
str
=
""
MUTATIONS_ENABLED
:
bool
=
False
ENVIRONMENT_IGNORE_MUTATION_DISABLED
:
list
[
str
]
=
Field
(
default_factory
=
list
,
description
=
"
Environments for which to allow unauthenticated mutations
"
)
OAUTH2_ACTIVE
:
bool
=
True
OAUTH2_AUTHORIZATION_ACTIVE
:
bool
=
True
oauth2lib_settings
=
Oauth2LibSettings
()
class
Oauth2Settings
(
BaseSettings
):
"""
Configuration settings for OAuth2 and OpenID Connect (OIDC).
"""
OAUTH2_RESOURCE_SERVER_ID
:
str
=
""
OAUTH2_RESOURCE_SERVER_SECRET
:
str
=
""
OAUTH2_TOKEN_URL
:
str
=
""
OIDC_CONF_WELL_KNOWN_URL
:
str
=
""
OPA_URL
:
str
=
"
http://localhost:8181/v1/data/gap/gso/api/access
"
oauth2_settings
=
Oauth2Settings
()
Loading