Skip to content
Prev Previous commit
Next Next commit
Adding comments
  • Loading branch information
abhidnya13 committed Apr 23, 2019
commit 62752cf933589aa06f72ec99f80df4b7e81d7f66
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
{
"authority": "https://login.microsoftonline.com/organizations",
"client_id": "your_client_id",
"scope": ["https://graph.microsoft.com/.default"]
"scope": ["https://graph.microsoft.com/.default"],
"redirect_uri": "http://localhost:5000/getAToken",
// Configure this redirect uri for this sample
"client_secret": "yoursecret"
}

Expand Down Expand Up @@ -60,6 +62,8 @@ 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