Skip to content

Commit

Permalink
Merge branch 'development' into SDK-2430-Update-Issue-Template
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmet-yoti authored Oct 24, 2024
2 parents b7d1c5e + 3fbf9c1 commit fc0e5ac
Show file tree
Hide file tree
Showing 38 changed files with 787 additions and 93 deletions.
2 changes: 2 additions & 0 deletions examples/aml/requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yoti>=2.14.0
python-dotenv>=0.7.1
48 changes: 46 additions & 2 deletions examples/aml/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,46 @@
yoti>=2.13.0
python-dotenv>=0.7.1
#
# This file is autogenerated by pip-compile with python 3.10
# To update, run:
#
# pip-compile --output-file=requirements.txt requirements.in
#
asn1==2.2.0
# via yoti
certifi==2021.10.8
# via requests
cffi==1.15.0
# via cryptography
charset-normalizer==2.0.10
# via requests
cryptography==36.0.1
# via
# pyopenssl
# yoti
deprecated==1.2.10
# via yoti
future==0.18.2
# via yoti
idna==3.3
# via requests
iso8601==0.1.13
# via yoti
protobuf==3.19.3
# via yoti
pycparser==2.21
# via cffi
pyopenssl==21.0.0
# via yoti
python-dotenv==0.19.2
# via -r requirements.in
pytz==2020.4
# via yoti
requests==2.27.1
# via yoti
six==1.16.0
# via pyopenssl
urllib3==1.26.8
# via requests
wrapt==1.13.3
# via deprecated
yoti==2.14.0
# via -r requirements.in
6 changes: 6 additions & 0 deletions examples/doc_scan/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def create_session():
.with_preset_issuing_country("GBR")
.with_success_url("{url}/success".format(url=YOTI_APP_BASE_URL))
.with_error_url("{url}/error".format(url=YOTI_APP_BASE_URL))
.with_privacy_policy_url("{url}/privacy-policy".format(url=YOTI_APP_BASE_URL))
.build()
)

Expand Down Expand Up @@ -173,5 +174,10 @@ def media():
)


@app.route("/privacy-policy")
def privacy_policy():
return render_template("privacy.html")


if __name__ == "__main__":
app.run()
3 changes: 2 additions & 1 deletion examples/doc_scan/requirements.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
flask>=1.1.2
python-dotenv>=0.13.0
yoti>=2.13.0
yoti>=2.14.0
filetype>=1.0.7
pyopenssl>=19.1.0
six>=1.16.0
87 changes: 61 additions & 26 deletions examples/doc_scan/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,34 +1,69 @@
#
# This file is autogenerated by pip-compile
# This file is autogenerated by pip-compile with python 3.10
# To update, run:
#
# pip-compile --output-file=requirements.txt requirements.in
#
asn1==2.2.0 # via yoti
certifi==2020.4.5.1 # via requests
cffi==1.14.0 # via cryptography
chardet==3.0.4 # via requests
click==7.1.2 # via flask
cryptography==3.2 # via pyopenssl, yoti
deprecated==1.2.10 # via yoti
filetype==1.0.7 # via -r requirements.in
flask==1.1.2 # via -r requirements.in
future==0.18.2 # via yoti
idna==2.9 # via requests
iso8601==0.1.13 # via yoti
itsdangerous==1.1.0 # via flask
jinja2==2.11.2 # via flask
markupsafe==1.1.1 # via jinja2
protobuf==3.11.3 # via yoti
pycparser==2.20 # via cffi
pyopenssl==19.1.0 # via -r requirements.in, yoti
python-dotenv==0.13.0 # via -r requirements.in
requests==2.23.0 # via yoti
six==1.14.0 # via cryptography, protobuf, pyopenssl
urllib3==1.25.9 # via requests
werkzeug==1.0.1 # via flask
wrapt==1.12.1 # via deprecated
yoti==2.13.0 # via -r requirements.in
asn1==2.2.0
# via yoti
certifi==2020.4.5.1
# via requests
cffi==1.14.0
# via cryptography
chardet==3.0.4
# via requests
click==7.1.2
# via flask
cryptography==3.2
# via
# pyopenssl
# yoti
deprecated==1.2.10
# via yoti
filetype==1.0.7
# via -r requirements.in
flask==1.1.2
# via -r requirements.in
future==0.18.2
# via yoti
idna==2.9
# via requests
iso8601==0.1.13
# via yoti
itsdangerous==1.1.0
# via flask
jinja2==2.11.2
# via flask
markupsafe==1.1.1
# via jinja2
protobuf==3.11.3
# via yoti
pycparser==2.20
# via cffi
pyopenssl==19.1.0
# via
# -r requirements.in
# yoti
python-dotenv==0.13.0
# via -r requirements.in
pytz==2020.4
# via yoti
requests==2.23.0
# via yoti
six==1.16.0
# via
# -r requirements.in
# cryptography
# protobuf
# pyopenssl
urllib3==1.25.9
# via requests
werkzeug==1.0.1
# via flask
wrapt==1.12.1
# via deprecated
yoti==2.14.0
# via -r requirements.in

