¶
botcity.plugins.ms365.credentials.MS365CredentialsPlugin
¶
credentials
property
¶
The credentials being used for authentication.
ms365_account
property
¶
The Office365/Microsoft365 account service.
You can use this property to access Microsoft365 functionalities.
__init__(client_id, client_secret, token_path='')
¶
MS365CredentialsPlugin.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
client_id
|
str
|
The client ID for the app created in the Azure Portal. |
required |
client_secret
|
str
|
The id from the generated client secret. |
required |
token_path
|
str
|
The path that will be used to create the token file. Defaults to the current working dir. |
''
|
authenticate(scopes=[])
¶
Authenticate the Microsoft365 account with the credentials of the created application.
Scopes must match permissions added to the project in the Azure portal.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scopes
|
List[Scopes]
|
The permission scopes defined in the Scopes class that will be used for authentication. |
[]
|