fix(service/icloud):Missing 'X-APPLE-WEBAUTH-USER cookie' and URL initialized failed#4029
fix(service/icloud):Missing 'X-APPLE-WEBAUTH-USER cookie' and URL initialized failed#4029Xuanwo merged 11 commits intoapache:mainfrom
Conversation
… securely initialized Signed-off-by: bokket <3100563328@qq.com>
| } | ||
|
|
||
| if !self.data.cookies.is_empty() { | ||
| let cookies: Vec<String> = self |
There was a problem hiding this comment.
We don't need this because reqwest automatically loads and sets cookies.
There was a problem hiding this comment.
Apple server will check 'X-APPLE-WEBAUTH-USER cookie' in cookies.If we don't update in authenticate request(setup.icloud.com/setup/ws/1) to keep value in seesionData,the next sign cookies are useless.
There was a problem hiding this comment.
Apple server will check 'X-APPLE-WEBAUTH-USER cookie' in cookies.If we don't update in
authenticate request(setup.icloud.com/setup/ws/1)to keep value inseesionData,the nextsigncookies are useless.
We don't need to. reqwest will handle COOKIES and SET-COOKIES headers exactly the same as you do here.
| /// Get the drivews_url from signer session data. | ||
| /// Async await init finish. | ||
| pub async fn drivews_url(&mut self) -> Result<String> { | ||
| self.init().await?; |
There was a problem hiding this comment.
Please check self.initiated first. Or we can move the check into init() directly.
Signed-off-by: bokket <3100563328@qq.com>
Signed-off-by: bokket <3100563328@qq.com>
No description provided.