Skip to content

Commit 5d8db2d

Browse files
authored
Merge pull request #65 from auth0-samples/fix-tests
2 parents 0ac84a1 + 74b9da1 commit 5d8db2d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

01-Login/.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
AUTH0_CLIENT_ID={CLIENT_ID}
2+
AUTH0_CLIENT_SECRET={CLIENT_SECRET}
23
AUTH0_DOMAIN={DOMAIN}
34
APP_SECRET_KEY=ALongRandomlyGeneratedString

01-Login/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
oauth.register(
2323
"auth0",
2424
client_id=env.get("AUTH0_CLIENT_ID"),
25+
client_secret=env.get("AUTH0_CLIENT_SECRET"),
2526
client_kwargs={
2627
"scope": "openid profile email",
2728
},

01-Login/templates/home.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
<body>
77
{% if session %}
88
<h1>Welcome {{session.userinfo.name}}!</h1>
9-
<p><a href="/logout">Logout</a></p>
9+
<p><a href="/logout" id="qsLogoutBtn">Logout</a></p>
1010
<div><pre>{{pretty}}</pre></div>
1111
{% else %}
12-
<h1>Welcome Guest</h1>
13-
<p><a href="/login">Login</a></p>
12+
<h1 id="profileDropDown">Welcome Guest</h1>
13+
<p><a href="/login" id="qsLoginBtn">Login</a></p>
1414
{% endif %}
1515
</body>
1616
</html>

0 commit comments

Comments
 (0)