Skip to content

Commit a51912c

Browse files
committed
Show MSAL Python version
So that we know we are testing with the right MSAL Python during each new release.
1 parent bcd0f39 commit a51912c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
def index():
1616
if not session.get("user"):
1717
return redirect(url_for("login"))
18-
return render_template('index.html', user=session["user"])
18+
return render_template('index.html', user=session["user"], version=msal.__version__)
1919

2020
@app.route("/login")
2121
def login():

templates/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
</head>
66
<body>
77
<h1>Microsoft Identity Python Web App</h1>
8+
<h2>Powered by MSAL Python {{ version }}</h2>
89
Welcome {{ user.get("name") }}!
910
<li><a href='/graphcall'>Call Microsoft Graph API</a></li>
1011
<li><a href="/logout">Logout</a></li>

0 commit comments

Comments
 (0)