Skip to content

Commit b610d16

Browse files
committed
Merge branch 'development'
2 parents eb0fb79 + b6de0d2 commit b610d16

File tree

23 files changed

+131
-38
lines changed

23 files changed

+131
-38
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ client = Client(YOTI_CLIENT_SDK_ID, YOTI_KEY_FILE_PATH)
120120
activity_details = client.get_activity_details(token)
121121

122122
profile = activity_details.profile
123-
123+
124124
selfie = profile.selfie.value
125125
given_names = profile.given_names.value
126126
family_name = profile.family_name.value
@@ -131,8 +131,9 @@ postal_address = profile.postal_address.value
131131
gender = profile.gender.value
132132
nationality = profile.nationality.value
133133
email_address = profile.email_address.value
134-
134+
135135
remember_me_id = activity_details.user_id
136+
parent_remember_me_id = activity_details.parent_remember_me_id
136137
receipt_id = activity_details.receipt_id
137138
timestamp = activity_details.timestamp
138139
base64_selfie_uri = activity_details.base64_selfie_uri
@@ -281,6 +282,7 @@ For information on testing with multiple Python versions, see [VERSION-SUPPORT.m
281282

282283
* Activity Details
283284
* [X] Remember Me ID `user_id`
285+
* [X] Parent Remember Me ID `parent_remember_me_id`
284286
* [X] ReceiptID `receipt_id`
285287
* [X] Timestamp `timestamp`
286288
* [X] Profile `profile`

examples/yoti_example_django/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3
1+
FROM python:3.6.3
22
ARG YOTI_APPLICATION_ID
33
ARG YOTI_CLIENT_SDK_ID
44
ARG YOTI_KEY_FILE_PATH

examples/yoti_example_django/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ services:
88
YOTI_CLIENT_SDK_ID: "${YOTI_CLIENT_SDK_ID}"
99
YOTI_KEY_FILE_PATH: "${YOTI_KEY_FILE_PATH}"
1010
ports:
11-
- "5000:5000"
11+
- "5000:5000"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
yoti>=2.5.0
2-
Django==1.11
2+
Django>1.11.16
33
python-dotenv>=0.7.1
44
django-sslserver

examples/yoti_example_django/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cffi==1.11.5 # via cryptography
1111
chardet==3.0.4 # via requests
1212
cryptography==2.2.2 # via pyopenssl, yoti
1313
django-sslserver==0.20
14-
django==1.11
14+
django==2.1.7
1515
future==0.16.0 # via yoti
1616
idna==2.7 # via cryptography, requests
1717
protobuf==3.6.0 # via yoti

examples/yoti_example_django/yoti_example/templates/profile.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ <h3>Yoti Profile</h3>
4646
<td>{{user_id}}</td>
4747
</tr>
4848
{% endif %}
49+
{% if parent_remember_me_id %}
50+
<tr>
51+
<th scope="row">Parent Remember Me ID</th>
52+
<td>{{parent_remember_me_id}}</td>
53+
</tr>
54+
{% endif %}
4955
{% if given_names %}
5056
<tr>
5157
<th scope="row">Given Name(s)</th>

examples/yoti_example_django/yoti_example/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def get(self, request, *args, **kwargs):
3030
context = profile_dict.get('attributes')
3131
context['base64_selfie_uri'] = getattr(activity_details, 'base64_selfie_uri')
3232
context['user_id'] = getattr(activity_details, 'user_id')
33+
context['parent_remember_me_id'] = getattr(activity_details, 'parent_remember_me_id')
3334
context['receipt_id'] = getattr(activity_details, 'receipt_id')
3435
context['timestamp'] = getattr(activity_details, 'timestamp')
3536

examples/yoti_example_flask/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3
1+
FROM python:3.6.3
22
ARG YOTI_APPLICATION_ID
33
ARG YOTI_CLIENT_SDK_ID
44
ARG YOTI_KEY_FILE_PATH

examples/yoti_example_flask/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def auth():
4141
context = profile_dict.get('attributes')
4242
context['base64_selfie_uri'] = getattr(activity_details, 'base64_selfie_uri')
4343
context['user_id'] = getattr(activity_details, 'user_id')
44+
context['parent_remember_me_id'] = getattr(activity_details, 'parent_remember_me_id')
4445
context['receipt_id'] = getattr(activity_details, 'receipt_id')
4546
context['timestamp'] = getattr(activity_details, 'timestamp')
4647

examples/yoti_example_flask/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ services:
88
YOTI_CLIENT_SDK_ID: "${YOTI_CLIENT_SDK_ID}"
99
YOTI_KEY_FILE_PATH: "${YOTI_KEY_FILE_PATH}"
1010
ports:
11-
- "5000:5000"
11+
- "5000:5000"

0 commit comments

Comments
 (0)