A new major version (and complete rewrite) #74
Replies: 4 comments 1 reply
-
Hello, sounds great! Question: do you think it is worth to allow POESSID access as well? Probably makes your life harder for some thing. |
Beta Was this translation helpful? Give feedback.
-
That's a good question. I've thought about it a lot. Using the session cookie approach with POESESSID to authentication does have a couple of downsides:
However, the POESESSID approach is still needed to manage forum shop threads, because there is no API for those. Fortunately, that part of the code is completely separate from the part that downloads characters and stash tabs. The biggest downside to OAuth that I can see is that until I or someone else decides to setup an intermediate authentication server, the OAuth tokens may need to be refreshed quite often compared to POESESSID, which can remain valid for a while. This is because Acquisition is currently a public OAuth client (intended for freeware projects like Acquisition), which GGG has placed some additional security restricitons on. Some other open source PoE tools have akready moved to using a confidential client with an intermediate authentication server. This is an even more secure approach to OAuth. At some point I may try talking to them because I don't have any experience with servers like this. For all those reasons, I'm inclined to move to OAuth using a public client for inventory management, and keep POESESSID around for forum shop management. |
Beta Was this translation helpful? Give feedback.
-
I have to admit I still only use POESESSID. There is no advantage (from my point of view) in using OATH. You have to re-authorize acquisition all the time. POESESSID works for a very long time before needing to update it. I have OATH in Thunderbird. I've set it up once and it just works from then on. I've only had to re-authorize it once on one of my emails. I believe it uses two kinds of tokens with the second kind being used to get a new authorization token when it expires. Or so I've read, I haven't really looked into it. Npt sure if this is possible with acquisition or if you have the inclination to setup such an elaborate system. You're already doing a lot of work on this. Just offering my point of view. |
Beta Was this translation helpful? Give feedback.
-
@aiolos01 yes, reauthenticating a bunch is a pain. Acquisition does get a refresh token that should be good for a week according to GGG's docs, but I haven't done anything with it yet. I'll spend some time on this to see what's possible with a public OAuth client. In the meantime, I'm not going to stop supporting the current version and POESESSID authentication until GGG does something to make it unusable, or we have OAuth working in a way that isn't too annoying. |
Beta Was this translation helpful? Give feedback.
-
Since the original release of Acquisition in 2014, there have been significant changes to both Path of Exile such as the OAuth, rate limiting, and the new API, as well as changes to the software Acquisition uses, such as c++17, Qt 6, and Qt Quick 2 with QML.
Now that I've been maintaing acquisition for a while, I think I have a basic handle on most of the codebase, and I think it's time to update acquisition's design based on everything that's changed in the last ten years. Wish me luck.
This new major version:
It you're worried about what this means for acquisition:
Should this next version be 1.0 or 2.0?
I don't know, but I think a rewrite is a good time to graduate from the 0.x series.
Beta Was this translation helpful? Give feedback.
All reactions