Skip to content

Commit

Permalink
test: fix tests for new SRP auth flow
Browse files Browse the repository at this point in the history
  • Loading branch information
iowk committed Oct 23, 2024
1 parent 1a76953 commit f830709
Showing 1 changed file with 48 additions and 3 deletions.
51 changes: 48 additions & 3 deletions tests/vcr_cassettes/failed_auth.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
interactions:
- request:
body: !!python/unicode '{"accountName": "bad_username", "password": "bad_password", "rememberMe":
true, "trustTokens": []}'
body: !!python/unicode '{"accountName": "bad_username", "protocols": ["s2k", "s2k_fo"]}'
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Expand All @@ -20,7 +19,53 @@ interactions:
X-Apple-OAuth-State: ['EC5646DE-9423-11E8-BF21-14109FE0B321']
X-Apple-Widget-Key: ['d39ba9916b7251055b22c7f910e2ea796ee65e98b2ddecea8f5dde8d9d1a815d']
method: POST
uri: https://idmsa.apple.com/appleauth/auth/signin?isRememberMeEnabled=true
uri: https://idmsa.apple.com/appleauth/auth/signin/init
response:
body: {string: '{"iteration":20064,"salt":"UUN/B5zMSaxm+FngfF1PVg==","protocol":"s2k","version":1,"b":"ayYNFojK3WZERVCU+aP1MdBr9QLnpNeaqRGt7FknA/gfJ/7PsZMWwJT8DKpcQSvhXDadYWCXyPMvxR9fcww+DYYoiCM6uRpi6/IOK/BRInXzCzooks7pfgMMLWbR30ld2FogfZki+OmPLJeY2SUqAmDi+gAi9s5GZmNgYdgUCEvwkccwjhORyYwmmigifZ6IJKUB0TwYpKampWDJnalQE3zwCn9x5kXSS2FLhnRuaMmSiwE6VqbWC/Y4Fv3o+L8+0jyolSWA2aHcekKoLkgyHSva7FpT1beo8fgnGftoWHM0+9lTH9kmE+OTC1lUG2QcNxtOxCqKhTza9RN9iqw1eA==","c":"d-349-8548e662-90f1-11ef-8366-5b8b86db9f34:MSA"}'}
headers:
Cache-Control:
- 'no-cache'
- 'no-store'
Connection: ['keep-alive']
Content-Type: ['text/html;charset=UTF-8']
Date: ['Fri, 15 Dec 2023 17:28:03 GMT']
Pragma: ['no-cache']
Referrer-Policy: ['origin']
Server: ['Apple']
Strict-Transport-Security: ['max-age=31536000; includeSubDomains; preload']
Transfer-Encoding: ['chunked']
X-Apple-I-Request-ID: ['12345678-1234-1234-1234-123456789012']
X-BuildVersion: ['R4_1']
X-Content-Type-Options: ['nosniff']
X-FRAME-OPTIONS: ['DENY']
X-XSS-Protection: ['1; mode=block']
content-length: ['23705']
scnt: ['scnt-1234567890']
vary: ['accept-encoding']
status:
code: 200
message: ''
- request:
body: !!python/unicode '{"accountName": "bad_username", "rememberMe": true, "trustTokens": []}'
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Connection: ['keep-alive']
Content-Length: ['98']
Content-Type: ['application/json']
Origin: ['https://www.icloud.com']
Referer: ['https://www.icloud.com/']
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
X-Apple-OAuth-Client-Id: ['d39ba9916b7251055b22c7f910e2ea796ee65e98b2ddecea8f5dde8d9d1a815d']
X-Apple-OAuth-Client-Type: ['firstPartyAuth']
X-Apple-OAuth-Redirect-URI: ['https://www.icloud.com']
X-Apple-OAuth-Require-Grant-Code: ['true']
X-Apple-OAuth-Response-Mode: ['web_message']
X-Apple-OAuth-Response-Type: ['code']
X-Apple-OAuth-State: ['EC5646DE-9423-11E8-BF21-14109FE0B321']
X-Apple-Widget-Key: ['d39ba9916b7251055b22c7f910e2ea796ee65e98b2ddecea8f5dde8d9d1a815d']
method: POST
uri: https://idmsa.apple.com/appleauth/auth/signin/complete?isRememberMeEnabled=true
response:
body:
string: !!python/unicode '{}'
Expand Down

0 comments on commit f830709

Please sign in to comment.