galaxy_blizzard_plugin icon indicating copy to clipboard operation
galaxy_blizzard_plugin copied to clipboard

Custom User Agent possible?

Open alfg opened this issue 5 years ago • 2 comments

Hi there,

I'm the maintainer of https://github.com/alfg/overwatch-api, and I noticed you use https://owapi.io as an integration for your project (Thank you!).

I am curious why you are using the user agent defined at: https://github.com/bartok765/galaxy_blizzard_plugin/blob/67acdeda76f5b6681939d28004d1e30fc49797c0/src/consts.py#L30

And if it's possible to use a custom user-agent as part of your HTTP client requests. I am not familiar with the GOG Galaxy client and it's plugin ecosystem, so I may be missing some context.

Thank you.

alfg avatar Jul 17 '20 05:07 alfg

Hi @alfg

This repo follows @FriendsOfGalaxy work so to be honest no idea, why Firefox agent was used originally.

My guess is the whole auth/refresh flow is imitating a bit complicated browser authentication flow (not what public blizzard API exposes). Maybe it is related?

Why would you like to change it? I guess for https://ow-api.io metrics?

bartok765 avatar Jul 18 '20 09:07 bartok765

Right. I just noticed a good amount of traffic with that user agent and was curious. But I understand if it's for a complicated auth flow if it cannot be updated.

alfg avatar Jul 18 '20 20:07 alfg