Skip to content

Commit 8f95ec7

Browse files
authored
Merge branch 'development' into python-library-updates
2 parents 140587a + 3fbf9c1 commit 8f95ec7

37 files changed

+727
-42
lines changed

examples/aml/requirements.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
yoti>=2.14.0
2+
python-dotenv>=0.7.1

examples/aml/requirements.txt

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,46 @@
1-
yoti>=2.13.0
2-
python-dotenv>=0.7.1
1+
#
2+
# This file is autogenerated by pip-compile with python 3.10
3+
# To update, run:
4+
#
5+
# pip-compile --output-file=requirements.txt requirements.in
6+
#
7+
asn1==2.2.0
8+
# via yoti
9+
certifi==2021.10.8
10+
# via requests
11+
cffi==1.15.0
12+
# via cryptography
13+
charset-normalizer==2.0.10
14+
# via requests
15+
cryptography==36.0.1
16+
# via
17+
# pyopenssl
18+
# yoti
19+
deprecated==1.2.10
20+
# via yoti
21+
future==0.18.2
22+
# via yoti
23+
idna==3.3
24+
# via requests
25+
iso8601==0.1.13
26+
# via yoti
27+
protobuf==3.19.3
28+
# via yoti
29+
pycparser==2.21
30+
# via cffi
31+
pyopenssl==21.0.0
32+
# via yoti
33+
python-dotenv==0.19.2
34+
# via -r requirements.in
35+
pytz==2020.4
36+
# via yoti
37+
requests==2.27.1
38+
# via yoti
39+
six==1.16.0
40+
# via pyopenssl
41+
urllib3==1.26.8
42+
# via requests
43+
wrapt==1.13.3
44+
# via deprecated
45+
yoti==2.14.0
46+
# via -r requirements.in

examples/doc_scan/app.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def create_session():
4747
.with_preset_issuing_country("GBR")
4848
.with_success_url("{url}/success".format(url=YOTI_APP_BASE_URL))
4949
.with_error_url("{url}/error".format(url=YOTI_APP_BASE_URL))
50+
.with_privacy_policy_url("{url}/privacy-policy".format(url=YOTI_APP_BASE_URL))
5051
.build()
5152
)
5253

@@ -173,5 +174,10 @@ def media():
173174
)
174175

175176

177+
@app.route("/privacy-policy")
178+
def privacy_policy():
179+
return render_template("privacy.html")
180+
181+
176182
if __name__ == "__main__":
177183
app.run()

examples/doc_scan/requirements.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ click >=8.0
99
# Required for yoti compatibility
1010
deprecated==1.2.10
1111
iso8601==0.1.13
12-
pytz==2020.4
12+
pytz==2020.4
13+

examples/doc_scan/requirements.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#
77
asn1==2.2.0
88
# via yoti
9+
910
blinker==1.9.0
1011
# via flask
1112
certifi==2020.4.5.1
@@ -19,10 +20,12 @@ click==8.1.8
1920
# -r requirements.in
2021
# flask
2122
cryptography==41.0.7
23+
2224
# via
2325
# pyopenssl
2426
# yoti
2527
deprecated==1.2.10
28+
2629
# via
2730
# -r requirements.in
2831
# yoti
@@ -35,6 +38,7 @@ future==1.0.0
3538
idna==2.9
3639
# via requests
3740
iso8601==0.1.13
41+
3842
# via
3943
# -r requirements.in
4044
# yoti
@@ -46,10 +50,12 @@ markupsafe==3.0.2
4650
# via
4751
# jinja2
4852
# werkzeug
53+
4954
protobuf==3.11.3
5055
# via yoti
5156
pycparser==2.20
5257
# via cffi
58+
5359
pyopenssl==23.2.0
5460
# via
5561
# -r requirements.in
@@ -69,6 +75,7 @@ urllib3==1.25.9
6975
werkzeug==3.1.3
7076
# via flask
7177
wrapt==1.17.2
78+
7279
# via deprecated
7380
yoti==2.14.0
7481
# via -r requirements.in
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{% include "layout/header.html" %}
2+
<div class="container">
3+
<div class="row pt-4">
4+
<div class="col">
5+
<h1>Privacy Policy</h1>
6+
<p>Demo privacy policy</p>
7+
</div>
8+
</div>
9+
</div>
10+
{% include "layout/footer.html" %}
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
django>=3.0.7
1+
django>=4.0.1
22
django-sslserver>=0.22.0
33
python-dotenv>=0.7.1
44
requests>=2.20.0
55
urllib3>=1.24.2
6-
yoti>=2.13.0
6+
yoti>=2.14.0
7+
six>=1.16.0
8+
cffi>=1.15.0

