Skip to content

Commit 75f4f23

Browse files
committed
GraphCall link becomes optional in UI, to conceptually allow a sign-in-only scenario
1 parent 3d332dc commit 75f4f23

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

templates/index.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@
55
</head>
66
<body>
77
<h1>Microsoft Identity Python Web App</h1>
8-
<h2>Powered by MSAL Python {{ version }}</h2>
9-
Welcome {{ user.get("name") }}!
10-
<li><a href='/graphcall'>Call Microsoft Graph API</a></li>
8+
<h2>Welcome {{ user.get("name") }}!</h2>
9+
10+
{% if config.get("ENDPOINT") %}
11+
<li><a href='/graphcall'>Call Microsoft Graph API</a></li>
12+
{% endif %}
13+
1114
<li><a href="/logout">Logout</a></li>
15+
<hr>
16+
<footer style="text-align: right">Powered by MSAL Python {{ version }}</footer>
1217
</body>
1318
</html>
1419

0 commit comments

Comments
 (0)