keygen-sh / keygen-api

Keygen is a fair source software licensing and distribution API built with Ruby on Rails. For developers, by developers.
https://keygen.sh
Other
699 stars 40 forks source link

Consolidate activation-related validation codes into NOT_ACTIVATED #763

Open ezekg opened 9 months ago

ezekg commented 9 months ago

I'd like to consolidate the following validation codes into a NOT_ACTIVATED code:

Since this is literally what we recommend, and do everywhere — treating these codes as the same signal — it'd be much easier if they were the same signal. Having 3 different validation codes essentially meaning the same thing is confusing.

We can do this in a backwards compatible way, using request migrations:

Doing this would remove a lot of confusion, and various unintentional errors e.g. forgetting to activate on FINGERPRINT_SCOPE_MISMATCH when writing the blessed validation->activation flow.