Skip to content

Commit 73c4eba

Browse files
committed
SDK-1555: Update doc scan demo to run with https
1 parent 90ecba1 commit 73c4eba

5 files changed

Lines changed: 6 additions & 5 deletions

File tree

examples/doc-scan/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44

55
1. Rename the [.env.example](.env.example) file to `.env` and fill in the required configuration values
66
1. Install the dependencies with `pip install -r requirements.txt`
7-
1. Start the server `flask run`
8-
1. Visit `http://localhost:5000`
7+
1. Start the server `flask run --cert=adhoc`
8+
1. Visit `https://localhost:5000`

examples/doc-scan/__init__.py

Whitespace-only changes.

examples/doc-scan/requirements.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
flask>=1.1.2
22
python-dotenv>=0.13.0
33
yoti>=2.11.2
4-
filetype>=1.0.7
4+
filetype>=1.0.7
5+
pyopenssl>=19.1.0

examples/doc-scan/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jinja2==2.11.2 # via flask
2121
markupsafe==1.1.1 # via jinja2
2222
protobuf==3.11.3 # via yoti
2323
pycparser==2.20 # via cffi
24-
pyopenssl==19.1.0 # via yoti
24+
pyopenssl==19.1.0 # via -r requirements.in, yoti
2525
python-dotenv==0.13.0 # via -r requirements.in
2626
requests==2.23.0 # via yoti
2727
six==1.14.0 # via cryptography, protobuf, pyopenssl

examples/doc-scan/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
if YOTI_DOC_SCAN_IFRAME_URL == "":
1717
YOTI_DOC_SCAN_IFRAME_URL = "https://api.yoti.com/idverify/v1/web/index.html"
1818

19-
YOTI_APP_BASE_URL = environ.get("YOTI_APP_BASE_URL", "http://localhost:5000")
19+
YOTI_APP_BASE_URL = environ.get("YOTI_APP_BASE_URL", "https://localhost:5000")

0 commit comments

Comments
 (0)