mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-08 23:32:40 +02:00
chore: refactor Microsoft OAuth configuration to unify client ID and secret for Teams and OneDrive in environment files and related code
This commit is contained in:
parent
bb894ee158
commit
7004e764a9
6 changed files with 24 additions and 36 deletions
|
|
@ -98,8 +98,8 @@ class OneDriveClient:
|
|||
|
||||
async def _refresh_token(self, refresh_token: str) -> dict:
|
||||
data = {
|
||||
"client_id": config.ONEDRIVE_CLIENT_ID,
|
||||
"client_secret": config.ONEDRIVE_CLIENT_SECRET,
|
||||
"client_id": config.MICROSOFT_CLIENT_ID,
|
||||
"client_secret": config.MICROSOFT_CLIENT_SECRET,
|
||||
"grant_type": "refresh_token",
|
||||
"refresh_token": refresh_token,
|
||||
"scope": "offline_access User.Read Files.Read.All Files.ReadWrite.All",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue