Skip to content

Commit 8c45cce

Browse files
committed
SDK-378: Changed Flask example project to use HTTPS
1 parent 73a2726 commit 8c45cce

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ Both example applications utilise the env variables described in [Configuration]
221221

222222
1. Change directories to the Flask project: `cd examples/yoti_example_flask`
223223
1. Run `python app.py`
224-
1. Navigate to http://localhost:5000
224+
1. Navigate to https:////localhost:5000
225225

226226
#### Django
227227

examples/yoti_example_flask/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ def auth():
4646

4747

4848
if __name__ == '__main__':
49-
app.run(host="0.0.0.0")
49+
app.run(host="0.0.0.0", ssl_context='adhoc')
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
flask>=0.10
22
yoti
33
python-dotenv>=0.7.1
4+
pyopenssl

examples/yoti_example_flask/requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ certifi==2018.4.16 # via requests
99
cffi==1.11.5 # via cryptography
1010
chardet==3.0.4 # via requests
1111
click==6.7 # via flask
12-
cryptography==2.2.2 # via yoti
12+
cryptography==2.2.2 # via pyopenssl, yoti
1313
flask==1.0.2
1414
future==0.16.0 # via yoti
1515
idna==2.7 # via cryptography, requests
@@ -18,9 +18,10 @@ jinja2==2.10 # via flask
1818
markupsafe==1.0 # via jinja2
1919
protobuf==3.6.0 # via yoti
2020
pycparser==2.18 # via cffi
21+
pyopenssl==18.0.0
2122
python-dotenv==0.8.2
2223
requests==2.19.1 # via yoti
23-
six==1.11.0 # via cryptography, protobuf
24+
six==1.11.0 # via cryptography, protobuf, pyopenssl
2425
urllib3==1.23 # via requests
2526
werkzeug==0.14.1 # via flask
2627
yoti==2.2.0

0 commit comments

Comments
 (0)