# The following packages are considered to be unsafe in a requirements file:
# setuptools
10 changes: 10 additions & 0 deletions examples/doc_scan/templates/privacy.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{% include "layout/header.html" %}
<div class="container">
<div class="row pt-4">
<div class="col">
<h1>Privacy Policy</h1>
<p>Demo privacy policy</p>
</div>
</div>
</div>
{% include "layout/footer.html" %}
6 changes: 4 additions & 2 deletions examples/yoti_example_django/requirements.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
django>=3.0.7
django>=4.0.1
django-sslserver>=0.22.0
python-dotenv>=0.7.1
requests>=2.20.0
urllib3>=1.24.2
yoti>=2.13.0
yoti>=2.14.0
six>=1.16.0
cffi>=1.15.0
21 changes: 13 additions & 8 deletions examples/yoti_example_django/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile
# This file is autogenerated by pip-compile with python 3.10
# To update, run:
#
# pip-compile --output-file=requirements.txt requirements.in
Expand All @@ -8,10 +8,14 @@ asgiref==3.4.1
# via django
asn1==2.2.0
# via yoti
backports.zoneinfo==0.2.1
# via django
certifi==2018.4.16
# via requests
cffi==1.14.0
# via cryptography
cffi==1.15.0
# via
# -r requirements.in
# cryptography
chardet==3.0.4
# via requests
cryptography==3.2
Expand All @@ -20,7 +24,7 @@ cryptography==3.2
# yoti
deprecated==1.2.10
# via yoti
django==3.1.12
django==4.0.1
# via
# -r requirements.in
# django-sslserver
Expand All @@ -40,14 +44,15 @@ pyopenssl==18.0.0
# via yoti
python-dotenv==0.8.2
# via -r requirements.in
pytz==2018.4
# via django
pytz==2020.4
# via yoti
requests==2.21.0
# via
# -r requirements.in
# yoti
six==1.11.0
six==1.16.0
# via
# -r requirements.in
# cryptography
# protobuf
# pyopenssl
Expand All @@ -59,7 +64,7 @@ urllib3==1.24.2
# requests
wrapt==1.12.1
# via deprecated
yoti==2.13.0
yoti==2.14.0
# via -r requirements.in

# The following packages are considered to be unsafe in a requirements file:
Expand Down
12 changes: 6 additions & 6 deletions examples/yoti_example_django/yoti_example/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
1. Import the include() function: from django.conf.urls import url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.urls import re_path
from django.contrib import admin

from .views import IndexView, AuthView, DynamicShareView, SourceConstraintsView

urlpatterns = [
url(r"^$", IndexView.as_view(), name="index"),
url(r"^yoti/auth/$", AuthView.as_view(), name="auth"),
url(r"^admin/", admin.site.urls),
url(r"^dynamic-share/$", DynamicShareView.as_view(), name="dynamic-share"),
url(
re_path(r"^$", IndexView.as_view(), name="index"),
re_path(r"^yoti/auth/$", AuthView.as_view(), name="auth"),
re_path(r"^admin/", admin.site.urls),
re_path(r"^dynamic-share/$", DynamicShareView.as_view(), name="dynamic-share"),
re_path(
r"^source-constraint/$",
SourceConstraintsView.as_view(),
name="source-constraints",
Expand Down
13 changes: 7 additions & 6 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
asn1==2.2.0 # asn1 2.3.0 introduces enum34 as a dependency, which causes problems on some envs
cryptography==2.8.0
cffi==1.14.3
cffi==1.15.0
future==0.18.2
itsdangerous==1.1.0
itsdangerous==2.0.1
pbr==1.10.0
protobuf==4.21.12
pyopenssl==19.1.0
PyYAML==5.2 # PyYAML 5.3 does not support Python 3.4
pytz==2022.1
pytz==2021.3
requests>=2.20.0
urllib3>=1.24.3
deprecated==1.2.10
wheel==0.33.6
iso8601==0.1.13
deprecated==1.2.13
wheel==0.37.1
iso8601==1.0.2
six>=1.16.0
21 changes: 9 additions & 12 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with python 3.9
# This file is autogenerated by pip-compile with python 3.10
# To update, run:
#
# pip-compile --output-file=requirements.txt requirements.in
Expand All @@ -8,7 +8,7 @@ asn1==2.2.0
# via -r requirements.in
certifi==2018.11.29
# via requests
cffi==1.14.3
cffi==1.15.0
# via
# -r requirements.in
# cryptography
Expand All @@ -18,15 +18,15 @@ cryptography==2.8
# via
# -r requirements.in
# pyopenssl
deprecated==1.2.10
deprecated==1.2.13
# via -r requirements.in
future==0.18.2
# via -r requirements.in
idna==2.7
# via requests
iso8601==0.1.13
iso8601==1.0.2
# via -r requirements.in
itsdangerous==1.1.0
itsdangerous==2.0.1
# via -r requirements.in
pbr==1.10.0
# via -r requirements.in
Expand All @@ -36,25 +36,22 @@ pycparser==2.18
# via cffi
pyopenssl==19.1.0
# via -r requirements.in
pytz==2022.1
pytz==2021.3
# via -r requirements.in
pyyaml==5.2
# via -r requirements.in
requests==2.21.0
# via -r requirements.in
six==1.10.0
six==1.16.0
# via
# -r requirements.in
# cryptography
# protobuf
# pyopenssl
urllib3==1.24.3
# via
# -r requirements.in
# requests
wheel==0.33.6
wheel==0.37.1
# via -r requirements.in
wrapt==1.11.2
# via deprecated

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

0 comments on commit fc0e5ac

Please sign in to comment.