Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fts-rest
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
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
File Transfer Service
fts-rest
Commits
5e89709e
Commit
5e89709e
authored
4 years ago
by
Mihai Patrascoiu
Browse files
Options
Downloads
Patches
Plain Diff
Register an OIDC client using the /openid-configuration issuer instead of the fts3config provider
parent
0987f8ff
No related branches found
No related tags found
No related merge requests found
Pipeline
#1947209
failed
4 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/fts3/util/config.py
+0
-2
0 additions, 2 deletions
src/fts3/util/config.py
src/fts3rest/fts3rest/lib/openidconnect.py
+2
-1
2 additions, 1 deletion
src/fts3rest/fts3rest/lib/openidconnect.py
with
2 additions
and
3 deletions
src/fts3/util/config.py
+
0
−
2
View file @
5e89709e
...
...
@@ -104,8 +104,6 @@ def fts3_config_load(path='/etc/fts3/fts3config'):
if
"
_
"
not
in
option
:
provider_name
=
option
provider_url
=
parser
.
get
(
"
providers
"
,
provider_name
)
if
not
provider_url
.
endswith
(
"
/
"
):
provider_url
+=
"
/
"
fts3cfg
[
"
fts3.Providers
"
][
provider_url
]
=
{}
client_id
=
parser
.
get
(
"
providers
"
,
option
+
"
_ClientId
"
)
fts3cfg
[
"
fts3.Providers
"
][
provider_url
][
"
client_id
"
]
=
client_id
...
...
This diff is collapsed.
Click to expand it.
src/fts3rest/fts3rest/lib/openidconnect.py
+
2
−
1
View file @
5e89709e
...
...
@@ -40,7 +40,8 @@ class OIDCmanager:
client_reg
=
RegistrationResponse
(
client_id
=
providers_config
[
provider
][
'
client_id
'
],
client_secret
=
providers_config
[
provider
][
'
client_secret
'
])
client
.
store_registration_info
(
client_reg
)
self
.
clients
[
provider
]
=
client
issuer
=
client
.
provider_info
[
'
issuer
'
]
self
.
clients
[
issuer
]
=
client
def
_retrieve_clients_keys
(
self
):
for
provider
in
self
.
clients
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment