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
3. Navigate to the sso app within the cloned repo.
23
+
2. Navigate to the sso app within the cloned repo.
29
24
```bash
30
25
$ cd python-flask-example-applications/python-flask-sso-example
31
26
```
32
27
33
-
4. Create and source a Python virtual environment. You should then see `(env)` at the beginning of your command-line prompt.
28
+
3. Create and source a Python virtual environment. You should then see `(env)` at the beginning of your command-line prompt.
34
29
```bash
35
30
$ python3 -m venv env
36
31
$ source env/bin/activate
37
32
(env) $
38
33
```
39
34
40
-
5. Install the cloned app's dependencies.
35
+
4. Install the cloned app's dependencies.
41
36
```bash
42
37
(env) $ pip install -r requirements.txt
43
38
```
44
39
45
-
6. Obtain and make note of the following values. In the next step, these will be set as environment variables.
40
+
5. Obtain and make note of the following values. In the next step, these will be set as environment variables.
46
41
- Your [WorkOS API key](https://dashboard.workos.com/api-keys)
47
42
- Your [SSO-specific, WorkOS Client ID](https://dashboard.workos.com/configuration)
48
43
49
-
7. Ensure you're in the root directory for the example app, `python-flask-sso-example/`. Create a `.env` file to securely store the environment variables. Open this file with the Nano text editor. (This file is listed in this repo's `.gitignore` file, so your sensitive information will not be checked into version control.)
44
+
6. Ensure you're in the root directory for the example app, `python-flask-sso-example/`. Create a `.env` file to securely store the environment variables. Open this file with the Nano text editor. (This file is listed in this repo's `.gitignore` file, so your sensitive information will not be checked into version control.)
50
45
```bash
51
46
(env) $ touch .env
52
47
(env) $ nano .env
53
48
```
54
49
55
-
8. Once the Nano text editor opens, you can directly edit the `.env` file by listing the environment variables:
50
+
7. Once the Nano text editor opens, you can directly edit the `.env` file by listing the environment variables:
56
51
```bash
57
52
WORKOS_API_KEY=<value found in step 6>
58
53
WORKOS_CLIENT_ID=<value found in step 6>
@@ -61,7 +56,7 @@ An example Flask application demonstrating how to use the [WorkOS Python SDK](ht
61
56
62
57
To exit the Nano text editor, type `CTRL + x`. When prompted to "Save modified buffer", type `Y`, then press the `Enter` or `Return` key.
63
58
64
-
9. Source the environment variables so they are accessible to the operating system.
59
+
8. Source the environment variables so they are accessible to the operating system.
65
60
```bash
66
61
(env) $ source .env
67
62
```
@@ -72,9 +67,9 @@ An example Flask application demonstrating how to use the [WorkOS Python SDK](ht
72
67
(env) $ echo$WORKOS_CLIENT_ID
73
68
```
74
69
75
-
10. In `python-flask-sso-example/app.py` change the `CUSTOMER_CONNECTION_ID` string value to the connection you will be testing the login for. This can be found in your WorkOS Dashboard.
70
+
9. In `python-flask-sso-example/app.py` change the `CUSTOMER_CONNECTION_ID` string value to the connection you will be testing the login for. This can be found in your WorkOS Dashboard.
76
71
77
-
11. The final setup step is to start the server.
72
+
10. The final setup step is to start the server.
78
73
```bash
79
74
(env) $ flask run
80
75
```
@@ -110,7 +105,7 @@ If you get stuck, please reach out to us at [email protected] so we can help.
110
105
111
106
## Testing the Integration
112
107
113
-
12. Naviagte to the `python-flask-sso-example` directory. Source the virtual environment we created earlier, if it isn't still activated from the steps above. Start the Flask server locally.
108
+
11. Naviagte to the `python-flask-sso-example` directory. Source the virtual environment we created earlier, if it isn't still activated from the steps above. Start the Flask server locally.
0 commit comments