Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uffd-nginxauth
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
uffd
uffd-nginxauth
Commits
47acef87
Commit
47acef87
authored
Sep 20, 2021
by
Julian
Browse files
Options
Downloads
Patches
Plain Diff
Reenabled OAUTHLIB_INSECURE_TRANSPORT
parent
c34647f2
Branches
Branches containing commit
Tags
v23.0.2
Tags containing commit
No related merge requests found
Pipeline
#7776
passed
Sep 20, 2021
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app.py
+4
-4
4 additions, 4 deletions
app.py
with
4 additions
and
4 deletions
app.py
+
4
−
4
View file @
47acef87
...
...
@@ -14,8 +14,9 @@ def create_app(test_config=None):
app
.
config
.
from_pyfile
(
'
config.py
'
,
silent
=
True
)
else
:
app
.
config
.
from_mapping
(
test_config
)
# oauthlib enforces the OAuth2.0 requirement to use HTTPS, when this is not set
if
app
.
debug
:
# OAuth2Session.fetch_token verifies that the passed URIs scheme (the scheme
# of request.url) is HTTPS. The way we deploy this app, request.url does not
# reflect the actual request url, so we disable this check.
os
.
environ
[
'
OAUTHLIB_INSECURE_TRANSPORT
'
]
=
'
1
'
@app.route
(
'
/auth
'
)
...
...
@@ -51,7 +52,6 @@ def create_app(test_config=None):
@app.route
(
'
/cookiecheck
'
)
def
login_cookiecheck
():
print
(
session
)
if
not
session
.
get
(
'
cookies_enabled
'
):
session
.
clear
()
session
[
'
cookies_enabled
'
]
=
True
...
...
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