Skip to content

Add disabled API key leniency

Compare
Choose a tag to compare
@micahhainlinestitchfix micahhainlinestitchfix released this 12 Aug 16:10
cef2b5d

In some cases we may want to allow a leniency period after an API key has been disabled. This release introduces the concept of an optional disabled_at field to the api_clients table. When it is set and the enabled field is set to false, stitches uses the configuration to determine if it should continue to allow the API key to be used with a warning.

Upgrading to this version should include creating a migration to create the new field using the command:
bundle exec rails generate stitches:add_disabled_at_to_api_clients

See the readme for more information on configuration and migration