Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[STRAT-3865] | Re-authentication Flow for CreateAudience and GetAudience to handle 401 #2136

Merged
merged 11 commits into from
Aug 6, 2024

Conversation

Innovative-GauravKochar
Copy link
Contributor

@Innovative-GauravKochar Innovative-GauravKochar commented Jul 4, 2024

This Pull request is to make re-authentication flow for createAudience and getAudience whenever it throws 401 error.
Jira ticket :- https://segment.atlassian.net/jira/software/c/projects/STRATCONN/boards/310?assignee=63617339fc0cc7a600b03c6b&selectedIssue=STRATCONN-3865

Testing

Include any additional information about the testing you have completed to
ensure your changes behave as expected. For a speedy review, please check
any of the tasks you completed below during your testing.

  • Added unit tests for new functionality
  • Tested end-to-end using the local server
  • [Segmenters] Tested in the staging environment

Tested completed Successfully in Staging

@Innovative-GauravKochar Innovative-GauravKochar changed the title Strat 3865 [STRAT-3865] | Re-authentication Flow for CreateAudience and GetAudience to handle 401 Jul 4, 2024
@Innovative-GauravKochar Innovative-GauravKochar marked this pull request as ready for review July 9, 2024 12:23
@Innovative-GauravKochar Innovative-GauravKochar requested a review from a team as a code owner July 9, 2024 12:23
Copy link
Contributor

@varadarajan-tw varadarajan-tw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Left few minor comments around test coverage.

@Innovative-GauravKochar
Copy link
Contributor Author

Thanks @varadarajan-tw for your valuable inputs. I have updated the PR , Please have a look!

@joe-ayoub-segment joe-ayoub-segment merged commit 3e8da1f into main Aug 6, 2024
11 checks passed
@joe-ayoub-segment joe-ayoub-segment deleted the STRAT-3865 branch August 6, 2024 08:47
@joe-ayoub-segment
Copy link
Contributor

hi @Innovative-GauravKochar PR deployed

harsh-joshi99 pushed a commit that referenced this pull request Aug 16, 2024
…nce to handle 401 (#2136)

* resolved conflicts

* Worked on reauthentication flow for createAudience and getAudience

* Removed token refresh and Stats from amazon-amc

* Removed commented and unnecessary code

* Fixed AudienceDestinationDefinition

* Made runFailedAttempt as reusable function across all execute blocks

* Added a unit test case for reauthentication flow for createAudience and getAudience

* added comment

* PR review comments:- Added unit test case for non-oauth scheme and non 401

* Split failedAttemptHandler into three seperate methods

---------

Co-authored-by: Gaurav Kochar <gaurav.kochar@segment.com>
Co-authored-by: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants