File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def login():
2727 redirect_uri = url_for ("authorized" , _external = True ))
2828 return "<a href='%s'>Login with Microsoft Identity</a>" % auth_url
2929
30- @app .route ("/getAToken" ) # Its absolute URL must match your app's redirect_uri set in AAD
30+ @app .route (app_config . REDIRECT_PATH ) # Its absolute URL must match your app's redirect_uri set in AAD
3131def authorized ():
3232 if request .args ['state' ] != session .get ("state" ):
3333 return redirect (url_for ("login" ))
Original file line number Diff line number Diff line change 1313
1414CLIENT_ID = "Enter_the_Application_Id_here"
1515
16+ REDIRECT_PATH = "/getAToken" # It will be used to form an absolute URL
17+ # And that absolute URL must match your app's redirect_uri set in AAD
18+
1619# You can find more Microsoft Graph API endpoints from Graph Explorer
1720# https://developer.microsoft.com/en-us/graph/graph-explorer
1821ENDPOINT = 'https://graph.microsoft.com/v1.0/users' # This resource requires no admin consent
You can’t perform that action at this time.
0 commit comments