-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/secure api revocation route (#2015)
* feat(api key revoke): add new auth type to protect revocation route * feat(api key revoke): protect api key revocation route with new auth * test(api key revoke): add scenarios to test for happy path and missing data, invalid auth * cypress(api key revocation): create a key using admin auth and then revoke it using the API with SRE auth * chore: formatting * chore: remove unused var * chore: remove unused import * chore: remove unused vars * task: add SRE_CLIENT_SECRET to list of sensitive keys, add var to example * chore: add default value for new env var * test(api key revoke): ensure method cannot be called using admin auth * chore: set cypress default environment back to staging * chore: update comments and example to make them clearer * chore: fix comment --------- Co-authored-by: Jumana B <[email protected]>
- Loading branch information
1 parent
c3df334
commit 9cf3404
Showing
9 changed files
with
264 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.