You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,17 +91,15 @@ import "yoti_python_sdk"
91
91
92
92
After creating your application on the [Yoti Dashboard](https://www.yoti.com/dashboard/), you need to download the `.PEM` key and save it *outside* the repo (keep it private).
93
93
94
-
The following variables are then required for the SDK to work:
94
+
The following variables are then required for the SDK to work, these are found under the different tabs of your Yoti application's settings page ([Yoti Dashboard](https://www.yoti.com/dashboard/)):
95
95
96
-
*`YOTI_CLIENT_SDK_ID` - is the SDK identifier generated by Yoti Dashboard in the Key tab when you create your app. Note this is not your Application Identifier which is needed by your client-side code
97
-
*`YOTI_KEY_FILE_PATH` - is the path to the application pem file. It can be downloaded only once from the Keys tab in your Yoti Dashboard. (e.g. /home/user/.ssh/access-security.pem)
96
+
***`YOTI_APPLICATION_ID`** - This is used to configure the [Yoti Login Button](https://www.yoti.com/developers/documentation/#2-front-end-integration).
97
+
***`YOTI_CLIENT_SDK_ID`** - is the SDK identifier generated by Yoti Dashboard in the Key tab when you create your app. Note this is not your Application Identifier which is needed by your client-side code
98
+
***`YOTI_KEY_FILE_PATH`** - is the path to the application .pem file, we recommend keeping your .pem file outside of your repository. It can be downloaded only once from the Keys tab in your Yoti Dashboard. (e.g. /home/user/.ssh/access-security.pem)
98
99
99
-
Please do not open the pem file as this might corrupt the key and you will need to create a new application.
100
+
**Please do not open the pem file** as this might corrupt the key and you will need to create a new application.
100
101
101
-
The following env variables are additionally used to configure your backend:
102
-
*`YOTI_APPLICATION_ID` - found on the Integrations settings page, used to configure the [Yoti Login Button](https://www.yoti.com/developers/#login-button-setup).
103
-
104
-
Keeping your settings and access keys outside your repository is highly recommended.
102
+
One way to configure these environment variables is to use an .env file. There are `.env.example` files supplied in the [Django](/examples/yoti_example_django/yoti_example/.env.example) and [Flask](/examples/yoti_example_flask/.env.example) example projects, which you can rename to `.env` and enter your settings into this file.
* And then use the following settings to configure the plugin:
53
+
The following variables are then required for the plugin to work, these are found under the different tabs of your Yoti application's settings page ([Yoti Dashboard](https://www.yoti.com/dashboard/)):
54
54
55
+
***`YOTI_APPLICATION_ID`** - This is used to configure the [Yoti Login Button](https://www.yoti.com/developers/documentation/#2-front-end-integration).
56
+
***`YOTI_CLIENT_SDK_ID`** - is the SDK identifier generated by Yoti Dashboard in the Key tab when you create your app. Note this is not your Application Identifier which is needed by your client-side code
57
+
***`YOTI_KEY_FILE_PATH`** - is the path to the application .pem file, we recommend keeping your .pem file outside of your repository. It can be downloaded only once from the Keys tab in your Yoti Dashboard. (e.g. /home/user/.ssh/access-security.pem)
55
58
59
+
**Please do not open the pem file** as this might corrupt the key and you will need to create a new application.
60
+
61
+
One way to configure these environment variables is to use an .env file. There are `.env.example` files supplied in the [Django](/examples/yoti_example_django/yoti_example/.env.example) and [Flask](/examples/yoti_example_flask/.env.example) example projects, which you can rename to `.env` and enter your settings into this file.
62
+
63
+
Alternatively you could define these settings in the `settings.py` file like this:
56
64
```python
57
65
# your_django_project/settings.py
58
66
@@ -65,21 +73,6 @@ YOTI = {
65
73
...
66
74
}
67
75
```
68
-
***`YOTI_APPLICATION_ID`** - **required**, *can be also set by env variable with the same name*<br>
69
-
Your Yoti application's ID, found under the `INTEGRATIONS` tab of your
*Don't forget to set an `app.secret_key` to be able to use `sessions`*
19
19
20
-
* And then use the following settings to configure the plugin:
20
+
The following variables are then required for the plugin to work, these are found under the different tabs of your Yoti application's settings page ([Yoti Dashboard](https://www.yoti.com/dashboard/)):
21
21
22
+
***`YOTI_APPLICATION_ID`** - This is used to configure the [Yoti Login Button](https://www.yoti.com/developers/documentation/#2-front-end-integration).
23
+
***`YOTI_CLIENT_SDK_ID`** - is the SDK identifier generated by Yoti Dashboard in the Key tab when you create your app. Note this is not your Application Identifier which is needed by your client-side code
24
+
***`YOTI_KEY_FILE_PATH`** - is the path to the application .pem file, we recommend keeping your .pem file outside of your repository. It can be downloaded only once from the Keys tab in your Yoti Dashboard. (e.g. /home/user/.ssh/access-security.pem)
25
+
26
+
**Please do not open the pem file** as this might corrupt the key and you will need to create a new application.
27
+
28
+
One way to configure these environment variables is to use an .env file. There are `.env.example` files supplied in the [Django](/examples/yoti_example_django/yoti_example/.env.example) and [Flask](/examples/yoti_example_flask/.env.example) example projects, which you can rename to `.env` and enter your settings into this file.
29
+
30
+
Alternatively you could define these settings in the `app.py` file like this:
22
31
23
32
```python
24
33
# your_flask_project/app.py
@@ -32,21 +41,6 @@ app.config.update({
32
41
...
33
42
})
34
43
```
35
-
***`YOTI_APPLICATION_ID`** - **required**, *can be also set by env variable with the same name*<br>
36
-
Your Yoti application's ID, found under the `INTEGRATIONS` tab of your
0 commit comments