您好,我是odoo开发的初学者。我为此使用Microsoft Graph API与Office365进行交互,我需要授权从Microsoft重定向的代码,在下一个选项卡中如何获取该代码?请帮助
webbrowser.open('https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=%s&redirect_uri=%s&response_type=code&scope=openid+offline_access+Calendars.ReadWrite+Mail.ReadWrite+Mail.Send+User.ReadWrite+Tasks.ReadWrite+Contacts.ReadWrite' % (
settings.client_id, settings.redirect_url))
time.sleep(15)
print(http.request.httprequest)
我想从下一个标签获取授权代码