halliba / az-pipelines-2-sharepoint

Azure DevOps extension - upload build files to SharePoint Online
GNU General Public License v3.0
9 stars 4 forks source link

[error]Could not validate drive id. #15

Closed duldej closed 7 months ago

duldej commented 7 months ago

Hi, Per below log, I have been unable to log into my Sharepoint drive. I encoded my key in jwe, and then also jws format and neither one worked. please advise.

Best, Jason

2024-01-22T15:59:57.0166701Z ##[section]Starting: azpipelines2sharepoint 2024-01-22T15:59:57.0310565Z ============================================================================== 2024-01-22T15:59:57.0310704Z Task : Upload files to SharePoint Online 2024-01-22T15:59:57.0310779Z Description : Upload files to SharePoint Online 2024-01-22T15:59:57.0310869Z Version : 0.3.4 2024-01-22T15:59:57.0310948Z Author : halliba (github.com/halliba) 2024-01-22T15:59:57.0311029Z Help : github.com/halliba/az-pipelines-2-sharepoint 2024-01-22T15:59:57.0311139Z ============================================================================== 2024-01-22T15:59:57.4274608Z Found 1 files in 'C:\a\1\s\'. 2024-01-22T15:59:57.8567477Z Validating drive id / url: 'https://mycompany.sharepoint.com/sites/mySPsite/folder%20Name'. 2024-01-22T15:59:57.8901031Z ##[error]{"statusCode":401,"code":"InvalidAuthenticationToken","requestId":"69fcfe72-f3c3-4xxxxxxxx-b071142c21ca","date":"2024-01-22T15:59:57.000Z","body":"{\"code\":\"InvalidAuthenticationToken\",\"message\":\"IDX14100: JWT is not well formed, there are no dots (.).\nThe token needs to be in JWS or JWE Compact Serialization Format. (JWS): 'EncodedHeader.EndcodedPayload.EncodedSignature'. (JWE): 'EncodedProtectedHeader.EncodedEncryptedKey.EncodedInitializationVector.EncodedCiphertext.EncodedAuthenticationTag'.\",\"innerError\":{\"date\":\"2024-01-22T15:59:57\",\"request-id\":\"69fcfe72-f3c3-4xxxxxxxx-b071142c21ca\",\"client-request-id\":\"039fd5c4-c4a1-e712-9xxxxxxxxa3d8ed1a\"}}"} 2024-01-22T15:59:57.8928755Z ##[error]Could not validate drive id. 2024-01-22T15:59:57.8984885Z ##[section]Finishing: azpipelines2sharepoint

duldej commented 7 months ago

was a Sharepoint and MS Graph permissions issue, which I was able to address on that end.