SteamKit icon indicating copy to clipboard operation
SteamKit copied to clipboard

Add support for CDN auth

Open oureveryday opened this issue 1 year ago • 2 comments

Some Steam CDNs in China requires a CDN auth to download.

oureveryday avatar Jun 30 '24 02:06 oureveryday

This looks like it just passes null around. Where does the actual auth happen?

yaakov-h avatar Jun 30 '24 03:06 yaakov-h

You need to call CMsgClientGetCDNAuthTokenResponse and get the CDN auth. Only in Chinese CDNs it will return a non-empty CDN auth string. (Other CDNs will return an empty string) And if you passed an empty/invaild CDN auth string to Chinese CDN, it will return a 403 error.

oureveryday avatar Jun 30 '24 03:06 oureveryday

For reference, CDN auth code was removed in #1022.

xPaw avatar Jul 25 '24 08:07 xPaw

You still need to use a CDN auth to download in Chinese CDNs.

oureveryday avatar Jul 25 '24 08:07 oureveryday

I know, I am providing a reference as to where it was removed, and you can take a look at how it was implemented before.

You should add a xmldoc for the auth argument and how to get one (GetCDNAuthToken).

xPaw avatar Jul 25 '24 09:07 xPaw