v 2.4.3
Changelog
- #682: fixes the bug with loosing event handlers
- Support for Interactive authentication via
ClientContext.with_interactive
method introduced - #713: support for oauth2 device code auth introduced
Example: demonstrates how to interactively authenticate via ClientContext
client
tenant = "contoso.onmicrosoft.com"
ctx = ClientContext(site_url).with_interactive(tenant, client_id)
me = ctx.web.current_user.get().execute_query()
print(me.login_name)