Skip to content
Prev Previous commit
Next Next commit
Addressing PR comments
  • Loading branch information
abhidnya13 committed Apr 29, 2019
commit 4ab2d2b2d109bb583427afc2b36599acca7341bd
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@
}

You can then run this sample with a JSON configuration file:

python sample.py parameters.json
On the browser open http://localhost:5000/

"""

import sys # For simplicity, we'll read config file from 1st CLI param sys.argv[1]
import json
import logging
import uuid

import flask as flask
import flask

import msal

Expand All @@ -45,9 +46,8 @@

@app.route("/")
def main():
login_url = 'http://localhost:5000/login'
resp = flask.Response(status=307)
resp.headers['location'] = login_url
resp.headers['location'] = '/login'
return resp


Expand All @@ -62,8 +62,6 @@ def login():
return resp


# Our configured redirect uri is http://localhost:8000/getAToken.
# This is where it comes back after getting back auth code from AAD
@app.route("/getAToken")
def main_logic():
code = flask.request.args['code']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Acquire Token Result </title>
</head>
<body>
<p1><b>User Data:</b> </p1>
<p1><b>Acquire Token Result</b> </p1>
<table>
{% for key, value in auth_result.items() %}
<tr>
Expand Down