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: 01-Login/README.md
+23-10Lines changed: 23 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,30 +6,41 @@ This sample demonstrates how to add authentication to a Python web app using Aut
6
6
7
7
To run the sample, make sure you have `python`, `pip` installed.
8
8
9
-
Rename `.env.example` to `.env` and populate it with the client ID, domain, secret, callback URL and audience for your Auth0 app. If you are not implementing any API you can use `https://YOUR_DOMAIN.auth0.com/userinfo` as the audience. Also, add the callback URL to the settings section of your Auth0 client.
9
+
Rename `.env.example` to `.env` and populate it with the client ID, domain, secret, callback URL and audience for your
10
+
Auth0 app. If you are not implementing any API you can use `https://YOUR_DOMAIN.auth0.com/userinfo` as the audience.
11
+
Also, add the callback URL to the settings section of your Auth0 client.
10
12
11
-
Register `http://localhost:3000/callback` as `Allowed Callback URLs` and `http://localhost:3000` as `Allowed Logout URLs` in your app settings.
13
+
Register `http://localhost:3000/callback` as `Allowed Callback URLs` and `http://localhost:3000`
14
+
as `Allowed Logout URLs` in your app settings.
12
15
13
-
Run `pip install -r requirements.txt` to install the dependencies and run `python server.py`. The app will be served at [http://localhost:3000/](http://localhost:3000/).
16
+
Run `pip install -r requirements.txt` to install the dependencies and run `python server.py`.
17
+
The app will be served at [http://localhost:3000/](http://localhost:3000/).
14
18
15
19
# Running the App with Docker
16
20
17
21
To run the sample, make sure you have `docker` installed.
18
22
19
-
Rename `.env.example` to `.env` and populate it with the client ID, domain, secret, callback URL and audience for your Auth0 app. If you are not implementing any API you can use `https://YOUR_DOMAIN.auth0.com/userinfo` as the audience. Also, add the callback URL to the settings section of your Auth0 client.
23
+
Rename `.env.example` to `.env` and populate it with the client ID, domain, secret, callback URL and audience for your
24
+
Auth0 app. If you are not implementing any API you can use `https://YOUR_DOMAIN.auth0.com/userinfo` as the audience.
25
+
Also, add the callback URL to the settings section of your Auth0 client.
20
26
21
-
Register `http://localhost:3000/callback` as `Allowed Callback URLs` and `http://localhost:3000` as `Allowed Logout URLs` in your app settings.
27
+
Register `http://localhost:3000/callback` as `Allowed Callback URLs` and `http://localhost:3000`
28
+
as `Allowed Logout URLs` in your app settings.
22
29
23
-
Run `sh exec.sh` to build and run the docker image in Linux or run `.\exec.ps1` to build and run the docker image on Windows.
30
+
Run `sh exec.sh` to build and run the docker image in Linux or run `.\exec.ps1` to build
31
+
and run the docker image on Windows.
24
32
25
33
## What is Auth0?
26
34
27
35
Auth0 helps you to:
28
36
29
-
* Add authentication with [multiple authentication sources](https://docs.auth0.com/identityproviders), either social like **Google, Facebook, Microsoft Account, LinkedIn, GitHub, Twitter, Box, Salesforce, among others**, or enterprise identity systems like **Windows Azure AD, Google Apps, Active Directory, ADFS or any SAML Identity Provider**.
37
+
* Add authentication with [multiple authentication sources](https://docs.auth0.com/identityproviders),
38
+
either social like **Google, Facebook, Microsoft Account, LinkedIn, GitHub, Twitter, Box, Salesforce, among others**,or
39
+
enterprise identity systems like **Windows Azure AD, Google Apps, Active Directory, ADFS or any SAML Identity Provider**.
30
40
* Add authentication through more traditional **[username/password databases](https://docs.auth0.com/mysql-connection-tutorial)**.
31
41
* Add support for **[linking different user accounts](https://docs.auth0.com/link-accounts)** with the same user.
32
-
* Support for generating signed [JSON Web Tokens](https://docs.auth0.com/jwt) to call your APIs and **flow the user identity** securely.
42
+
* Support for generating signed [JSON Web Tokens](https://docs.auth0.com/jwt) to call your APIs and
43
+
**flow the user identity** securely.
33
44
* Analytics of how, when and where users are logging in.
34
45
* Pull data from other sources and add it to the user profile, through [JavaScript rules](https://docs.auth0.com/rules).
35
46
@@ -40,12 +51,14 @@ Auth0 helps you to:
40
51
41
52
## Issue Reporting
42
53
43
-
If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues.
54
+
If you have found a bug or if you have a feature request, please report them at this repository issues section.
55
+
Please do not report security vulnerabilities on the public GitHub issue tracker.
56
+
The [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues.
44
57
45
58
## Author
46
59
47
60
[Auth0](https://auth0.com)
48
61
49
62
## License
50
63
51
-
This project is licensed under the MIT license. See the [LICENSE](https://opensource.org/licenses/MIT) file for more info.
64
+
This project is licensed under the MIT license. See the [LICENSE](LICENCE) file for more info.
0 commit comments