examples/yoti_example_django/requirements.txt

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile
2+
# This file is autogenerated by pip-compile with python 3.10
33
# To update, run:
44
#
55
# pip-compile --output-file=requirements.txt requirements.in
@@ -8,10 +8,14 @@ asgiref==3.4.1
88
# via django
99
asn1==2.2.0
1010
# via yoti
11+
backports.zoneinfo==0.2.1
12+
# via django
1113
certifi==2018.4.16
1214
# via requests
13-
cffi==1.14.0
14-
# via cryptography
15+
cffi==1.15.0
16+
# via
17+
# -r requirements.in
18+
# cryptography
1519
chardet==3.0.4
1620
# via requests
1721
cryptography==3.2
@@ -20,7 +24,7 @@ cryptography==3.2
2024
# yoti
2125
deprecated==1.2.10
2226
# via yoti
23-
django==3.1.12
27+
django==4.0.1
2428
# via
2529
# -r requirements.in
2630
# django-sslserver
@@ -40,14 +44,15 @@ pyopenssl==18.0.0
4044
# via yoti
4145
python-dotenv==0.8.2
4246
# via -r requirements.in
43-
pytz==2018.4
44-
# via django
47+
pytz==2020.4
48+
# via yoti
4549
requests==2.21.0
4650
# via
4751
# -r requirements.in
4852
# yoti
49-
six==1.11.0
53+
six==1.16.0
5054
# via
55+
# -r requirements.in
5156
# cryptography
5257
# protobuf
5358
# pyopenssl
@@ -59,7 +64,7 @@ urllib3==1.24.2
5964
# requests
6065
wrapt==1.12.1
6166
# via deprecated
62-
yoti==2.13.0
67+
yoti==2.14.0
6368
# via -r requirements.in
6469

6570
# The following packages are considered to be unsafe in a requirements file:

examples/yoti_example_django/yoti_example/urls.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313
1. Import the include() function: from django.conf.urls import url, include
1414
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
1515
"""
16-
from django.conf.urls import url
16+
from django.urls import re_path
1717
from django.contrib import admin
1818

1919
from .views import IndexView, AuthView, DynamicShareView, SourceConstraintsView
2020

2121
urlpatterns = [
22-
url(r"^$", IndexView.as_view(), name="index"),
23-
url(r"^yoti/auth/$", AuthView.as_view(), name="auth"),
24-
url(r"^admin/", admin.site.urls),
25-
url(r"^dynamic-share/$", DynamicShareView.as_view(), name="dynamic-share"),
26-
url(
22+
re_path(r"^$", IndexView.as_view(), name="index"),
23+
re_path(r"^yoti/auth/$", AuthView.as_view(), name="auth"),
24+
re_path(r"^admin/", admin.site.urls),
25+
re_path(r"^dynamic-share/$", DynamicShareView.as_view(), name="dynamic-share"),
26+
re_path(
2727
r"^source-constraint/$",
2828
SourceConstraintsView.as_view(),
2929
name="source-constraints",

requirements.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
#
2+
23
# This file is autogenerated by pip-compile with Python 3.11
34
# by the following command:
5+
46
#
57
# pip-compile --output-file=requirements.txt requirements.in
68
#
79
asn1==2.2.0
810
# via -r requirements.in
911
certifi==2018.11.29
1012
# via requests
13+
1114
cffi==1.17.1
1215
# via
1316
# -r requirements.in
@@ -18,25 +21,32 @@ cryptography==44.0.2
1821
# via
1922
# -r requirements.in
2023
# pyopenssl
24+
2125
deprecated==1.2.18
2226
# via -r requirements.in
2327
future==1.0.0
2428
# via -r requirements.in
2529
idna==2.7
2630
# via requests
31+
2732
iso8601==2.1.0
2833
# via -r requirements.in
2934
itsdangerous==2.2.0
35+
3036
# via -r requirements.in
3137
pbr==6.1.1
3238
# via -r requirements.in
39+
3340
protobuf==3.20.3
41+
3442
# via -r requirements.in
3543
pycparser==2.18
3644
# via cffi
3745
pyopenssl==25.0.0
3846
# via -r requirements.in
47+
3948
pytz==2025.2
49+
4050
# via -r requirements.in
4151
pyyaml==6.0.2
4252
# via -r requirements.in
@@ -57,3 +67,6 @@ wrapt==1.17.2
5767

5868
# The following packages are considered to be unsafe in a requirements file:
5969
# setuptools
70+
71+
72+

0 commit comments

Comments
 (0)