Skip to content

v 2.4.3

Compare
Choose a tag to compare
@vgrem vgrem released this 22 Jul 14:44
· 298 commits to master since this release

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)