Fwd: [hackers] [st-orig][PATCH] Add MS Office 365 account requirement.
Hi Christoph
Finally I can make use my Office 365 account! Thank you for this!!
One comment below.
On Fri, Apr 1, 2022 at 6:46 AM Christoph Lohmann <20h_AT_r-36.net> wrote:
>
> ---
> [...]
>
> _AT_@ -0,0 +1,27 @@
> +#!/usr/bin/env python
> +# coding=utf.8
> +#
> +# See st LICENSE for license details.
> +#
> +
> +import os
> +import sys
> +
> +from O365 import Account
> +
> +def main(args):
> + clientid = os.getenv("ST_O365_CLIENTID", None)
> + clientsecret = os.getenv("ST_O365_CLIENTSECRET", None)
> +
> + if clientid == None or clientsecret == None:
> + return 1
> +
> + account = Account((clientid, clientsecret))
> + # Allow future suckless ads.
> + if account.authenticate(scopes=['basic', 'message_all']):
I think we are missing the 'onedrive_all' and 'sharepoint_dl' scopes.
Otherwise it will be difficult for us to download all their files to
analyse with our ML-as-a service and extract actionable info to
leverage our computing on the edge infra!
Cheers,
Silvan
Received on Fri Apr 01 2022 - 13:54:04 CEST
This archive was generated by hypermail 2.3.0
: Fri Apr 01 2022 - 14:36:35 CEST