fix(onedrive_app): incorrect api on `_accessToken` (#5346)

pull/5356/head
jeffmingup 2023-10-08 19:29:45 +08:00 committed by GitHub
parent 1a283bb272
commit 35d672217d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -71,8 +71,8 @@ func (d *OnedriveAPP) _accessToken() error {
"grant_type": "client_credentials", "grant_type": "client_credentials",
"client_id": d.ClientID, "client_id": d.ClientID,
"client_secret": d.ClientSecret, "client_secret": d.ClientSecret,
"resource": "https://graph.microsoft.com/", "resource": onedriveHostMap[d.Region].Api + "/",
"scope": "https://graph.microsoft.com/.default", "scope": onedriveHostMap[d.Region].Api + "/.default",
}).Post(url) }).Post(url)
if err != nil { if err != nil {
return err return err