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 Magic Link example app within the cloned repo.
23
+
2. Navigate to the Magic Link example app within the cloned repo.
29
24
```bash
30
25
$ cd python-flask-example-applications/python-flask-magic-link-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
export WORKOS_API_KEY=<value found in step 6>
58
53
export WORKOS_CLIENT_ID=<value found in step 6>
59
54
```
60
55
61
56
To exit the Nano text editor, type `CTRL + x`. When prompted to "Save modified buffer", type `Y`, then press the `Enter` or `Return` key.
62
57
63
-
9. Source the environment variables so they are accessible to the operating system.
58
+
8. Source the environment variables so they are accessible to the operating system.
64
59
```bash
65
60
(env) $ source .env
66
61
```
@@ -71,7 +66,7 @@ An example Flask application demonstrating how to use the [WorkOS Python SDK](ht
0 commit comments