Skip to content

Commit 11224fc

Browse files
Merge pull request #324 from getyoti/feature/extend_auth_type
SDK-1838 auth_type for doc_scan session
2 parents 20c7c02 + b269b24 commit 11224fc

File tree

17 files changed

+333
-114
lines changed

17 files changed

+333
-114
lines changed

.github/workflows/sonar.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
- run: pytest --cov=yoti_python_sdk yoti_python_sdk/tests --cov-report=xml:coverage-reports/coverage-new.xml
2828

29-
- run: sed -i 's+<source>.*</source>+<source>/home/travis/build/getyoti/yoti-python-sdk/yoti_python_sdk</source>+g' coverage-reports/coverage-new.xml
29+
- run: sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage-reports/coverage-new.xml
3030

3131
- uses: sonarsource/sonarcloud-github-action@master
3232
env:

.github/workflows/tests.yaml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v2
2020

21-
- uses: actions/setup-python@v2.1.4
21+
- uses: actions/setup-python@v2.3.1
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424

@@ -40,18 +40,12 @@ jobs:
4040
steps:
4141
- uses: actions/checkout@v2
4242

43-
- uses: actions/[email protected]
44-
with:
45-
python-version: 3.9
43+
- uses: actions/[email protected]
4644

4745
- run: pip install -U setuptools==45
4846

49-
- run: sudo apt install python3-distutils -y
47+
- run: pip install wheel
5048

5149
- run: pushd examples/aml && pip install -r requirements.txt && popd
5250

53-
- run: pushd examples/yoti_example_django && pip install -r requirements.txt && popd
54-
5551
- run: pushd examples/yoti_example_flask && pip install -r requirements.txt && popd
56-
57-
- run: pushd examples/doc_scan && pip install -r requirements.txt && popd

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.14.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/requirements.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ python-dotenv>=0.13.0
33
yoti>=2.14.0
44
filetype>=1.0.7
55
pyopenssl>=19.1.0
6+
six>=1.16.0

examples/doc_scan/requirements.txt

Lines changed: 61 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,69 @@
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
66
#
7-
asn1==2.2.0 # via yoti
8-
certifi==2020.4.5.1 # via requests
9-
cffi==1.14.0 # via cryptography
10-
chardet==3.0.4 # via requests
11-
click==7.1.2 # via flask
12-
cryptography==3.2 # via pyopenssl, yoti
13-
deprecated==1.2.10 # via yoti
14-
filetype==1.0.7 # via -r requirements.in
15-
flask==1.1.2 # via -r requirements.in
16-
future==0.18.2 # via yoti
17-
idna==2.9 # via requests
18-
iso8601==0.1.13 # via yoti
19-
itsdangerous==1.1.0 # via flask
20-
jinja2==2.11.2 # via flask
21-
markupsafe==1.1.1 # via jinja2
22-
protobuf==3.11.3 # via yoti
23-
pycparser==2.20 # via cffi
24-
pyopenssl==19.1.0 # via -r requirements.in, yoti
25-
python-dotenv==0.13.0 # via -r requirements.in
26-
pytz==2020.4 # via yoti
27-
requests==2.23.0 # via yoti
28-
six==1.14.0 # via cryptography, protobuf, pyopenssl
29-
urllib3==1.25.9 # via requests
30-
werkzeug==1.0.1 # via flask
31-
wrapt==1.12.1 # via deprecated
32-
yoti==2.14.0 # via -r requirements.in
7+
asn1==2.2.0
8+
# via yoti
9+
certifi==2020.4.5.1
10+
# via requests
11+
cffi==1.14.0
12+
# via cryptography
13+
chardet==3.0.4
14+
# via requests
15+
click==7.1.2
16+
# via flask
17+
cryptography==3.2
18+
# via
19+
# pyopenssl
20+
# yoti
21+
deprecated==1.2.10
22+
# via yoti
23+
filetype==1.0.7
24+
# via -r requirements.in
25+
flask==1.1.2
26+
# via -r requirements.in
27+
future==0.18.2
28+
# via yoti
29+
idna==2.9
30+
# via requests
31+
iso8601==0.1.13
32+
# via yoti
33+
itsdangerous==1.1.0
34+
# via flask
35+
jinja2==2.11.2
36+
# via flask
37+
markupsafe==1.1.1
38+
# via jinja2
39+
protobuf==3.11.3
40+
# via yoti
41+
pycparser==2.20
42+
# via cffi
43+
pyopenssl==19.1.0
44+
# via
45+
# -r requirements.in
46+
# yoti
47+
python-dotenv==0.13.0
48+
# via -r requirements.in
49+
pytz==2020.4
50+
# via yoti
51+
requests==2.23.0
52+
# via yoti
53+
six==1.16.0
54+
# via
55+
# -r requirements.in
56+
# cryptography
57+
# protobuf
58+
# pyopenssl
59+
urllib3==1.25.9
60+
# via requests
61+
werkzeug==1.0.1
62+
# via flask
63+
wrapt==1.12.1
64+
# via deprecated
65+
yoti==2.14.0
66+
# via -r requirements.in
3367

