rpaframework icon indicating copy to clipboard operation
rpaframework copied to clipboard

`RPA.Email.Exchange` code example(s) & docstrings should use OAuth2

Open tonnitommi opened this issue 3 years ago • 2 comments

https://github.com/robocorp/rpaframework/blob/02f90774c15d9b2f9e7d90f74ab30d9f47d63d3b/packages/main/src/RPA/Email/Exchange.py#L91

Exchange basic authentication flow will be deprecated from October 1st, 2022. The examples should be updated to use Oauth2 Auth Code flow.

Example here: https://robocorp.com/portal/robot/robocorp/example-oauth-email

tonnitommi avatar Aug 18 '22 09:08 tonnitommi

Since the flow isn't trivial, we can reference here in the docstring the OAuth2 type of authorization and we link the Portal example for rest of the code.

We might be lucky enough to be able to still use Exchange with App Passwords even after that date. (and as @sahokas suggested in a demo, we should take this security compromise instead of generating confusion and support tickets)

cmin764 avatar Aug 31 '22 15:08 cmin764

Since App Passwords can't be used anymore with Exchange, it really makes sense to adapt the entire docstring and examples to the OAuth2 flow.

cmin764 avatar Oct 11 '22 11:10 cmin764