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
f09c5b5e
Commit
f09c5b5e
authored
Oct 31, 2020
by
Julian
Browse files
Options
Downloads
Patches
Plain Diff
Disabled exceptions for non-HTTPS
parent
edb71f26
No related branches found
No related tags found
No related merge requests found
Pipeline
#669
passed
Oct 31, 2020
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app.py
+2
-2
2 additions, 2 deletions
app.py
with
2 additions
and
2 deletions
app.py
+
2
−
2
View file @
f09c5b5e
...
@@ -13,6 +13,8 @@ def create_app(test_config=None):
...
@@ -13,6 +13,8 @@ def create_app(test_config=None):
app
.
config
.
from_pyfile
(
'
config.py
'
,
silent
=
True
)
app
.
config
.
from_pyfile
(
'
config.py
'
,
silent
=
True
)
else
:
else
:
app
.
config
.
from_mapping
(
test_config
)
app
.
config
.
from_mapping
(
test_config
)
# oauthlib enforces the OAuth2.0 requirement to use HTTPS, when this is not set
os
.
environ
[
'
OAUTHLIB_INSECURE_TRANSPORT
'
]
=
'
1
'
# That behaviour sucks, so disable it
@app.route
(
"
/auth
"
)
@app.route
(
"
/auth
"
)
def
auth
():
def
auth
():
...
@@ -87,7 +89,5 @@ a valid redirect_uri for the client_id.
...
@@ -87,7 +89,5 @@ a valid redirect_uri for the client_id.
return
app
return
app
if
__name__
==
'
__main__
'
:
if
__name__
==
'
__main__
'
:
# oauthlib enforces the OAuth2.0 requirement to use HTTPS, when this is not set
os
.
environ
[
'
OAUTHLIB_INSECURE_TRANSPORT
'
]
=
'
1
'
# Don't do that in production!
testapp
=
create_app
()
testapp
=
create_app
()
testapp
.
run
(
debug
=
True
,
host
=
'
localhost
'
,
port
=
5002
)
testapp
.
run
(
debug
=
True
,
host
=
'
localhost
'
,
port
=
5002
)
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