Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OPUS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Servillat Mathieu
OPUS
Commits
dea07671
Commit
dea07671
authored
2 years ago
by
Servillat Mathieu
Browse files
Options
Downloads
Patches
Plain Diff
oidc: debug
parent
a5de4f85
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
uws_client/uws_client.py
+3
-0
3 additions, 0 deletions
uws_client/uws_client.py
with
3 additions
and
0 deletions
uws_client/uws_client.py
+
3
−
0
View file @
dea07671
...
...
@@ -82,6 +82,7 @@ def git_version():
app
=
Flask
(
__name__
,
instance_relative_config
=
True
,
instance_path
=
VAR_PATH
)
app
.
secret_key
=
b
'
\t
trLu
\xdd\xde\x9f\xd2
}
\xc1\x0e\xb6\xe6
}
\x95\xc6\xb1\x8f\xa0
9
\xf5\x1a
G
'
# app.config.update(EDITABLE_CONFIG) # Default editable config
app
.
config
[
"
SESSION_TYPE
"
]
=
"
filesystem
"
app
.
config
.
from_object
(
__name__
)
# load config from this file
mail
=
Mail
(
app
)
...
...
@@ -223,6 +224,8 @@ def oidc_callback():
db
.
session
.
commit
()
oidc_user
=
user_datastore
.
find_user
(
email
=
oidc_email
)
logger
.
info
(
'
User OIDC {} added
'
.
format
(
oidc_email
))
else
:
logger
.
info
(
'
User OIDC {} found
'
.
format
(
oidc_email
))
# Begin user session by logging the user in
login_user
(
oidc_user
)
# Send user back to homepage
...
...
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