-
Notifications
You must be signed in to change notification settings - Fork 497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PurchaseResponseCallback and RedeemGuestPassResponseCallback #1033
Conversation
As those callbacks are directly tied to the requests that fire them, I believe we should also add functions for that.
Does it make sense to add them then? |
I can add them if maintainers are not opposed. |
Reposting my thoughts from Discord:
|
All in all my opinion is to put it in, especially after we allowed consumers to even provide custom machine details, it doesn't have bigger abuse scope than whole login procedure, and I don't believe the potential is justifying refusal of a valid feature. But that's me, and I'm not deciding here 😁 |
I'm conflicted on adding the methods to kick these flows off. On one hand we don't want to make it easy for people to come in and start brute-forcing things, or malware that redeems keys that it finds. e.g. there was something I read earlier this week about malware that scrapes people's inboxes and looks for gift cards... On the other hand, any time somebody asks, they usually land up in ASF anyway with working sample code, so the gatekeeping is minimal at best. We could add it with Really this should be protected on the server side anyway, which @JustArchi indicates above that Valve already seem to be doing (yay). IIRC there are also IClient interfaces for this so people could also just do this with a legitimate first-part client... @voided what are your thoughts? |
FYI you get rate limited for an hour after 10 (or was it 5?) invalid keys. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned on IRC - I'm not thrilled by adding this, but I suppose with this PR it's "officially" out of the bag anyway. The server side rate limits make me feel a little better, but that'll be moot point for malware similar to the email scanning one where it discovers primarily valid keys...
Valid key activation is also rate limit to 50 keys (if I remember correctly) an hour. Are you approving just the callbacks, or should I add the methods? |
Just callbacks - if anything I still believe in having some barrier to entry. |
cc @JustArchi for review.
I didn't pull any info out of the keyvalue to leave it up to the consumer, same as the other callbacks.
Actual methods to do these actions are left as an exercise for the consumer.