You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
As of 1.3, the ID of an API key is a concatenation of the prefix and hashed_key. These are available as properties on the model. We are willing to move to an integer ID in the future (see #41), but storing the prefix and hashed_key in their own fields is a necessary first step.
Describe the solution you'd like
Add prefix and hashed_key fields to AbstractAPIKey (they must be non-editable, and the prefix field must be unique).
Keep the ID as it is today, i.e. a concatenation of prefix and hashed_key.
Add a migration guide, addressing in particular users who may already be using AbstractAPIKey.
Describe alternatives you've considered
Keep things as they are, i.e. do the migration of prefix, hashed_key and idall in 2.0: this introduces much bigger changes and upgrade barriers. Populating the prefix and hashed_key introduces no breaking changes at all.
Additional context
/
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
As of 1.3, the ID of an API key is a concatenation of the
prefix
andhashed_key
. These are available as properties on the model. We are willing to move to an integer ID in the future (see #41), but storing theprefix
andhashed_key
in their own fields is a necessary first step.Describe the solution you'd like
prefix
andhashed_key
fields toAbstractAPIKey
(they must be non-editable, and theprefix
field must be unique).prefix
andhashed_key
.AbstractAPIKey
.Describe alternatives you've considered
Keep things as they are, i.e. do the migration of
prefix
,hashed_key
andid
all in 2.0: this introduces much bigger changes and upgrade barriers. Populating theprefix
andhashed_key
introduces no breaking changes at all.Additional context
/
The text was updated successfully, but these errors were encountered: