https://github.com/dcnsakthi/msauthpy
MS OAuth Python
https://github.com/dcnsakthi/msauthpy
Last synced: 10 days ago
JSON representation
MS OAuth Python
- Host: GitHub
- URL: https://github.com/dcnsakthi/msauthpy
- Owner: dcnsakthi
- License: mit
- Created: 2024-07-29T04:48:54.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-07-29T09:31:39.000Z (10 months ago)
- Last Synced: 2025-02-17T16:52:31.048Z (3 months ago)
- Language: Python
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Microsoft Graph OAuth Python (msauthpy)
The sample consists of three main files, along with one requirements file. In order to update the config file, please ensure to include the clientId and tenantId. To authenticate the application, the console application utilizes the deviceauth method, which requires user authentication via the Microsoft Devices page at [deviceauth](https://microsoft.com/devicelogin). For detailed instructions on setting up the Microsoft Entra Application, please refer to this [link](https://learn.microsoft.com/en-us/graph/tutorials/python?tabs=aad&tutorial-step=1).
### config.cfg
```
[azure]
clientId = *****************************
tenantId = *****************************
graphUserScopes = User.Read Mail.Read Mail.Send UserActivity.ReadWrite.CreatedByApp
```### requirements.txt
```
azure-identity
msgraph-sdk
```### Console application outputs
```
Please choose one of the following options:
0. Exit
1. Display access token
2. List my inbox
3. Send mail
4. List org. users
5. List my activities
```
![]()