geel9 / SteamAuth

A C# library that provides vital Steam Mobile Authenticator functionality
MIT License
276 stars 102 forks source link

Fail to add authenticator in new version of the rest api #93

Closed Zachxz0 closed 1 year ago

Zachxz0 commented 1 year ago

/ITwoFactorService/AddAuthenticator/v0001 report HTTP 401

Skr1pt commented 1 year ago

Steam delete OAuth token, so now this old api didnt worked

Zachxz0 commented 1 year ago

@Skr1pt Is there any other way to solve it

Skr1pt commented 1 year ago

re-write bot for new api, but its use protobuf and encoding image

Zachxz0 commented 1 year ago

@Skr1pt Can you show more detail about how to post the data? where to get the access_token

Skr1pt commented 1 year ago

https://api.steampowered.com/ITwoFactorService/AddAuthenticator/v1?access_token=eyAidHlwIjogIkpXVCIsICJhbGciOiAiRWREU0EiIH0.eyAiaXNzIjogInI6MEI3OF8yMTMwMTRGN182QkE4OCIsICJzdWIiOiAiNzY1NjExOTkyNDc3MDI4MTgiLCAiYXVkIjogWyAid2ViIiwgIm1vYmlsZSIgXSwgImV4cCI6IDE2NjE1MDM2MTIsICJuYmYiOiAxNjYxNDE2MzA2LCAiaWF0IjogMTY2MTQxNjMxNiwgImp0aSI6ICIwQjc4XzIxMzAxNEY3XzZCQzZGIiwgIm9hdCI6IDE2NjE0MTYzMTUsICJydF9leHAiOiAxNjc5NjM4OTc3LCAicGVyIjogMCwgImlwX3N1YmplY3QiOiAiOTIuNTIuMTQ2LjE1MSIsICJpcF9jb25maXJtZXIiOiAiOTIuNTIuMTQ2LjE1MSIgfQ.E4brrmQRw-qh52FQ_GbcOfpH7bTI-SA8q1P8yWSuArtSZBPbB95Hds3u1atAagDTqIPd_qxrmxdOL7eYya4pBQ

Skr1pt commented 1 year ago

idk where get access token

Zachxz0 commented 1 year ago

idk where get access token 😱 but you actually had it in the url

Skr1pt commented 1 year ago

I caught this requests ~1 year ago

Skr1pt commented 1 year ago

i think this repo can help u https://github.com/DoctorMcKay/node-steamcommunity/blob/353156008391f8474212681e381c275a81dacd57/components/twofactor.js#L19

Zachxz0 commented 1 year ago

i think this repo can help u https://github.com/DoctorMcKay/node-steamcommunity/blob/353156008391f8474212681e381c275a81dacd57/components/twofactor.js#L19

So helpful, thanks, I will take a look! 😀

Zachxz0 commented 1 year ago

@Skr1pt It works, but it's really disgusting for more difficulty!

Zachxz0 commented 1 year ago

@Jessecar96 https://github.com/DoctorMcKay/node-steamcommunity/blob/353156008391f8474212681e381c275a81dacd57/components/twofactor.js#L19

Jessecar96 commented 1 year ago

This is resolved in the latest commits.