3468
# The following packages are considered to be unsafe in a requirements file:
3569
# setuptools
Lines changed: 3 additions & 1 deletion
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
66
yoti>=2.14.0
7+
six>=1.16.0
8+
cffi>=1.15.0
Lines changed: 63 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,71 @@
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
66
#
7-
asgiref==3.4.1 # via django
8-
asn1==2.2.0 # via yoti
9-
certifi==2018.4.16 # via requests
10-
cffi==1.14.0 # via cryptography
11-
chardet==3.0.4 # via requests
12-
cryptography==3.2 # via pyopenssl, yoti
13-
deprecated==1.2.10 # via yoti
14-
django-sslserver==0.22 # via -r requirements.in
15-
django==3.1.12 # via -r requirements.in, django-sslserver
16-
future==0.16.0 # via yoti
17-
idna==2.7 # via requests
18-
iso8601==0.1.13 # via yoti
19-
protobuf==3.6.0 # via yoti
20-
pycparser==2.18 # via cffi
21-
pyopenssl==18.0.0 # via yoti
22-
python-dotenv==0.8.2 # via -r requirements.in
23-
pytz==2020.4 # via django, yoti
24-
requests==2.21.0 # via -r requirements.in, yoti
25-
six==1.11.0 # via cryptography, protobuf, pyopenssl
26-
sqlparse==0.3.0 # via django
27-
urllib3==1.24.2 # via -r requirements.in, requests
28-
wrapt==1.12.1 # via deprecated
29-
yoti==2.14.0 # via -r requirements.in
7+
asgiref==3.4.1
8+
# via django
9+
asn1==2.2.0
10+
# via yoti
11+
backports.zoneinfo==0.2.1
12+
# via django
13+
certifi==2018.4.16
14+
# via requests
15+
cffi==1.15.0
16+
# via
17+
# -r requirements.in
18+
# cryptography
19+
chardet==3.0.4
20+
# via requests
21+
cryptography==3.2
22+
# via
23+
# pyopenssl
24+
# yoti
25+
deprecated==1.2.10
26+
# via yoti
27+
django==4.0.1
28+
# via
29+
# -r requirements.in
30+
# django-sslserver
31+
django-sslserver==0.22
32+
# via -r requirements.in
33+
future==0.16.0
34+
# via yoti
35+
idna==2.7
36+
# via requests
37+
iso8601==0.1.13
38+
# via yoti
39+
protobuf==3.6.0
40+
# via yoti
41+
pycparser==2.18
42+
# via cffi
43+
pyopenssl==18.0.0
44+
# via yoti
45+
python-dotenv==0.8.2
46+
# via -r requirements.in
47+
pytz==2020.4
48+
# via yoti
49+
requests==2.21.0
50+
# via
51+
# -r requirements.in
52+
# yoti
53+
six==1.16.0
54+
# via
55+
# -r requirements.in
56+
# cryptography
57+
# protobuf
58+
# pyopenssl
59+
sqlparse==0.3.0
60+
# via django
61+
urllib3==1.24.2
62+
# via
63+
# -r requirements.in
64+
# requests
65+
wrapt==1.12.1
66+
# via deprecated
67+
yoti==2.14.0
68+
# via -r requirements.in
3069

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

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",
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cffi>=1.14.0
1+
cffi>=1.15.0
22
flask>=1.0.4
33
jinja2>=2.8.1
44
pyopenssl>=19.0.0
@@ -7,3 +7,4 @@ requests>=2.20.0
77
urllib3>=1.24.2
88
yoti>=2.14.0
99
werkzeug>=1.0.1
10+
six==1.16.0

0 commit comments

Comments
 (0)