Skip to content

Setting flow state to COMPLETE when retrieving cached token#112

Merged
axelsrz merged 3 commits intomainfrom
users/robrandao/oauth-get-token-fix
Sep 9, 2025
Merged

Setting flow state to COMPLETE when retrieving cached token#112
axelsrz merged 3 commits intomainfrom
users/robrandao/oauth-get-token-fix

Conversation

@rodrigobr-msft
Copy link
Contributor

Adjusting supporting test case

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR sets the OAuth flow state to COMPLETE when retrieving cached tokens and updates related test cases. The changes ensure proper state management when tokens are successfully obtained through the OAuth flow.

  • Sets flow state tag to COMPLETE when tokens are retrieved successfully
  • Updates test cases to expect the COMPLETE state in OAuth flow scenarios
  • Updates method call from standalone function to instance method for AI metadata

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
test_oauth_flow.py Updates test expectations to verify flow state is set to COMPLETE when tokens are retrieved
oauth_flow.py Sets flow state tag to COMPLETE after successful token retrieval
streaming_response.py Changes from standalone function call to instance method for adding AI metadata

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@axelsrz axelsrz merged commit d383182 into main Sep 9, 2025
8 checks passed
@axelsrz axelsrz deleted the users/robrandao/oauth-get-token-fix branch September 9, 2025 21:21
rodrigobr-msft added a commit that referenced this pull request Sep 9, 2025
* Fixed reference to Activity.add_ai_metadata

* Setting flow state to complete on get_token
axelsrz added a commit that referenced this pull request Sep 9, 2025
…oken (#112) (#113)

* Setting flow state to COMPLETE when retrieving cached token (#112)

* Fixed reference to Activity.add_ai_metadata

* Setting flow state to complete on get_token

* adding pipeline trigger to pr against release branch (#114)

---------

Co-authored-by: Axel Suárez <axsuarez@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments