-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: access_denied error handling for OAuth destinations (#3853)
* fix: access_denied error handling for OAuth destinations * fix: mock oauth service Signed-off-by: Sai Sankeerth <sanpj2292@github.com> * chore: rename ref_token_invalid_grant constant Signed-off-by: Sai Sankeerth <sanpj2292@github.com> * chore: update the method for authStatus toggle to PUT * chore: include contract changes * fix: add AUTH_STATUS_INACTIVE handling in regulation-worker * chore: refactoring some changes, adding logic for handling invalid_grant error while refreshing the token * fix: address comments - include relevant status-codes - remove unnecessary printf statements * fix: send badrequest when required parameters are not sent in tests * fix: change response error message for authStatusInactive req(both failure & success) - refactor authStatus toggle handling in deleteUsers - correction of test-cases in deleteUsers * fix: add multiple go-routines tests for authStatus/toggle * fix: formatting * fix: rename variables, send right error message post inactivation of authStatus * fix: comment correction * fix: remove unused argument * fix: updated wrong url status-code to 404 --------- Signed-off-by: Sai Sankeerth <sanpj2292@github.com> Co-authored-by: Sai Sankeerth <sanpj2292@github.com>
- Loading branch information
Showing
6 changed files
with
532 additions
and
149 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.