OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#53368] added unit test for storage authentication
Eric Schubertc88999f13714
diff --git a/lib/open_project.rb b/lib/open_project.rbindex f3518182137..a3cf8b29025 100644--- a/lib/open_project.rb+++ b/lib/open_project.rb@@ -53,6 +53,7 @@ module OpenProjectThread.current[:httpx_session] ||= beginsession = HTTPX.plugin(:persistent) # persistent plugin enables retries plugin under the hood+ .plugin(:oauth).plugin(:basic_auth).plugin(:webdav).with(diff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/auth/nextcloud/basic_auth.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/auth/nextcloud/basic_auth.ymlnew file mode 100644index 00000000000..167e84304c5--- /dev/null+++ b/modules/storages/spec/support/fixtures/vcr_cassettes/auth/nextcloud/basic_auth.yml@@ -0,0 +1,78 @@+---+http_interactions:+- request:+ method: get+ uri: https://nextcloud.local/ocs/v1.php/cloud/user+ body:+ encoding: US-ASCII+ string: ''+ headers:+ Authorization:+ - Basic <BASIC_AUTH>+ Ocs-Apirequest:+ - 'true'+ Accept:+ - application/json+ User-Agent:+ - httpx.rb/1.2.3+ Accept-Encoding:+ - gzip, deflate+ response:+ status:+ code: 200+ message: OK+ headers:+ Cache-Control:+ - no-cache, no-store, must-revalidate+ Content-Encoding:+ - gzip+ Content-Security-Policy:+ - default-src 'none';base-uri 'none';manifest-src 'self';frame-ancestors 'none'+ Content-Type:+ - application/json; charset=utf-8+ Date:+ - Fri, 08 Mar 2024 08:56:52 GMT+ Expires:+ - Thu, 19 Nov 1981 08:52:00 GMT+ Feature-Policy:+ - autoplay 'none';camera 'none';fullscreen 'none';geolocation 'none';microphone+ 'none';payment 'none'+ Pragma:+ - no-cache+ Referrer-Policy:+ - no-referrer+ Server:+ - Apache/2.4.57 (Debian)+ Set-Cookie:+ - ocirabgzify6=5493b458c5edc569998af2a938a9ecae; path=/; secure; HttpOnly; SameSite=Lax,+ oc_sessionPassphrase=NHZ%2BN0amCVQHv6ahVDPyyFOksinMG062jNl6c5jjkDhmh7ITHbUjqv5JlcTPON28x7grqeOFYWlrnRJcG4eXfCVy62nmjhezAhkIVpyHXiCPRMtWe9KB%2FychAQJ%2BiLGG;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=5493b458c5edc569998af2a938a9ecae;+ path=/; secure; HttpOnly; SameSite=Lax, __Host-nc_sameSiteCookielax=true;+ path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax,+ __Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri,+ 31-Dec-2100 23:59:59 GMT; SameSite=strict, ocirabgzify6=5493b458c5edc569998af2a938a9ecae;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=5493b458c5edc569998af2a938a9ecae;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=a0fdf49e46837e242aeaa08c4eeb9d41;+ path=/; secure; HttpOnly; SameSite=Lax, cookie_test=test; expires=Fri, 08+ Mar 2024 09:56:53 GMT; Max-Age=3600+ X-Content-Type-Options:+ - nosniff+ X-Frame-Options:+ - SAMEORIGIN+ X-Permitted-Cross-Domain-Policies:+ - none+ X-Powered-By:+ - PHP/8.2.16+ X-Request-Id:+ - CsPiZvs47I8ubFZtVXa5+ X-Robots-Tag:+ - noindex, nofollow+ X-Xss-Protection:+ - 1; mode=block+ Content-Length:+ - '492'+ body:+ encoding: UTF-8+ string: '{"ocs":{"meta":{"status":"ok","statuscode":100,"message":"OK","totalitems":"","itemsperpage":""},"data":{"enabled":true,"storageLocation":"\/var\/www\/html\/data\/admin","id":"admin","lastLogin":1709888213000,"backend":"Database","subadmin":[],"quota":{"free":961968066560,"used":1137306515,"total":963105373075,"relative":0.12,"quota":-3},"manager":"","avatarScope":"v2-federated","email":null,"emailScope":"v2-federated","additional_mail":[],"additional_mailScope":[],"displayname":"admin","display-name":"admin","displaynameScope":"v2-federated","phone":"","phoneScope":"v2-local","address":"","addressScope":"v2-local","website":"","websiteScope":"v2-local","twitter":"","twitterScope":"v2-local","fediverse":"","fediverseScope":"v2-local","organisation":"","organisationScope":"v2-local","role":"","roleScope":"v2-local","headline":"","headlineScope":"v2-local","biography":"","biographyScope":"v2-local","profile_enabled":"1","profile_enabledScope":"v2-local","groups":["admin"],"language":"en","locale":"","notify_email":null,"backendCapabilities":{"setDisplayName":true,"setPassword":true}}}}'+ recorded_at: Fri, 08 Mar 2024 08:56:53 GMT+recorded_with: VCR 6.2.0diff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/auth/nextcloud/storage_query_basic_auth_password_invalid.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/auth/nextcloud/basic_auth_password_invalid.ymlsimilarity index 68%rename from modules/storages/spec/support/fixtures/vcr_cassettes/auth/nextcloud/storage_query_basic_auth_password_invalid.ymlrename to modules/storages/spec/support/fixtures/vcr_cassettes/auth/nextcloud/basic_auth_password_invalid.ymlindex 27fd58dda63..5fa325bb2c6 100644--- a/modules/storages/spec/support/fixtures/vcr_cassettes/auth/nextcloud/storage_query_basic_auth_password_invalid.yml+++ b/modules/storages/spec/support/fixtures/vcr_cassettes/auth/nextcloud/basic_auth_password_invalid.yml@@ -2,7 +2,7 @@http_interactions:- request:method: get- uri: https://nextcloud.local/ocs/v1.php/cloud/groups/OpenProject+ uri: https://nextcloud.local/ocs/v1.php/cloud/userbody:encoding: US-ASCIIstring: ''@@ -11,10 +11,10 @@ http_interactions:- Basic <BASIC_AUTH>Ocs-Apirequest:- 'true'- User-Agent:- - httpx.rb/1.2.2Accept:- - "*/*"+ - application/json+ User-Agent:+ - httpx.rb/1.2.3Accept-Encoding:- gzip, deflateresponse:@@ -25,14 +25,14 @@ http_interactions:Cache-Control:- no-store, no-cache, must-revalidateContent-Security-Policy:- - 'default-src ''self''; script-src ''self'' ''nonce-MlBWVkx0OTRucDI2ZzNNNjcyY0QwcUszaGNBR0NKeVpSdzlNdmd3NzFNOD06aXFBY2FQQUI5UExaeVNsYnZWWmdtWkQ2NUpkTlE5TERBMm9oMzJSV3BMVT0='';+ - 'default-src ''self''; script-src ''self'' ''nonce-WENJZ21RWmVoNGsrd09QWGJkZkIxTkZvSE1EMTdQcUtnbWFXemhCYVR1OD06YkU1WnpsVTczdHhva29Dd0JMLzE0cXNwVnZhOGg1Qzc1Z2ovbkZNeEk1dz0='';style-src ''self'' ''unsafe-inline''; frame-src *; img-src * data: blob:;font-src ''self'' data:; media-src *; connect-src *; object-src ''none'';base-uri ''self'';'Content-Type:- text/xml; charset=UTF-8Date:- - Fri, 01 Mar 2024 11:51:53 GMT+ - Fri, 08 Mar 2024 08:56:53 GMTExpires:- Thu, 19 Nov 1981 08:52:00 GMTPragma:@@ -42,15 +42,15 @@ http_interactions:Server:- Apache/2.4.57 (Debian)Set-Cookie:- - ocirabgzify6=1243e73f02538153799a5103dc5ccbc8; path=/; secure; HttpOnly; SameSite=Lax,- oc_sessionPassphrase=rGY6Ym5TcXWshiC1sm1E4HEQI21he%2FXIcfSnbF%2FSlKS8xqT%2FtjUCAgJq15gzLi7BCo0ueyxTYXMV2RRvWxXlFovOPT85MH%2Bntot5zsdESeHYYrkc9fLqrMvcpdXqvfjm;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=1243e73f02538153799a5103dc5ccbc8;+ - ocirabgzify6=d2d84a2d68a663a91cf467ae11e98410; path=/; secure; HttpOnly; SameSite=Lax,+ oc_sessionPassphrase=K8zJAF%2Fu8CsRxAISeRQdl1nP2BMN26QcYbeTLrz9tKI8RR%2F%2FqTPahXTqKqX6Y%2Bd%2Fq76Ubz0uPRCruH7SJNILoVmjdA5KUXqLnt6nnb1vqrOBnN4UNOSwyWTXuipHsAZ5;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=d2d84a2d68a663a91cf467ae11e98410;path=/; secure; HttpOnly; SameSite=Lax, __Host-nc_sameSiteCookielax=true;path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax,__Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri,- 31-Dec-2100 23:59:59 GMT; SameSite=strict, ocirabgzify6=1243e73f02538153799a5103dc5ccbc8;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=1243e73f02538153799a5103dc5ccbc8;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=f17b35b274189a0a408d176d9fa1ad3e;+ 31-Dec-2100 23:59:59 GMT; SameSite=strict, ocirabgzify6=d2d84a2d68a663a91cf467ae11e98410;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=d2d84a2d68a663a91cf467ae11e98410;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=1ed4494a8003474f1979d6c194617924;path=/; secure; HttpOnly; SameSite=LaxWww-Authenticate:- Basic realm="Authorisation Required"@@ -80,5 +80,5 @@ http_interactions:</meta><data/></ocs>- recorded_at: Fri, 01 Mar 2024 11:51:53 GMT+ recorded_at: Fri, 08 Mar 2024 08:56:54 GMTrecorded_with: VCR 6.2.0diff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/auth/nextcloud/storage_query_user_token_access_token_invalid.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/auth/nextcloud/storage_query_user_token_access_token_invalid.ymldeleted file mode 100644index 3969acfe4e0..00000000000--- a/modules/storages/spec/support/fixtures/vcr_cassettes/auth/nextcloud/storage_query_user_token_access_token_invalid.yml+++ /dev/null@@ -1,261 +0,0 @@-----http_interactions:-- request:- method: propfind- uri: https://nextcloud.local/remote.php/dav/files/admin/- body:- encoding: UTF-8- string: |- <?xml version="1.0"?>- <d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">- <d:prop>- <oc:fileid/>- <oc:size/>- <d:getcontenttype/>- <d:getlastmodified/>- <oc:permissions/>- <oc:owner-display-name/>- </d:prop>- </d:propfind>- headers:- Authorization:- - Bearer <BEARER TOKEN>- User-Agent:- - httpx.rb/1.2.2- Accept:- - "*/*"- Accept-Encoding:- - gzip, deflate- Content-Type:- - application/xml; charset=utf-8- Content-Length:- - '253'- response:- status:- code: 401- message: Unauthorized- headers:- Cache-Control:- - no-store, no-cache, must-revalidate- Content-Security-Policy:- - default-src 'none';- Content-Type:- - application/xml; charset=utf-8- Date:- - Fri, 01 Mar 2024 11:39:54 GMT- Expires:- - Thu, 19 Nov 1981 08:52:00 GMT- Pragma:- - no-cache- Referrer-Policy:- - no-referrer- Server:- - Apache/2.4.57 (Debian)- Set-Cookie:- - ocirabgzify6=0c26a8a2642946f639fd6453c7de04ea; path=/; secure; HttpOnly; SameSite=Lax,- oc_sessionPassphrase=PHTV0jbG1sdbqHpXYR%2Fr%2FyjuWh2jnFdEORpc3sXXOEkBfLO18HzxgHBYfxxGH0tJObXa3twDQotJnxLSnMyFXSa%2B9RKwNvB%2FRC23jGGnIYGHcAx8fpSzX7PkBWB9OlMg;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=0c26a8a2642946f639fd6453c7de04ea;- path=/; secure; HttpOnly; SameSite=Lax, __Host-nc_sameSiteCookielax=true;- path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax,- __Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri,- 31-Dec-2100 23:59:59 GMT; SameSite=strict, ocirabgzify6=0c26a8a2642946f639fd6453c7de04ea;- path=/; secure; HttpOnly; SameSite=Lax- Www-Authenticate:- - Basic realm="Nextcloud", charset="UTF-8"- X-Content-Type-Options:- - nosniff- X-Frame-Options:- - SAMEORIGIN- X-Permitted-Cross-Domain-Policies:- - none- X-Powered-By:- - PHP/8.2.16- X-Robots-Tag:- - noindex, nofollow- X-Xss-Protection:- - 1; mode=block- Content-Length:- - '476'- body:- encoding: UTF-8- string: |- <?xml version="1.0" encoding="utf-8"?>- <d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">- <s:exception>Sabre\DAV\Exception\NotAuthenticated</s:exception>- <s:message>No public access to this resource., No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured, Bearer token was incorrect, No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured</s:message>- </d:error>- recorded_at: Fri, 01 Mar 2024 11:39:54 GMT-- request:- method: post- uri: https://nextcloud.local/index.php/apps/oauth2/api/v1/token- body:- encoding: ASCII-8BIT- string: grant_type=refresh_token&scope=&client_id=7fj7lpG0GOqwOGhHAyfGwd1oEgtbTto7mctu0IaSN3SE79o9Xs0q8k3kDiEwXDrM&client_secret=j7RoyauWeIpMc7cYdY3lewCGKxdgiAowonpGzmAuj9iRSvYBAGXhP7hvz9Hp7skR&refresh_token=ZlV7mLctFD0v4OeCBn06zlEmw73fAAFstNQMoXc6saygAQofq7UIRtNlMil135zIOJiQhOnb2p6IvxVQHcmrKUi5aAUuQT4jAyaASjRJ2C4IkCWtXgSMhnIYU6UY7FQV- headers:- User-Agent:- - httpx.rb/1.2.2- Accept:- - "*/*"- Accept-Encoding:- - gzip, deflate- Content-Type:- - application/x-www-form-urlencoded- Content-Length:- - '328'- response:- status:- code: 200- message: OK- headers:- Cache-Control:- - no-cache, no-store, must-revalidate- Content-Encoding:- - gzip- Content-Security-Policy:- - default-src 'none';base-uri 'none';manifest-src 'self';frame-ancestors 'none'- Content-Type:- - application/json; charset=utf-8- Date:- - Fri, 01 Mar 2024 11:39:54 GMT- Expires:- - Thu, 19 Nov 1981 08:52:00 GMT- Feature-Policy:- - autoplay 'none';camera 'none';fullscreen 'none';geolocation 'none';microphone- 'none';payment 'none'- Pragma:- - no-cache- Referrer-Policy:- - no-referrer- Server:- - Apache/2.4.57 (Debian)- Set-Cookie:- - ocirabgzify6=449aa06d53a6740137cd9168e055008a; path=/; secure; HttpOnly; SameSite=Lax,- oc_sessionPassphrase=pRvOu2EI27JoozdRZR5PQRb0i9eWVvzTt4CBlDqjEHJOT5qPWs4%2BbMn0Y6CsSQ3hhUxfD8sdgzH4KHz5Bgx9Rt54T8OpxBQNyxfPCR2X0WrrFeOPqwLkMmHiOxwaB5hy;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=449aa06d53a6740137cd9168e055008a;- path=/; secure; HttpOnly; SameSite=Lax, __Host-nc_sameSiteCookielax=true;- path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax,- __Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri,- 31-Dec-2100 23:59:59 GMT; SameSite=strict, ocirabgzify6=449aa06d53a6740137cd9168e055008a;- path=/; secure; HttpOnly; SameSite=Lax- X-Content-Type-Options:- - nosniff- X-Frame-Options:- - SAMEORIGIN- X-Nextcloud-Bruteforce-Throttled:- - 200ms- X-Permitted-Cross-Domain-Policies:- - none- X-Powered-By:- - PHP/8.2.16- X-Request-Id:- - Gujm8lul9Vyrsn0Gl9S1- X-Robots-Tag:- - noindex, nofollow- X-Xss-Protection:- - 1; mode=block- Content-Length:- - '270'- body:- encoding: UTF-8- string: '{"access_token":"<ACCESS_TOKEN>","token_type":"Bearer","expires_in":3600,"refresh_token":"JN6au2g29hG5JCHQ2l6vY4XWXiC6x9flSS1jvElxLrIX43uPo2vmXvts2MV61DGZeErBOaylvk49qUgRCNGhco8BLfaC66c5SAeI8CBtvBYNruS2VyKwryGdAeLaknBb","user_id":"admin"}'- recorded_at: Fri, 01 Mar 2024 11:39:55 GMT-- request:- method: propfind- uri: https://nextcloud.local/remote.php/dav/files/admin/- body:- encoding: UTF-8- string: |- <?xml version="1.0"?>- <d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">- <d:prop>- <oc:fileid/>- <oc:size/>- <d:getcontenttype/>- <d:getlastmodified/>- <oc:permissions/>- <oc:owner-display-name/>- </d:prop>- </d:propfind>- headers:- Depth:- - '1'- User-Agent:- - httpx.rb/1.2.2- Accept:- - "*/*"- Accept-Encoding:- - gzip, deflate- Content-Type:- - application/xml; charset=utf-8- Content-Length:- - '253'- Authorization:- - Bearer <BEARER TOKEN>- response:- status:- code: 207- message: Multi-Status- headers:- Cache-Control:- - no-store, no-cache, must-revalidate- Content-Encoding:- - gzip- Content-Security-Policy:- - default-src 'none';- Content-Type:- - application/xml; charset=utf-8- Date:- - Fri, 01 Mar 2024 11:39:55 GMT- Dav:- - 1, 3, extended-mkcol, access-control, calendarserver-principal-property-search,- nextcloud-checksum-update, nc-calendar-search, nc-enable-birthday-calendar- Expires:- - Thu, 19 Nov 1981 08:52:00 GMT- Pragma:- - no-cache- Referrer-Policy:- - no-referrer- Server:- - Apache/2.4.57 (Debian)- Set-Cookie:- - ocirabgzify6=15d744fa45a317048358f011499b04ab; path=/; secure; HttpOnly; SameSite=Lax,- oc_sessionPassphrase=KaiakX9dozfF%2B3dxgfPXY2pVDcJ5N%2FQcZmt7qaBAzAmBiUtgnujEQykS%2Be54zvCrxqt7ALGJAs%2F%2FBFqxduKUxj9n7kSTTXb5oZAWEkqbVnoIFgfjIVTFDV5U9U8SmObE;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=15d744fa45a317048358f011499b04ab;- path=/; secure; HttpOnly; SameSite=Lax, __Host-nc_sameSiteCookielax=true;- path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax,- __Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri,- 31-Dec-2100 23:59:59 GMT; SameSite=strict, ocirabgzify6=15d744fa45a317048358f011499b04ab;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=15d744fa45a317048358f011499b04ab;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=15d744fa45a317048358f011499b04ab;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=15d744fa45a317048358f011499b04ab;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=15d744fa45a317048358f011499b04ab;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=15d744fa45a317048358f011499b04ab;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=15d744fa45a317048358f011499b04ab;- path=/; secure; HttpOnly; SameSite=Lax- Vary:- - Brief,Prefer- X-Content-Type-Options:- - nosniff- X-Debug-Token:- - OIm5cgowur7aVMwi44Jz- X-Frame-Options:- - SAMEORIGIN- X-Permitted-Cross-Domain-Policies:- - none- X-Powered-By:- - PHP/8.2.16- X-Request-Id:- - OIm5cgowur7aVMwi44Jz- X-Robots-Tag:- - noindex, nofollow- X-Xss-Protection:- - 1; mode=block- Content-Length:- - '544'- body:- encoding: UTF-8- string: |- <?xml version="1.0"?>- <d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns"><d:response><d:href>/remote.php/dav/files/admin/</d:href><d:propstat><d:prop><oc:fileid>2</oc:fileid><oc:size>1137306515</oc:size><d:getlastmodified>Wed, 29 Nov 2023 15:42:21 GMT</d:getlastmodified><oc:permissions>RGDNVCK</oc:permissions><oc:owner-display-name>admin</oc:owner-display-name></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><d:getcontenttype/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response><d:response><d:href>/remote.php/dav/files/admin/Folder/</d:href><d:propstat><d:prop><oc:fileid>172</oc:fileid><oc:size>982713473</oc:size><d:getlastmodified>Wed, 29 Nov 2023 15:31:30 GMT</d:getlastmodified><oc:permissions>RGDNVCK</oc:permissions><oc:owner-display-name>admin</oc:owner-display-name></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><d:getcontenttype/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response><d:response><d:href>/remote.php/dav/files/admin/Folder%20with%20spaces/</d:href><d:propstat><d:prop><oc:fileid>173</oc:fileid><oc:size>74</oc:size><d:getlastmodified>Wed, 29 Nov 2023 15:42:21 GMT</d:getlastmodified><oc:permissions>RGDNVCK</oc:permissions><oc:owner-display-name>admin</oc:owner-display-name></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><d:getcontenttype/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response><d:response><d:href>/remote.php/dav/files/admin/Practical_guide_to_BAGGM_Digital.pdf</d:href><d:propstat><d:prop><oc:fileid>211</oc:fileid><oc:size>154592937</oc:size><d:getcontenttype>application/pdf</d:getcontenttype><d:getlastmodified>Tue, 09 Aug 2022 06:53:12 GMT</d:getlastmodified><oc:permissions>RGDNVW</oc:permissions><oc:owner-display-name>admin</oc:owner-display-name></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response><d:response><d:href>/remote.php/dav/files/admin/Readme.md</d:href><d:propstat><d:prop><oc:fileid>178</oc:fileid><oc:size>31</oc:size><d:getcontenttype>text/markdown</d:getcontenttype><d:getlastmodified>Wed, 29 Nov 2023 15:29:16 GMT</d:getlastmodified><oc:permissions>RGDNVW</oc:permissions><oc:owner-display-name>admin</oc:owner-display-name></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response></d:multistatus>- recorded_at: Fri, 01 Mar 2024 11:39:55 GMT-recorded_with: VCR 6.2.0diff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/auth/nextcloud/user_token_access_token_invalid.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/auth/nextcloud/user_token_access_token_invalid.ymlnew file mode 100644index 00000000000..4fdeeb62ec2--- /dev/null+++ b/modules/storages/spec/support/fixtures/vcr_cassettes/auth/nextcloud/user_token_access_token_invalid.yml@@ -0,0 +1,234 @@+---+http_interactions:+- request:+ method: get+ uri: https://nextcloud.local/ocs/v1.php/cloud/user+ body:+ encoding: US-ASCII+ string: ''+ headers:+ Authorization:+ - Bearer <BEARER TOKEN>+ User-Agent:+ - httpx.rb/1.2.3+ Accept:+ - "*/*"+ Accept-Encoding:+ - gzip, deflate+ response:+ status:+ code: 401+ message: Unauthorized+ headers:+ Cache-Control:+ - no-cache, no-store, must-revalidate+ Content-Security-Policy:+ - default-src 'none';base-uri 'none';manifest-src 'self';frame-ancestors 'none'+ Content-Type:+ - application/xml; charset=utf-8+ Date:+ - Fri, 08 Mar 2024 09:27:40 GMT+ Expires:+ - Thu, 19 Nov 1981 08:52:00 GMT+ Feature-Policy:+ - autoplay 'none';camera 'none';fullscreen 'none';geolocation 'none';microphone+ 'none';payment 'none'+ Pragma:+ - no-cache+ Referrer-Policy:+ - no-referrer+ Server:+ - Apache/2.4.57 (Debian)+ Set-Cookie:+ - ocirabgzify6=c7e0c4a6c6d3bc29a2e1acbe831870d9; path=/; secure; HttpOnly; SameSite=Lax,+ oc_sessionPassphrase=aK6rp4uRxDhSdbFlsS2wwbV0GtDKFTm%2BS20i427N16mObEOZ3sJx8JkhZg3Z5y5mald%2BtyNRj61cR38tPXAISfUHlzFDqgcybJZnpYOpS3ryIE6AgbGKhWfC9uwFlmy0;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=c7e0c4a6c6d3bc29a2e1acbe831870d9;+ path=/; secure; HttpOnly; SameSite=Lax, __Host-nc_sameSiteCookielax=true;+ path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax,+ __Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri,+ 31-Dec-2100 23:59:59 GMT; SameSite=strict, ocirabgzify6=c7e0c4a6c6d3bc29a2e1acbe831870d9;+ path=/; secure; HttpOnly; SameSite=Lax+ X-Content-Type-Options:+ - nosniff+ X-Frame-Options:+ - SAMEORIGIN+ X-Permitted-Cross-Domain-Policies:+ - none+ X-Powered-By:+ - PHP/8.2.16+ X-Request-Id:+ - gA5FAKPA4oYwmVQaEXPq+ X-Robots-Tag:+ - noindex, nofollow+ X-Xss-Protection:+ - 1; mode=block+ Content-Length:+ - '230'+ body:+ encoding: UTF-8+ string: |+ <?xml version="1.0"?>+ <ocs>+ <meta>+ <status>failure</status>+ <statuscode>997</statuscode>+ <message>Current user is not logged in</message>+ <totalitems></totalitems>+ <itemsperpage></itemsperpage>+ </meta>+ <data/>+ </ocs>+ recorded_at: Fri, 08 Mar 2024 09:27:40 GMT+- request:+ method: post+ uri: https://nextcloud.local/index.php/apps/oauth2/api/v1/token+ body:+ encoding: ASCII-8BIT+ string: grant_type=refresh_token&scope=&client_id=7fj7lpG0GOqwOGhHAyfGwd1oEgtbTto7mctu0IaSN3SE79o9Xs0q8k3kDiEwXDrM&client_secret=j7RoyauWeIpMc7cYdY3lewCGKxdgiAowonpGzmAuj9iRSvYBAGXhP7hvz9Hp7skR&refresh_token=HRrpqZowJjD6OzBnwkpFTJAnAGQFUkhJ7En4ZpPtkhrPEIuRohVY56ooknlsrRVdIUOUPvyqtTzXomxDcOXvjnXhpREA18CkYOYQ3s2fxqOlk9u9mNrSTxHaqD0mpItw+ headers:+ User-Agent:+ - httpx.rb/1.2.3+ Accept:+ - "*/*"+ Accept-Encoding:+ - gzip, deflate+ Content-Type:+ - application/x-www-form-urlencoded+ Content-Length:+ - '328'+ response:+ status:+ code: 200+ message: OK+ headers:+ Cache-Control:+ - no-cache, no-store, must-revalidate+ Content-Encoding:+ - gzip+ Content-Security-Policy:+ - default-src 'none';base-uri 'none';manifest-src 'self';frame-ancestors 'none'+ Content-Type:+ - application/json; charset=utf-8+ Date:+ - Fri, 08 Mar 2024 09:27:40 GMT+ Expires:+ - Thu, 19 Nov 1981 08:52:00 GMT+ Feature-Policy:+ - autoplay 'none';camera 'none';fullscreen 'none';geolocation 'none';microphone+ 'none';payment 'none'+ Pragma:+ - no-cache+ Referrer-Policy:+ - no-referrer+ Server:+ - Apache/2.4.57 (Debian)+ Set-Cookie:+ - ocirabgzify6=3aacffae684309baee15b9c37fdc5d6f; path=/; secure; HttpOnly; SameSite=Lax,+ oc_sessionPassphrase=NWWi25ZMVtFYunofSBJ%2FURKXYfXSZcL7xY6suwb880gAnfhY0aIxdy4UkUy0ZvP8Ef4YLHIA7hIkpGcTpGwVw8v9j8L9Wbqs45Cx2dIfrcWxhhdLDWuyN74rOsRSE9JR;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=3aacffae684309baee15b9c37fdc5d6f;+ path=/; secure; HttpOnly; SameSite=Lax, __Host-nc_sameSiteCookielax=true;+ path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax,+ __Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri,+ 31-Dec-2100 23:59:59 GMT; SameSite=strict, ocirabgzify6=3aacffae684309baee15b9c37fdc5d6f;+ path=/; secure; HttpOnly; SameSite=Lax+ X-Content-Type-Options:+ - nosniff+ X-Frame-Options:+ - SAMEORIGIN+ X-Nextcloud-Bruteforce-Throttled:+ - 200ms+ X-Permitted-Cross-Domain-Policies:+ - none+ X-Powered-By:+ - PHP/8.2.16+ X-Request-Id:+ - NQjl2frIpdjcHCrSVhdL+ X-Robots-Tag:+ - noindex, nofollow+ X-Xss-Protection:+ - 1; mode=block+ Content-Length:+ - '270'+ body:+ encoding: UTF-8+ string: '{"access_token":"<ACCESS_TOKEN>","token_type":"Bearer","expires_in":3600,"refresh_token":"pF4QFI0ncfUUunsKCIauOUXUm8TQXrEEOvpfE2sGXPxYTsNr4FtPg0sxORfYXdxa5B98McVn3vbKblLwtA8QnKq7ATZAxtjDnDBBBXy7nUe5Z3exYeFaHcZdWwcYzv1w","user_id":"admin"}'+ recorded_at: Fri, 08 Mar 2024 09:27:41 GMT+- request:+ method: get+ uri: https://nextcloud.local/ocs/v1.php/cloud/user+ body:+ encoding: US-ASCII+ string: ''+ headers:+ Ocs-Apirequest:+ - 'true'+ Accept:+ - application/json+ User-Agent:+ - httpx.rb/1.2.3+ Accept-Encoding:+ - gzip, deflate+ Authorization:+ - Bearer <BEARER TOKEN>+ response:+ status:+ code: 200+ message: OK+ headers:+ Cache-Control:+ - no-cache, no-store, must-revalidate+ Content-Encoding:+ - gzip+ Content-Security-Policy:+ - default-src 'none';base-uri 'none';manifest-src 'self';frame-ancestors 'none'+ Content-Type:+ - application/json; charset=utf-8+ Date:+ - Fri, 08 Mar 2024 09:27:41 GMT+ Expires:+ - Thu, 19 Nov 1981 08:52:00 GMT+ Feature-Policy:+ - autoplay 'none';camera 'none';fullscreen 'none';geolocation 'none';microphone+ 'none';payment 'none'+ Pragma:+ - no-cache+ Referrer-Policy:+ - no-referrer+ Server:+ - Apache/2.4.57 (Debian)+ Set-Cookie:+ - ocirabgzify6=e0e76ba543cb281d8c6de45f13379227; path=/; secure; HttpOnly; SameSite=Lax,+ oc_sessionPassphrase=LcCCzBcktAmO9u5darmcMbX1GfvpLBkrSIyqOXu%2Bs0sfHD60nfff%2BuXHIaMRh9AhQXAzOvPgXFsekDAjqvbFn%2FswvgJMJyWt3w9bVSzDoQ8c%2BZmsdnzpaIyZXSnfTgAm;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=e0e76ba543cb281d8c6de45f13379227;+ path=/; secure; HttpOnly; SameSite=Lax, __Host-nc_sameSiteCookielax=true;+ path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax,+ __Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri,+ 31-Dec-2100 23:59:59 GMT; SameSite=strict, ocirabgzify6=e0e76ba543cb281d8c6de45f13379227;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=e0e76ba543cb281d8c6de45f13379227;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=e0e76ba543cb281d8c6de45f13379227;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=e0e76ba543cb281d8c6de45f13379227;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=e0e76ba543cb281d8c6de45f13379227;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=e0e76ba543cb281d8c6de45f13379227;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=e0e76ba543cb281d8c6de45f13379227;+ path=/; secure; HttpOnly; SameSite=Lax+ X-Content-Type-Options:+ - nosniff+ X-Frame-Options:+ - SAMEORIGIN+ X-Permitted-Cross-Domain-Policies:+ - none+ X-Powered-By:+ - PHP/8.2.16+ X-Request-Id:+ - SIriQ7P07385wqbUaP7M+ X-Robots-Tag:+ - noindex, nofollow+ X-Xss-Protection:+ - 1; mode=block+ Content-Length:+ - '496'+ body:+ encoding: UTF-8+ string: '{"ocs":{"meta":{"status":"ok","statuscode":100,"message":"OK","totalitems":"","itemsperpage":""},"data":{"enabled":true,"storageLocation":"\/var\/www\/html\/data\/admin","id":"admin","lastLogin":1709888213000,"backend":"Database","subadmin":[],"quota":{"free":962269761536,"used":1137306515,"total":963407068051,"relative":0.12,"quota":-3},"manager":"","avatarScope":"v2-federated","email":null,"emailScope":"v2-federated","additional_mail":[],"additional_mailScope":[],"displayname":"admin","display-name":"admin","displaynameScope":"v2-federated","phone":"","phoneScope":"v2-local","address":"","addressScope":"v2-local","website":"","websiteScope":"v2-local","twitter":"","twitterScope":"v2-local","fediverse":"","fediverseScope":"v2-local","organisation":"","organisationScope":"v2-local","role":"","roleScope":"v2-local","headline":"","headlineScope":"v2-local","biography":"","biographyScope":"v2-local","profile_enabled":"1","profile_enabledScope":"v2-local","groups":["admin"],"language":"en","locale":"","notify_email":null,"backendCapabilities":{"setDisplayName":true,"setPassword":true}}}}'+ recorded_at: Fri, 08 Mar 2024 09:27:41 GMT+recorded_with: VCR 6.2.0diff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/auth/nextcloud/storage_query_user_token_refresh_token_invalid.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/auth/nextcloud/user_token_refresh_token_invalid.ymlsimilarity index 60%rename from modules/storages/spec/support/fixtures/vcr_cassettes/auth/nextcloud/storage_query_user_token_refresh_token_invalid.ymlrename to modules/storages/spec/support/fixtures/vcr_cassettes/auth/nextcloud/user_token_refresh_token_invalid.ymlindex d7d693dde2e..4fd94795082 100644--- a/modules/storages/spec/support/fixtures/vcr_cassettes/auth/nextcloud/storage_query_user_token_refresh_token_invalid.yml+++ b/modules/storages/spec/support/fixtures/vcr_cassettes/auth/nextcloud/user_token_refresh_token_invalid.yml@@ -1,50 +1,38 @@---http_interactions:- request:- method: propfind- uri: https://nextcloud.local/remote.php/dav/files/admin/+ method: get+ uri: https://nextcloud.local/ocs/v1.php/cloud/userbody:- encoding: UTF-8- string: |- <?xml version="1.0"?>- <d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">- <d:prop>- <oc:fileid/>- <oc:size/>- <d:getcontenttype/>- <d:getlastmodified/>- <oc:permissions/>- <oc:owner-display-name/>- </d:prop>- </d:propfind>+ encoding: US-ASCII+ string: ''headers:Authorization:- Bearer <BEARER TOKEN>User-Agent:- - httpx.rb/1.2.2+ - httpx.rb/1.2.3Accept:- "*/*"Accept-Encoding:- gzip, deflate- Content-Type:- - application/xml; charset=utf-8- Content-Length:- - '253'response:status:code: 401message: Unauthorizedheaders:Cache-Control:- - no-store, no-cache, must-revalidate+ - no-cache, no-store, must-revalidateContent-Security-Policy:- - default-src 'none';+ - default-src 'none';base-uri 'none';manifest-src 'self';frame-ancestors 'none'Content-Type:- application/xml; charset=utf-8Date:- - Fri, 01 Mar 2024 11:42:04 GMT+ - Fri, 08 Mar 2024 09:21:35 GMTExpires:- Thu, 19 Nov 1981 08:52:00 GMT+ Feature-Policy:+ - autoplay 'none';camera 'none';fullscreen 'none';geolocation 'none';microphone+ 'none';payment 'none'Pragma:- no-cacheReferrer-Policy:@@ -52,16 +40,14 @@ http_interactions:Server:- Apache/2.4.57 (Debian)Set-Cookie:- - ocirabgzify6=2c7e26704de33116d7308fa7d7503ed3; path=/; secure; HttpOnly; SameSite=Lax,- oc_sessionPassphrase=p36BGC1iWfB3QXlLc3TB6YcIstkzCfMi8keNP1rdmlYArhXCRlzS5UMMfhdhcR7tUFTcu8X0pGddscZ8M4vFbBEsCADRPGq5dph%2FHzGOtMfG9L3Y78r2sqfgA6cP2kD2;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=2c7e26704de33116d7308fa7d7503ed3;+ - ocirabgzify6=410bba53b25e4fd84d9fe3918b13fa65; path=/; secure; HttpOnly; SameSite=Lax,+ oc_sessionPassphrase=rhdZ5dSY6QfUvYnUjhpWAmbCJACGZQpf1Zp4nOjHopkd7CxTWkVdFw8HYXqdmyPsykVZ0j7imva9IX4IktTStww2ASUuMHY%2BZzjOG7B2%2F1GkO6%2BYIvbxvAkIVsP3NUzK;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=410bba53b25e4fd84d9fe3918b13fa65;path=/; secure; HttpOnly; SameSite=Lax, __Host-nc_sameSiteCookielax=true;path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax,__Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri,- 31-Dec-2100 23:59:59 GMT; SameSite=strict, ocirabgzify6=2c7e26704de33116d7308fa7d7503ed3;+ 31-Dec-2100 23:59:59 GMT; SameSite=strict, ocirabgzify6=410bba53b25e4fd84d9fe3918b13fa65;path=/; secure; HttpOnly; SameSite=Lax- Www-Authenticate:- - Basic realm="Nextcloud", charset="UTF-8"X-Content-Type-Options:- nosniffX-Frame-Options:@@ -70,30 +56,38 @@ http_interactions:- noneX-Powered-By:- PHP/8.2.16+ X-Request-Id:+ - e9FlTXYXJZM3Iqux61QgX-Robots-Tag:- noindex, nofollowX-Xss-Protection:- 1; mode=blockContent-Length:- - '476'+ - '230'body:encoding: UTF-8string: |- <?xml version="1.0" encoding="utf-8"?>- <d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">- <s:exception>Sabre\DAV\Exception\NotAuthenticated</s:exception>- <s:message>No public access to this resource., No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured, Bearer token was incorrect, No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured</s:message>- </d:error>- recorded_at: Fri, 01 Mar 2024 11:42:04 GMT+ <?xml version="1.0"?>+ <ocs>+ <meta>+ <status>failure</status>+ <statuscode>997</statuscode>+ <message>Current user is not logged in</message>+ <totalitems></totalitems>+ <itemsperpage></itemsperpage>+ </meta>+ <data/>+ </ocs>+ recorded_at: Fri, 08 Mar 2024 09:21:35 GMT- request:method: posturi: https://nextcloud.local/index.php/apps/oauth2/api/v1/tokenbody:encoding: ASCII-8BIT- string: grant_type=refresh_token&scope=&client_id=7fj7lpG0GOqwOGhHAyfGwd1oEgtbTto7mctu0IaSN3SE79o9Xs0q8k3kDiEwXDrM&client_secret=j7RoyauWeIpMc7cYdY3lewCGKxdgiAowonpGzmAuj9iRSvYBAGXhP7hvz9Hp7skR&refresh_token=ZlV7mLctFD0v4OeCBn06zlEmw73fAAFstNQMoXc6saygAQofq7UIRtNlMil135zIOJiQhOnb2p6IvxVQHcmrKUi5aAUuQT4jAyaASjRJ2C4IkCWtXgSMhnIYU6UY7FQV+ string: grant_type=refresh_token&scope=&client_id=7fj7lpG0GOqwOGhHAyfGwd1oEgtbTto7mctu0IaSN3SE79o9Xs0q8k3kDiEwXDrM&client_secret=j7RoyauWeIpMc7cYdY3lewCGKxdgiAowonpGzmAuj9iRSvYBAGXhP7hvz9Hp7skR&refresh_token=<ACCESS_TOKEN>headers:User-Agent:- - httpx.rb/1.2.2+ - httpx.rb/1.2.3Accept:- "*/*"Accept-Encoding:@@ -101,7 +95,7 @@ http_interactions:Content-Type:- application/x-www-form-urlencodedContent-Length:- - '328'+ - '204'response:status:code: 400@@ -114,7 +108,7 @@ http_interactions:Content-Type:- application/json; charset=utf-8Date:- - Fri, 01 Mar 2024 11:42:04 GMT+ - Fri, 08 Mar 2024 09:21:35 GMTExpires:- Thu, 19 Nov 1981 08:52:00 GMTFeature-Policy:@@ -127,26 +121,26 @@ http_interactions:Server:- Apache/2.4.57 (Debian)Set-Cookie:- - ocirabgzify6=c35c70252b26c94577f0f5c591a90803; path=/; secure; HttpOnly; SameSite=Lax,- oc_sessionPassphrase=q0%2Bduzpzc4KZSBskoRUC%2BjJvD7RhVe0d1CMorStCi7H2d4zjILTIVL2g%2FAFPY2%2BkW98C4hCmm5iuCyZQ%2Byr1jj%2Fc1lmkO9exOAGoN%2F6upDIp26qcUSRFiyLILA3Urc1S;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=c35c70252b26c94577f0f5c591a90803;+ - ocirabgzify6=9affd4b9d9c040cc5d392a26e06d1bb3; path=/; secure; HttpOnly; SameSite=Lax,+ oc_sessionPassphrase=iTHBtQPtpepw9rKgYTH6DUaJ%2BduE0rPGbQEjiFg2jf%2BigbTIwnAd9hwnz8n8rRFmvpbVatLM0N06C5%2BNRYAXXXpNtm3THjp6avx1968ATrWtUW7h7nGoKi%2BGRzL8cEeb;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=9affd4b9d9c040cc5d392a26e06d1bb3;path=/; secure; HttpOnly; SameSite=Lax, __Host-nc_sameSiteCookielax=true;path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax,__Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri,- 31-Dec-2100 23:59:59 GMT; SameSite=strict, ocirabgzify6=c35c70252b26c94577f0f5c591a90803;+ 31-Dec-2100 23:59:59 GMT; SameSite=strict, ocirabgzify6=9affd4b9d9c040cc5d392a26e06d1bb3;path=/; secure; HttpOnly; SameSite=LaxX-Content-Type-Options:- nosniffX-Frame-Options:- SAMEORIGINX-Nextcloud-Bruteforce-Throttled:- - 600ms+ - 200msX-Permitted-Cross-Domain-Policies:- noneX-Powered-By:- PHP/8.2.16X-Request-Id:- - bTdOQhJPyfQnf5ueUtaT+ - 6P1BayresgCTVsAE5yQhX-Robots-Tag:- noindex, nofollowX-Xss-Protection:@@ -156,5 +150,5 @@ http_interactions:body:encoding: UTF-8string: '{"error":"invalid_request"}'- recorded_at: Fri, 01 Mar 2024 11:42:05 GMT+ recorded_at: Fri, 08 Mar 2024 09:21:35 GMTrecorded_with: VCR 6.2.0diff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/client_credentials.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/client_credentials.ymlnew file mode 100644index 00000000000..11b292388f3--- /dev/null+++ b/modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/client_credentials.yml@@ -0,0 +1,105 @@+---+http_interactions:+- request:+ method: post+ uri: https://login.microsoftonline.com/4d44bf36-9b56-45c0-8807-bbf386dd047f/oauth2/v2.0/token+ body:+ encoding: ASCII-8BIT+ string: grant_type=client_credentials&scope=https%3A%2F%2Fgraph.microsoft.com%2F.default&client_id=4262df2b-77bb-49c2-a5df-28355da676d2&client_secret=Vwk8Q%7EJTuPh.pAjvPiWBQBdTFMDK%7EAIwxbj9_axB+ headers:+ User-Agent:+ - httpx.rb/1.2.3+ Accept:+ - "*/*"+ Accept-Encoding:+ - gzip, deflate+ Content-Type:+ - application/x-www-form-urlencoded+ Content-Length:+ - '186'+ response:+ status:+ code: 200+ message: OK+ headers:+ Cache-Control:+ - no-store, no-cache+ Pragma:+ - no-cache+ Content-Type:+ - application/json; charset=utf-8+ Expires:+ - "-1"+ Strict-Transport-Security:+ - max-age=31536000; includeSubDomains+ X-Content-Type-Options:+ - nosniff+ P3p:+ - CP="DSP CUR OTPi IND OTRi ONL FIN"+ X-Ms-Request-Id:+ - 45f8bf00-42a6-47e6-87fc-2f44cd886301+ X-Ms-Ests-Server:+ - 2.1.17396.8 - SEC ProdSlices+ X-Xss-Protection:+ - '0'+ Set-Cookie:+ - fpc=AkLiVHzNibJCs_PG8YKAj9ekbDoXAQAAAMjVfN0OAAAA; expires=Sun, 07-Apr-2024+ 09:47:52 GMT; path=/; secure; HttpOnly; SameSite=None, x-ms-gateway-slice=estsfd;+ path=/; secure; samesite=none; httponly, stsservicecookie=estsfd; path=/;+ secure; samesite=none; httponly+ Date:+ - Fri, 08 Mar 2024 09:47:51 GMT+ Content-Length:+ - '1708'+ body:+ encoding: UTF-8+ string: '{"token_type":"Bearer","expires_in":3599,"ext_expires_in":3599,"access_token":"<ACCESS_TOKEN>"}'+ recorded_at: Fri, 08 Mar 2024 09:47:52 GMT+- request:+ method: get+ uri: https://graph.microsoft.com/v1.0/drives+ body:+ encoding: US-ASCII+ string: ''+ headers:+ User-Agent:+ - httpx.rb/1.2.3+ Accept:+ - "*/*"+ Accept-Encoding:+ - gzip, deflate+ Authorization:+ - Bearer <BEARER TOKEN>+ response:+ status:+ code: 200+ message: OK+ headers:+ Cache-Control:+ - no-store, no-cache+ Content-Type:+ - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8+ Content-Encoding:+ - gzip+ Vary:+ - Accept-Encoding+ Strict-Transport-Security:+ - max-age=31536000+ Request-Id:+ - 7fa0054b-7957-4ef6-b464-5668fa6f632e+ Client-Request-Id:+ - 7fa0054b-7957-4ef6-b464-5668fa6f632e+ X-Ms-Ags-Diagnostic:+ - '{"ServerInfo":{"DataCenter":"West Europe","Slice":"E","Ring":"5","ScaleUnit":"009","RoleInstance":"AM1PEPF00030089"}}'+ Odata-Version:+ - '4.0'+ Date:+ - Fri, 08 Mar 2024 09:47:52 GMT+ body:+ encoding: UTF-8+ string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#drives","value":[{"createdDateTime":"2014-07-03T15:53:23Z","description":"","id":"b!kTAW5Yf7f0qq6g_lYINMuB4uOjja01JIjQ_dr7ZjNIH6z0ctGr_6Tp8_tQ7NLb-_","lastModifiedDateTime":"2022-06-03T09:26:04Z","name":"Documents","webUrl":"https://finn.sharepoint.com/Shared%20Documents","driveType":"documentLibrary","createdBy":{"user":{"displayName":"System+ Account"}},"lastModifiedBy":{"user":{"email":"[email protected]","id":"b0870935-81a9-4ef3-a144-850121c00bcf","displayName":"Jens+ Ulferts"}},"owner":{"group":{"id":"068eacfd-365f-4cf5-848b-6a1977a314c4","displayName":"Company+ Administrator"}},"quota":{"deleted":0,"remaining":11168733510,"state":"normal","total":18253611008,"used":7084877498}}]}'+ recorded_at: Fri, 08 Mar 2024 09:47:53 GMT+recorded_with: VCR 6.2.0diff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/client_credentials_invalid_client_id.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/client_credentials_invalid_client_id.ymlnew file mode 100644index 00000000000..155b8a50b5b--- /dev/null+++ b/modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/client_credentials_invalid_client_id.yml@@ -0,0 +1,65 @@+---+http_interactions:+- request:+ method: post+ uri: https://login.microsoftonline.com/4d44bf36-9b56-45c0-8807-bbf386dd047f/oauth2/v2.0/token+ body:+ encoding: ASCII-8BIT+ string: grant_type=client_credentials&scope=https%3A%2F%2Fgraph.microsoft.com%2F.default&client_id=4262df2b-77bb-49c2-a5df-28355da676d4&client_secret=Vwk8Q%7EJTuPh.pAjvPiWBQBdTFMDK%7EAIwxbj9_axB+ headers:+ User-Agent:+ - httpx.rb/1.2.3+ Accept:+ - "*/*"+ Accept-Encoding:+ - gzip, deflate+ Content-Type:+ - application/x-www-form-urlencoded+ Content-Length:+ - '186'+ response:+ status:+ code: 400+ message: Bad Request+ headers:+ Cache-Control:+ - no-store, no-cache+ Pragma:+ - no-cache+ Content-Type:+ - application/json; charset=utf-8+ Expires:+ - "-1"+ Strict-Transport-Security:+ - max-age=31536000; includeSubDomains+ X-Content-Type-Options:+ - nosniff+ P3p:+ - CP="DSP CUR OTPi IND OTRi ONL FIN"+ X-Ms-Request-Id:+ - 46f282b7-d885-4d58-acb8-8bb329c85e01+ X-Ms-Ests-Server:+ - 2.1.17396.8 - FRC ProdSlices+ X-Xss-Protection:+ - '0'+ Set-Cookie:+ - fpc=Au-85Vpu5bdCuNKPnVwy3iWOYfFZAQAAAOPWfN0OAAAA; expires=Sun, 07-Apr-2024+ 09:52:35 GMT; path=/; secure; HttpOnly; SameSite=None, x-ms-gateway-slice=estsfd;+ path=/; secure; samesite=none; httponly, stsservicecookie=estsfd; path=/;+ secure; samesite=none; httponly+ Date:+ - Fri, 08 Mar 2024 09:52:34 GMT+ Content-Length:+ - '750'+ body:+ encoding: UTF-8+ string: '{"error":"unauthorized_client","error_description":"AADSTS700016: Application+ with identifier ''4262df2b-77bb-49c2-a5df-28355da676d4'' was not found in+ the directory ''OpenProject GmbH''. This can happen if the application has+ not been installed by the administrator of the tenant or consented to by any+ user in the tenant. You may have sent your authentication request to the wrong+ tenant. Trace ID: 46f282b7-d885-4d58-acb8-8bb329c85e01 Correlation ID: bffb3977-30e2-49bc-aa3b-d5fe640495b8+ Timestamp: 2024-03-08 09:52:35Z","error_codes":[700016],"timestamp":"2024-03-08+ 09:52:35Z","trace_id":"46f282b7-d885-4d58-acb8-8bb329c85e01","correlation_id":"bffb3977-30e2-49bc-aa3b-d5fe640495b8","error_uri":"https://login.microsoftonline.com/error?code=700016"}'+ recorded_at: Fri, 08 Mar 2024 09:52:35 GMT+recorded_with: VCR 6.2.0diff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/storage_query_client_credentials_invalid.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/client_credentials_invalid_client_secret.ymlsimilarity index 71%rename from modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/storage_query_client_credentials_invalid.ymlrename to modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/client_credentials_invalid_client_secret.ymlindex a99e5988761..45252eda5e5 100644--- a/modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/storage_query_client_credentials_invalid.yml+++ b/modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/client_credentials_invalid_client_secret.yml@@ -5,10 +5,10 @@ http_interactions:uri: https://login.microsoftonline.com/4d44bf36-9b56-45c0-8807-bbf386dd047f/oauth2/v2.0/tokenbody:encoding: ASCII-8BIT- string: grant_type=client_credentials&scope=https%3A%2F%2Fgraph.microsoft.com%2F.default&client_id=4262df2b-77bb-49c2-a5df-28355da676d2&client_secret=Vwk8Q%7EJTuPh.pAjvPiWBQBdTFMDK%7EAIwxbj9_axB___+ string: grant_type=client_credentials&scope=https%3A%2F%2Fgraph.microsoft.com%2F.default&client_id=4262df2b-77bb-49c2-a5df-28355da676d2&client_secret=Vwk8Q%7EJTuPh.pAjvPiWBQBdTFMDK%7EAIwxbj9_axB%2F%2F%2Fheaders:User-Agent:- - httpx.rb/1.2.2+ - httpx.rb/1.2.3Accept:- "*/*"Accept-Encoding:@@ -16,7 +16,7 @@ http_interactions:Content-Type:- application/x-www-form-urlencodedContent-Length:- - '189'+ - '195'response:status:code: 401@@ -37,18 +37,18 @@ http_interactions:P3p:- CP="DSP CUR OTPi IND OTRi ONL FIN"X-Ms-Request-Id:- - 14a966d5-3442-4869-9db3-e6e8629c4200+ - 79dc9e93-53b2-4aae-ab6c-ef5aade86b01X-Ms-Ests-Server:- - 2.1.17396.8 - WEULR1 ProdSlices+ - 2.1.17396.8 - FRC ProdSlicesX-Xss-Protection:- '0'Set-Cookie:- - fpc=Atu5xSIz8pxPqDL299wsTSGkbDoXAQAAAHVxct0OAAAA; expires=Sat, 30-Mar-2024- 12:37:10 GMT; path=/; secure; HttpOnly; SameSite=None, x-ms-gateway-slice=estsfd;+ - fpc=ArsWju6XLfdBv1FghfJshtekbDoXAQAAAELXfN0OAAAA; expires=Sun, 07-Apr-2024+ 09:54:10 GMT; path=/; secure; HttpOnly; SameSite=None, x-ms-gateway-slice=estsfd;path=/; secure; samesite=none; httponly, stsservicecookie=estsfd; path=/;secure; samesite=none; httponlyDate:- - Thu, 29 Feb 2024 12:37:10 GMT+ - Fri, 08 Mar 2024 09:54:10 GMTContent-Length:- '623'body:@@ -56,8 +56,8 @@ http_interactions:string: '{"error":"invalid_client","error_description":"AADSTS7000215: Invalidclient secret provided. Ensure the secret being sent in the request is theclient secret value, not the client secret ID, for a secret added to app ''4262df2b-77bb-49c2-a5df-28355da676d2''.- Trace ID: 14a966d5-3442-4869-9db3-e6e8629c4200 Correlation ID: e856fa17-a5dd-45d3-baf2-ec1b74695dc5- Timestamp: 2024-02-29 12:37:10Z","error_codes":[7000215],"timestamp":"2024-02-29- 12:37:10Z","trace_id":"14a966d5-3442-4869-9db3-e6e8629c4200","correlation_id":"e856fa17-a5dd-45d3-baf2-ec1b74695dc5","error_uri":"https://login.microsoftonline.com/error?code=7000215"}'- recorded_at: Thu, 29 Feb 2024 12:37:10 GMT+ Trace ID: 79dc9e93-53b2-4aae-ab6c-ef5aade86b01 Correlation ID: 6e8fd83c-7b73-4af3-abf0-dd6f7ac4586a+ Timestamp: 2024-03-08 09:54:10Z","error_codes":[7000215],"timestamp":"2024-03-08+ 09:54:10Z","trace_id":"79dc9e93-53b2-4aae-ab6c-ef5aade86b01","correlation_id":"6e8fd83c-7b73-4af3-abf0-dd6f7ac4586a","error_uri":"https://login.microsoftonline.com/error?code=7000215"}'+ recorded_at: Fri, 08 Mar 2024 09:54:10 GMTrecorded_with: VCR 6.2.0diff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/storage_query_user_token_access_token_invalid.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/storage_query_user_token_access_token_invalid.ymldeleted file mode 100644index e536bf2eb9e..00000000000--- a/modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/storage_query_user_token_access_token_invalid.yml+++ /dev/null@@ -1,115 +0,0 @@-----http_interactions:-- request:- method: get- uri: https://graph.microsoft.com/v1.0/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/root/children?$select=id,name,size,webUrl,lastModifiedBy,createdBy,fileSystemInfo,file,folder,parentReference- body:- encoding: US-ASCII- string: ''- headers:- Authorization:- - Bearer <BEARER TOKEN>- User-Agent:- - httpx.rb/1.2.2- Accept:- - "*/*"- Accept-Encoding:- - gzip, deflate- response:- status:- code: 401- message: Unauthorized- headers:- Transfer-Encoding:- - chunked- Content-Type:- - application/json- Content-Encoding:- - gzip- Vary:- - Accept-Encoding- Strict-Transport-Security:- - max-age=31536000- Request-Id:- - d5185685-fc2f-4279-ae6e-6a63258b67ed- Client-Request-Id:- - d5185685-fc2f-4279-ae6e-6a63258b67ed- X-Ms-Ags-Diagnostic:- - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"5","ScaleUnit":"003","RoleInstance":"FR1PEPF00000BA2"}}'- Www-Authenticate:- - Bearer realm="", authorization_uri="https://login.microsoftonline.com/common/oauth2/authorize",- client_id="00000003-0000-0000-c000-000000000000"- Date:- - Thu, 29 Feb 2024 12:38:09 GMT- body:- encoding: UTF-8- string: '{"error":{"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-02-29T12:38:10","request-id":"d5185685-fc2f-4279-ae6e-6a63258b67ed","client-request-id":"d5185685-fc2f-4279-ae6e-6a63258b67ed"}}}'- recorded_at: Thu, 29 Feb 2024 12:38:10 GMT-- request:- method: post- uri: https://login.microsoftonline.com/4d44bf36-9b56-45c0-8807-bbf386dd047f/oauth2/v2.0/token- body:- encoding: ASCII-8BIT- string: grant_type=refresh_token&scope=offline_access+files.readwrite.all+user.read+sites.readwrite.all&refresh_token=0.Aa8AvB1v4679fkK2Gw2W3fuBpFS7pbiyXw5OlCedJNusMv-sAHQ.AgABAAEAAAAmoFfGtYxvRrNriQdPKIZ-AgDs_wUA9P-Mp5TT3fmzX4h_Z_8H-KOxCYkum88ASW9CO1tuPwkkup84TCH74-BLVZNO9ZTSIDsuVhonDreRsFENTve6MWVBF5khUHFBXlH3XLGlkYC3gukCFk9JKNo24Pwn7v4sm-vYzSL_aY-9jAQYHdRJxMbizrQsy3RcqoAYgkgfLzHZ2mrXe63awdSubmHX1hkKk3tCy1FGx5UMC1z2gV6Un7nQMe8aMP_oHTZtYagj10Hb3J2dwRM6dV4HnWeMpiQ7hZMPd0vVFmpFRN_F21LzDTtMHXqxWc5ySYfRehA4g9biXDqDwpGE1oTQ9oNOeMSkUDjj7NtkfDjPbePsf1dlcHfPrRaO1jAVMu3_RuNjXl3gWRle8HjsZoDQ2upOZyB7--rWhJUvVW_rrkJVaKoNz580kdHzi3W5qvGwZEIsNXB4xZJNQqVKpGUciQNtSxb98-n2FySqudn3Vv-NnFIejSvNgyCFmo1OV_F9IxBPipP2Xh64DXm873u49AovkfKNokrCmrCaq-xITjXTyPWgpPcwYFBLiAUQ-Lpb3876y4GyeEs7Qb-q1uAqlfFWsCsRnGsAA3Wp_MHxQxOm_-dS1FnY3zhnZ0DENIKDPcADFEQZPSCUtHaR5E-Dabt8sQJ0JSHbMFOKQuEEa0zFhllwOOymnCgNcGPS9Yf3nLz6z6U_vB3auh30GWTZmdRJV4R4EX3Wcn0p7W7npAIanEo0-AxAtHwF-jGkq0YjHGZhH46qt3i_4W5MMP4IIBVwTdkSluyPijJr3MeEUd_lYjdnYgHPP-HrEzEh7DU- headers:- Authorization:- - Basic <BASIC_AUTH>- User-Agent:- - httpx.rb/1.2.2- Accept:- - "*/*"- Accept-Encoding:- - gzip, deflate- Content-Type:- - application/x-www-form-urlencoded- Content-Length:- - '1007'- response:- status:- code: 400- message: Bad Request- headers:- Cache-Control:- - no-store, no-cache- Pragma:- - no-cache- Content-Type:- - application/json; charset=utf-8- Expires:- - "-1"- Strict-Transport-Security:- - max-age=31536000; includeSubDomains- X-Content-Type-Options:- - nosniff- P3p:- - CP="DSP CUR OTPi IND OTRi ONL FIN"- X-Ms-Request-Id:- - a0b681be-6bf3-4ed7-9ea8-dbf0cce04700- X-Ms-Ests-Server:- - 2.1.17396.8 - SEC ProdSlices- X-Xss-Protection:- - '0'- Set-Cookie:- - fpc=AnLzwxk4nExOnBBp3dgv426Zv0u5AQAAALFxct0OAAAA; expires=Sat, 30-Mar-2024- 12:38:10 GMT; path=/; secure; HttpOnly; SameSite=None, x-ms-gateway-slice=estsfd;- path=/; secure; samesite=none; httponly, stsservicecookie=estsfd; path=/;- secure; samesite=none; httponly- Date:- - Thu, 29 Feb 2024 12:38:09 GMT- Content-Length:- - '750'- body:- encoding: UTF-8- string: '{"error":"unauthorized_client","error_description":"AADSTS700016: Application- with identifier ''b8a5bb54-5fb2-4e0e-9427-9d24dbac32ff'' was not found in- the directory ''OpenProject GmbH''. This can happen if the application has- not been installed by the administrator of the tenant or consented to by any- user in the tenant. You may have sent your authentication request to the wrong- tenant. Trace ID: a0b681be-6bf3-4ed7-9ea8-dbf0cce04700 Correlation ID: 78c735f4-2c64-4957-85bf-f0259b38587f- Timestamp: 2024-02-29 12:38:10Z","error_codes":[700016],"timestamp":"2024-02-29- 12:38:10Z","trace_id":"a0b681be-6bf3-4ed7-9ea8-dbf0cce04700","correlation_id":"78c735f4-2c64-4957-85bf-f0259b38587f","error_uri":"https://login.microsoftonline.com/error?code=700016"}'- recorded_at: Thu, 29 Feb 2024 12:38:10 GMT-recorded_with: VCR 6.2.0diff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/storage_query_user_token_refresh_token_invalid.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/storage_query_user_token_refresh_token_invalid.ymldeleted file mode 100644index bb0ac78cbd4..00000000000--- a/modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/storage_query_user_token_refresh_token_invalid.yml+++ /dev/null@@ -1,109 +0,0 @@-----http_interactions:-- request:- method: get- uri: https://graph.microsoft.com/v1.0/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/root/children?$select=id,name,size,webUrl,lastModifiedBy,createdBy,fileSystemInfo,file,folder,parentReference- body:- encoding: US-ASCII- string: ''- headers:- Authorization:- - Bearer <BEARER TOKEN>- User-Agent:- - httpx.rb/1.2.2- Accept:- - "*/*"- Accept-Encoding:- - gzip, deflate- response:- status:- code: 401- message: Unauthorized- headers:- Transfer-Encoding:- - chunked- Content-Type:- - application/json- Content-Encoding:- - gzip- Vary:- - Accept-Encoding- Strict-Transport-Security:- - max-age=31536000- Request-Id:- - a01f06ab-2304-4aee-a19d-62842bc72d54- Client-Request-Id:- - a01f06ab-2304-4aee-a19d-62842bc72d54- X-Ms-Ags-Diagnostic:- - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"5","ScaleUnit":"005","RoleInstance":"FR3PEPF000002E8"}}'- Www-Authenticate:- - Bearer realm="", authorization_uri="https://login.microsoftonline.com/common/oauth2/authorize",- client_id="00000003-0000-0000-c000-000000000000"- Date:- - Thu, 29 Feb 2024 12:36:16 GMT- body:- encoding: UTF-8- string: '{"error":{"code":"InvalidAuthenticationToken","message":"Lifetime validation- failed, the token is expired.","innerError":{"date":"2024-02-29T12:36:17","request-id":"a01f06ab-2304-4aee-a19d-62842bc72d54","client-request-id":"a01f06ab-2304-4aee-a19d-62842bc72d54"}}}'- recorded_at: Thu, 29 Feb 2024 12:36:17 GMT-- request:- method: post- uri: https://login.microsoftonline.com/4d44bf36-9b56-45c0-8807-bbf386dd047f/oauth2/v2.0/token- body:- encoding: ASCII-8BIT- string: grant_type=refresh_token&scope=offline_access+files.readwrite.all+user.read+sites.readwrite.all&refresh_token=0.Aa8AvB1v4679fkK2Gw2W3fuBpFS7pbiyXw5OlCedJNusMv-sAHQ.AgABAAEAAAAmoFfGtYxvRrNriQdPKIZ-AgDs_wUA9P-Mp5TT3fmzX4h_Z_8H-KOxCYkum88ASW9CO1tuPwkkup84TCH74-BLVZNO9ZTSIDsuVhonDreRsFENTve6MWVBF5khUHFBXlH3XLGlkYC3gukCFk9JKNo24Pwn7v4sm-vYzSL_aY-9jAQYHdRJxMbizrQsy3RcqoAYgkgfLzHZ2mrXe63awdSubmHX1hkKk3tCy1FGx5UMC1z2gV6Un7nQMe8aMP_oHTZtYagj10Hb3J2dwRM6dV4HnWeMpiQ7hZMPd0vVFmpFRN_F21LzDTtMHXqxWc5ySYfRehA4g9biXDqDwpGE1oTQ9oNOeMSkUDjj7NtkfDjPbePsf1dlcHfPrRaO1jAVMu3_RuNjXl3gWRle8HjsZoDQ2upOZyB7--rWhJUvVW_rrkJVaKoNz580kdHzi3W5qvGwZEIsNXB4xZJNQqVKpGUciQNtSxb98-n2FySqudn3Vv-NnFIejSvNgyCFmo1OV_F9IxBPipP2Xh64DXm873u49AovkfKNokrCmrCaq-xITjXTyPWgpPcwYFBLiAUQ-Lpb3876y4GyeEs7Qb-q1uAqlfFWsCsRnGsAA3Wp_MHxQxOm_-dS1FnY3zhnZ0DENIKDPcADFEQZPSCUtHaR5E-Dabt8sQJ0JSHbMFOKQuEEa0zFhllwOOymnCgNcGPS9Yf3nLz6z6U_vB3auh30GWTZmdRJV4R4EX3Wcn0p7W7npAIanEo0-AxAtHwF-jGkq0YjHGZhH46qt3i_4W5MMP4IIBVwTdkSluyPijJr3MeEUd_lYjdnYgHPP-HrEzEh7DU%2Fa- headers:- Authorization:- - Basic <BASIC_AUTH>- User-Agent:- - httpx.rb/1.2.2- Accept:- - "*/*"- Accept-Encoding:- - gzip, deflate- Content-Type:- - application/x-www-form-urlencoded- Content-Length:- - '1011'- response:- status:- code: 400- message: Bad Request- headers:- Cache-Control:- - no-store, no-cache- Pragma:- - no-cache- Content-Type:- - application/json; charset=utf-8- Expires:- - "-1"- Strict-Transport-Security:- - max-age=31536000; includeSubDomains- X-Content-Type-Options:- - nosniff- P3p:- - CP="DSP CUR OTPi IND OTRi ONL FIN"- X-Ms-Request-Id:- - 26662a10-45e0-4d01-ba67-a2003e9f9700- X-Ms-Ests-Server:- - 2.1.17396.8 - WEULR1 ProdSlices- X-Xss-Protection:- - '0'- Set-Cookie:- - fpc=Aput8wtsE-NOheSWU3cAheA; expires=Sat, 30-Mar-2024 12:36:17 GMT; path=/;- secure; HttpOnly; SameSite=None, x-ms-gateway-slice=estsfd; path=/; secure;- samesite=none; httponly, stsservicecookie=estsfd; path=/; secure; samesite=none;- httponly- Date:- - Thu, 29 Feb 2024 12:36:17 GMT- Content-Length:- - '476'- body:- encoding: UTF-8- string: '{"error":"invalid_grant","error_description":"AADSTS9002313: Invalid- request. Request is malformed or invalid. Trace ID: 26662a10-45e0-4d01-ba67-a2003e9f9700- Correlation ID: f293dcd1-526e-48b1-8d52-d84ff3a5866d Timestamp: 2024-02-29- 12:36:17Z","error_codes":[9002313],"timestamp":"2024-02-29 12:36:17Z","trace_id":"26662a10-45e0-4d01-ba67-a2003e9f9700","correlation_id":"f293dcd1-526e-48b1-8d52-d84ff3a5866d","error_uri":"https://login.microsoftonline.com/error?code=9002313"}'- recorded_at: Thu, 29 Feb 2024 12:36:17 GMT-recorded_with: VCR 6.2.0diff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/user_token.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/user_token.ymlnew file mode 100644index 00000000000..1ca4d619f7a--- /dev/null+++ b/modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/user_token.yml@@ -0,0 +1,50 @@+---+http_interactions:+- request:+ method: get+ uri: https://graph.microsoft.com/v1.0/me+ body:+ encoding: US-ASCII+ string: ''+ headers:+ Authorization:+ - Bearer <BEARER TOKEN>+ User-Agent:+ - httpx.rb/1.2.3+ Accept:+ - "*/*"+ Accept-Encoding:+ - gzip, deflate+ response:+ status:+ code: 200+ message: OK+ headers:+ Cache-Control:+ - no-cache+ Content-Type:+ - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8+ Content-Encoding:+ - gzip+ Vary:+ - Accept-Encoding+ Strict-Transport-Security:+ - max-age=31536000+ Request-Id:+ - 8880066a-b15a-4140-8389-0831db4b84e5+ Client-Request-Id:+ - 8880066a-b15a-4140-8389-0831db4b84e5+ X-Ms-Ags-Diagnostic:+ - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"5","ScaleUnit":"005","RoleInstance":"FR3PEPF00000368"}}'+ X-Ms-Resource-Unit:+ - '1'+ Odata-Version:+ - '4.0'+ Date:+ - Fri, 08 Mar 2024 10:07:54 GMT+ body:+ encoding: UTF-8+ string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#users/$entity","businessPhones":[],"displayName":"Eric+ Schubert","givenName":"Eric","jobTitle":"Developer","mail":"[email protected]","mobilePhone":null,"officeLocation":null,"preferredLanguage":null,"surname":"Schubert","userPrincipalName":"eschubert.op_outlook.com#EXT#@finn.onmicrosoft.com","id":"0a0d38a9-a59b-4245-93fa-0d2cf727f17a"}'+ recorded_at: Fri, 08 Mar 2024 10:07:55 GMT+recorded_with: VCR 6.2.0diff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/user_token_access_token_invalid.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/user_token_access_token_invalid.ymlnew file mode 100644index 00000000000..e9e541cb2b7--- /dev/null+++ b/modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/user_token_access_token_invalid.yml@@ -0,0 +1,154 @@+---+http_interactions:+- request:+ method: get+ uri: https://graph.microsoft.com/v1.0/me+ body:+ encoding: US-ASCII+ string: ''+ headers:+ Authorization:+ - Bearer <BEARER TOKEN>+ User-Agent:+ - httpx.rb/1.2.3+ Accept:+ - "*/*"+ Accept-Encoding:+ - gzip, deflate+ response:+ status:+ code: 401+ message: Unauthorized+ headers:+ Content-Type:+ - application/json+ Content-Encoding:+ - gzip+ Vary:+ - Accept-Encoding+ Strict-Transport-Security:+ - max-age=31536000+ Request-Id:+ - ad0aa0d8-97e8-4c7f-9569-f4363f882e4a+ Client-Request-Id:+ - ad0aa0d8-97e8-4c7f-9569-f4363f882e4a+ X-Ms-Ags-Diagnostic:+ - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"5","ScaleUnit":"005","RoleInstance":"FR3PEPF00000355"}}'+ Www-Authenticate:+ - Bearer realm="", authorization_uri="https://login.microsoftonline.com/common/oauth2/authorize",+ client_id="00000003-0000-0000-c000-000000000000"+ Date:+ - Fri, 08 Mar 2024 10:12:12 GMT+ body:+ encoding: UTF-8+ string: '{"error":{"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-03-08T10:12:12","request-id":"ad0aa0d8-97e8-4c7f-9569-f4363f882e4a","client-request-id":"ad0aa0d8-97e8-4c7f-9569-f4363f882e4a"}}}'+ recorded_at: Fri, 08 Mar 2024 10:12:13 GMT+- request:+ method: post+ uri: https://login.microsoftonline.com/4d44bf36-9b56-45c0-8807-bbf386dd047f/oauth2/v2.0/token+ body:+ encoding: ASCII-8BIT+ string: grant_type=refresh_token&scope=https%3A%2F%2Fgraph.microsoft.com%2F.default&client_id=4262df2b-77bb-49c2-a5df-28355da676d2&client_secret=Vwk8Q%7EJTuPh.pAjvPiWBQBdTFMDK%7EAIwxbj9_axB&refresh_token=0.AQkANr9ETVabwEWIB7vzht0EfyvfYkK7d8JJpd8oNV2mdtIJAK8.AgABAAEAAADnfolhJpSnRYB1SVj-Hgd8AgDs_wUA9P8ntRuLW080vHVlO5D6JSD0duXIRciAKS285L-3UTLSPQV-sTbd39NDX8E5Iy6IzOQ1Ts_e7pRRtcSpfdJUkSYHWw8EzTo4AVpgiSL1z2nQGrKMBB7zdUmhWtVCC6vWnvlq6MEMJVnRX_99r1lpt09J3LV237zUcinactOxgRUjvUsMtn-1Dy43hRj3zjBjiC0RrePD_hQ7MVcBX15u4VxUDzCzOOquPtJoai0aQ7W8PSDakrIvYiDzdCZVWuxmLDM-rmGu8dJyuLzTBszQGqCUnH4CamL-9GgZExZK1_YrMoB7kei2ByHN_EZ2NCvEPXZlLZWBy_DC8Chp2CdamK2ViuUrLEh90Iu5UpiYQhpJ_CBJjHlWHcMjE_SYkPlyKekogTpNbAFxlx5-mzEpfPFX3f8JdzMem4-LTV3SOAmXHUcsH00qk-n_Gz8wAK06kxj5xe8KPObw3DfBlL9A15V4gzLW_1yP7SH8MpU2E_88-hP74nMs9suaTX9Pd5Nf3xpYMge0G4rAxj7VWKiVTkmhoct_9sbf-FxIUfFeaNwkZlTxhsPow_t0uwSFUzwUT-JCxlqBiDBqMSdrdEkzf2vPDIHkoMgIkKT_7vxhzTIjOPsiXbZz_tQztqjGNchmJyYQ6oqRU1prLCFQ4XZ-fCg8JjovSebsaj22VVo4dVQV6LHL6JXC4yLrLDwhLtLaGZcOj-QQzWspofBGWvTEn5g0CIFdBkeZkWSYfULwczOJNVgiq1yG1D1OVpGpc0ij6FnS6ax2_bVBt6Ms8gIUUivrZ99Hy4Uydo4UGJfaQFT5GJ6rLe5s_j6fg7JgbjW2GEZPxbugGaNpfq_4IZGXJJ5T9qXhnGsAIddS0KG8e0UO3ZR0ZZx3f40fofawZ-P4PK2HPatd4q2wze4R9uS_7weE8-kS43xCHiokvI0ghcWETLh-l_hJYkhFJfLGD0AdHtvSqTlLot3ErGYrczhWJMQtF-P4_r2tGR8119PE5Ud-8rhwe_ufFRvBe93HJ_imWATrao4EKkBl_NGb18z0SvZ2wdYZRz6l5WCzXfbgxAVRzuCeVw9xaBFakGg0xJg_7jQ0qx7tR9p4jdyiIcu6IK3agzXQ7xFTlgb-paiqhU8S_r0w-_KgBLpBGa3ECHquPWwOjenBxrA8ue5KZLTHW3Q7u9w4TOzb0JcvbAvbQ95MpHJju8TJ24ik1e6ADlILtsoQhp29FBYrDt_s3AuGFG4iBoZSgw-quGc59uCWJqIchq5y7xYg4EHAY9njXojlGIuIjEdl1Rc4g1bCguLkrSYIXAQSNW6ujqOmfNSjXMze3siHey1WLBQ1FeU2C9f9AdiiCtEORwLR54oPGIGjc_3kINecU1YptbzkvLPoy5aS5d_SjZmSy1Yl6JMDZ8QH8wm8Bu0kLvxnlWMHTMw5gjQpoeBhUsh9wQJn0lUGO14D5lXJJZlBrYDaZ0ee8T7lKPeaazkVF2kh-gwgdSNLXagTkhgQdmLVtMAUrqLH2Q+ headers:+ User-Agent:+ - httpx.rb/1.2.3+ Accept:+ - "*/*"+ Accept-Encoding:+ - gzip, deflate+ Content-Type:+ - application/x-www-form-urlencoded+ Content-Length:+ - '1804'+ response:+ status:+ code: 200+ message: OK+ headers:+ Cache-Control:+ - no-store, no-cache+ Pragma:+ - no-cache+ Content-Type:+ - application/json; charset=utf-8+ Expires:+ - "-1"+ Strict-Transport-Security:+ - max-age=31536000; includeSubDomains+ X-Content-Type-Options:+ - nosniff+ P3p:+ - CP="DSP CUR OTPi IND OTRi ONL FIN"+ X-Ms-Request-Id:+ - e821fe8d-3b01-4b6b-84a4-9ea1ad989e01+ X-Ms-Ests-Server:+ - 2.1.17396.8 - SEC ProdSlices+ X-Xss-Protection:+ - '0'+ Set-Cookie:+ - fpc=ArOzgq1vi4pDjjvHIUkf75pjrVfjAQAAAHzbfN0OAAAA; expires=Sun, 07-Apr-2024+ 10:12:13 GMT; path=/; secure; HttpOnly; SameSite=None, x-ms-gateway-slice=estsfd;+ path=/; secure; samesite=none; httponly, stsservicecookie=estsfd; path=/;+ secure; samesite=none; httponly+ Date:+ - Fri, 08 Mar 2024 10:12:13 GMT+ Content-Length:+ - '4400'+ body:+ encoding: UTF-8+ string: '{"token_type":"Bearer","scope":"profile openid email https://graph.microsoft.com/Directory.ReadWrite.All+ https://graph.microsoft.com/Files.ReadWrite.All https://graph.microsoft.com/Sites.Read.All+ https://graph.microsoft.com/Sites.ReadWrite.All https://graph.microsoft.com/User.Read+ https://graph.microsoft.com/.default","expires_in":3924,"ext_expires_in":3924,"access_token":"<ACCESS_TOKEN>","refresh_token":"0.AQkANr9ETVabwEWIB7vzht0EfyvfYkK7d8JJpd8oNV2mdtIJAK8.AgABAAEAAADnfolhJpSnRYB1SVj-Hgd8AgDs_wUA9P8lgegjoHlDEVPHGZ5FBon869Xv5-c9gQV0LKbMA9Wmq-BRtWBTZbAn3-GH1LZEjk8ZIpuiyHsXCBfhudmlW8BlxIjr-AVqZVY59pZfPQ7kW-EiETxysRxvb6-KqsT8CGjYcbQb_hRpBJXaQwtBOu6rh6Noie1K_pzq3D8R8QEwnLMlfwWj_63iVWf5IfNposuZ40WQcYmwiQpHfmNy-mq1kD35YQrjaEGDW1vs_9tT-sS7GnkmxvzvUkiOxrOc9c69se7DU4fjX9PuSxy4q8u44kr5BifW6D3IdM0Ow6_y0bC75hhf78OyKMLrUjvICd7_STcsjyjWB3x3QRABNEJrNpHRTJ1_WmQmwOwRPzr4kCGyRWUTLqgJL96fzDUb_stnmjo_tEI1AAUSk4MO5lXpatzfihKJviKMUxGKFYb5PMKlMUBaBiM1kJKPoQyduw21jfJGXfe8NsrgSC3_FU_khY3xC-hYU_9m5AMTe2RtvQG6k-IciyyoHDfD0KHN9el8-zSu0euwkU39OnkV5H2LNN9UeTdzJQj5ZKoOXhI3xFW9z4nFJT3pO0VmbyWUvPM_8HkJafEujt1DO6ocD9COZq4mudVUdRNoRvTOBeu3FtEt6X80OyPawO5fPLh_JuvhG_ff_jBEUX1wJwpnBykdczoA37P1p6KSbB6h3_ZoB5harlzv1KjKFyKpyNGnNAkrEqAr3nX2MEWTuurGPDw1psrHpvTODWXcM_EAJ5HG2j4-ET7XZjTQr9dq1jhHiXiHtGZdJ2R0aThe1Cye7fx7MSzNIE36HtpOns9gfa40oi5IC9be2BwYJPcGc9rXOFAT-tfjumitN8UJi5uzkHJ2-tzA9DkrE2fGDMaNtEgYsyBfDjeVbgio5n2nXIu9zHht_y3KDLRYV4XqIxCRSIyqy513WdR3jRrLB1bIflBNtgqdinQlWXM3e9jm9kBisBTjPR4Iq0NE-GPUg0-8jDEBZ11ZvrttDx1jtc5mxdSMYP7oSLG7sMOBxDmff0xMl05Wv-4j54830ebY2sF_lrJ78qpnaePen0ANgODMug28dCJ2yStzMW2ZyGqdurhRp_8sh09W3Q3xkto-OPuHLjYZDqCMfU03DcPk61BQJPRWKtvTSvfHDOzh9COmQI7qxzsJmv-MIIQ9tS12Lm6sxivJH-PAa7INrxHESf7UOgepp6onZiQKXvLuYUJK4hmP8SVMG-y-H3bPxFmS-lM3w5w-s_4wRHY6Xrj8MmSf_92_oekEK71K2pRQqlRj79g6ReZh5bDF2lZRDPX6gqE3LFa7FicUAyRuZY3CtnfK4S84fuzeU5X9V7Vs2kXymj_TSTbhnkAkRpYjj8wXUMqTuR4ggeRCapJGWGXDItJHDlpVyzdNa3128LZ2aChbbHctY_nqloDhUOfq_LeuD5w2Ud6cysbI7kMHp6VUrSZdSp8CKSM_z-E6HCtMXi4bYjYNwFBcKvhXoBbduPMwTjDxIzPhPvciL1TAMRa1g1DPRQ"}'+ recorded_at: Fri, 08 Mar 2024 10:12:13 GMT+- request:+ method: get+ uri: https://graph.microsoft.com/v1.0/me+ body:+ encoding: US-ASCII+ string: ''+ headers:+ User-Agent:+ - httpx.rb/1.2.3+ Accept:+ - "*/*"+ Accept-Encoding:+ - gzip, deflate+ Authorization:+ - Bearer <BEARER TOKEN>+ response:+ status:+ code: 200+ message: OK+ headers:+ Cache-Control:+ - no-cache+ Content-Type:+ - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8+ Content-Encoding:+ - gzip+ Vary:+ - Accept-Encoding+ Strict-Transport-Security:+ - max-age=31536000+ Request-Id:+ - ab1dd57e-6196-46f6-9387-e6c679b666c2+ Client-Request-Id:+ - ab1dd57e-6196-46f6-9387-e6c679b666c2+ X-Ms-Ags-Diagnostic:+ - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"5","ScaleUnit":"005","RoleInstance":"FR3PEPF000002D8"}}'+ X-Ms-Resource-Unit:+ - '1'+ Odata-Version:+ - '4.0'+ Date:+ - Fri, 08 Mar 2024 10:12:13 GMT+ body:+ encoding: UTF-8+ string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#users/$entity","businessPhones":[],"displayName":"Eric+ Schubert","givenName":"Eric","jobTitle":"Developer","mail":"[email protected]","mobilePhone":null,"officeLocation":null,"preferredLanguage":null,"surname":"Schubert","userPrincipalName":"eschubert.op_outlook.com#EXT#@finn.onmicrosoft.com","id":"0a0d38a9-a59b-4245-93fa-0d2cf727f17a"}'+ recorded_at: Fri, 08 Mar 2024 10:12:13 GMT+recorded_with: VCR 6.2.0diff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/user_token_refresh_token_invalid.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/user_token_refresh_token_invalid.ymlnew file mode 100644index 00000000000..8695eb3b260--- /dev/null+++ b/modules/storages/spec/support/fixtures/vcr_cassettes/auth/one_drive/user_token_refresh_token_invalid.yml@@ -0,0 +1,109 @@+---+http_interactions:+- request:+ method: get+ uri: https://graph.microsoft.com/v1.0/me+ body:+ encoding: US-ASCII+ string: ''+ headers:+ Authorization:+ - Bearer <BEARER TOKEN>+ User-Agent:+ - httpx.rb/1.2.3+ Accept:+ - "*/*"+ Accept-Encoding:+ - gzip, deflate+ response:+ status:+ code: 401+ message: Unauthorized+ headers:+ Content-Type:+ - application/json+ Content-Encoding:+ - gzip+ Vary:+ - Accept-Encoding+ Strict-Transport-Security:+ - max-age=31536000+ Request-Id:+ - bd58ebc4-22ab-4c8e-83db-4e768e3e027b+ Client-Request-Id:+ - bd58ebc4-22ab-4c8e-83db-4e768e3e027b+ X-Ms-Ags-Diagnostic:+ - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"5","ScaleUnit":"004","RoleInstance":"FR2PEPF0000038F"}}'+ Www-Authenticate:+ - Bearer realm="", authorization_uri="https://login.microsoftonline.com/common/oauth2/authorize",+ client_id="00000003-0000-0000-c000-000000000000"+ Date:+ - Fri, 08 Mar 2024 10:19:25 GMT+ body:+ encoding: UTF-8+ string: '{"error":{"code":"InvalidAuthenticationToken","message":"Lifetime validation+ failed, the token is expired.","innerError":{"date":"2024-03-08T10:19:25","request-id":"bd58ebc4-22ab-4c8e-83db-4e768e3e027b","client-request-id":"bd58ebc4-22ab-4c8e-83db-4e768e3e027b"}}}'+ recorded_at: Fri, 08 Mar 2024 10:19:25 GMT+- request:+ method: post+ uri: https://login.microsoftonline.com/4d44bf36-9b56-45c0-8807-bbf386dd047f/oauth2/v2.0/token+ body:+ encoding: ASCII-8BIT+ string: grant_type=refresh_token&scope=https%3A%2F%2Fgraph.microsoft.com%2F.default&client_id=4262df2b-77bb-49c2-a5df-28355da676d2&client_secret=Vwk8Q%7EJTuPh.pAjvPiWBQBdTFMDK%7EAIwxbj9_axB&refresh_token=0.Aa8AvB1v4679fkK2Gw2W3fuBpFS7pbiyXw5OlCedJNusMv-sAG8.AgABAAEAAADnfolhJpSnRYB1SVj-Hgd8AgDs_wUA9P8Z061joKlEcPUtDzyw_gVnTjiopiJDS5ytd7dL84d96fn-6ZLCxNaGgq--SyccONngEfxC4dPXkrI91EryFG6Gc5M3Ols5wM2DCRSDrPHhik0q7Jyg2COnCW7CkRGpFw73snV_HcUj_16JgSABTdK4bZkodfS9fb58jpydgORme7boXgT0m5g3_XPp7WSr3Ux8AwM4NCJD9NWuJeVMuDuRLwF1Ro_yC3QDfBvKbJ72PpEmII_1m2FqRoDHJguXkEyXQrjBjVo6oosKRgZk_F04OFvCZsZAqnRDEcJ4Ut_wKODky_tvEVrKHvM48XLI5lKblCLBqd1alnfPIG_jUs4K_HnpJWIhYPwTuGM3ZVWsLSRhsvvRgYwiph_HDysTUlEJvtVR51L3AT4WXnuQ6vgUxFKOj0nrxJKP6cL7g9-d7Z9pc5Avc79fwOE_eCqcdAQFmhfhRafxfTi-lQpBJ3AV0KO-9WmdshPlxvbVsNr1widcQEKA8Jp16wOdqxOiWGQvZdFXn1xLksKGSvAwxZ96xMitU-Wy4hobpSO2emf1Z_0Snz43kBRM6pOBQmO12mQH3FsYeK7QyRIyoLd6qbn63_SjBGoujZExMlFl2oApUVhqo1GU2eMtpn7U9YWCikztHrJQKicYPqHBb60e1i1h69XieYrbzlgd6FHzsyHNHYsek9eZntuXRU6vA7-xkJC9wlBPaUYpZQG0LSFZkhpu19okyEmXjIG6iU7kd4-rTTrMGAv8ld17OuqMCkA188PxNHp4fe3FK0Pq12Oyu_y3PPpG1RvkkntaVQJPn-CB_hRzAlCc1iCbbiEt+ headers:+ User-Agent:+ - httpx.rb/1.2.3+ Accept:+ - "*/*"+ Accept-Encoding:+ - gzip, deflate+ Content-Type:+ - application/x-www-form-urlencoded+ Content-Length:+ - '1118'+ response:+ status:+ code: 400+ message: Bad Request+ headers:+ Cache-Control:+ - no-store, no-cache+ Pragma:+ - no-cache+ Content-Type:+ - application/json; charset=utf-8+ Expires:+ - "-1"+ Strict-Transport-Security:+ - max-age=31536000; includeSubDomains+ X-Content-Type-Options:+ - nosniff+ P3p:+ - CP="DSP CUR OTPi IND OTRi ONL FIN"+ X-Ms-Request-Id:+ - 5caa14c3-739a-485e-8435-5953a8871b01+ X-Ms-Ests-Server:+ - 2.1.17396.8 - NEULR1 ProdSlices+ X-Xss-Protection:+ - '0'+ Set-Cookie:+ - fpc=Au5UpfkLa3xArxbExNnpxbwf1m9OAQAAAC7dfN0OAAAA; expires=Sun, 07-Apr-2024+ 10:19:26 GMT; path=/; secure; HttpOnly; SameSite=None, x-ms-gateway-slice=estsfd;+ path=/; secure; samesite=none; httponly, stsservicecookie=estsfd; path=/;+ secure; samesite=none; httponly+ Date:+ - Fri, 08 Mar 2024 10:19:25 GMT+ Content-Length:+ - '750'+ body:+ encoding: UTF-8+ string: '{"error":"unauthorized_client","error_description":"AADSTS700016: Application+ with identifier ''b8a5bb54-5fb2-4e0e-9427-9d24dbac32ff'' was not found in+ the directory ''OpenProject GmbH''. This can happen if the application has+ not been installed by the administrator of the tenant or consented to by any+ user in the tenant. You may have sent your authentication request to the wrong+ tenant. Trace ID: 5caa14c3-739a-485e-8435-5953a8871b01 Correlation ID: c1b246e2-1f45-4bcc-bd5e-c49dee897791+ Timestamp: 2024-03-08 10:19:26Z","error_codes":[700016],"timestamp":"2024-03-08+ 10:19:26Z","trace_id":"5caa14c3-739a-485e-8435-5953a8871b01","correlation_id":"c1b246e2-1f45-4bcc-bd5e-c49dee897791","error_uri":"https://login.microsoftonline.com/error?code=700016"}'+ recorded_at: Fri, 08 Mar 2024 10:19:26 GMT+recorded_with: VCR 6.2.0