Skip to content

Conversation

@daxian-dbw
Copy link
Member

@daxian-dbw daxian-dbw commented Oct 30, 2024

PR Summary

Refactored the authentication flow and add the check for Copilot access.

  • Encapsulated the token life cycle management into separate classes UserAccessToken and UserDirectLineToken. The health of the token is tracked within those types, which also expose the renew methods.
    • This is a preparation for using the pluginstore feature flag, which requires the client to send user access token along with every request, and that means we need to keep 2 tokens alive.
  • Refactored the authentication flow using the new encapsulated tokens.
  • Add the step to check if the user has Copilot access.

@daxian-dbw daxian-dbw merged commit c9a8ecc into PowerShell:main Oct 30, 2024
4 checks passed
@daxian-dbw daxian-dbw deleted the pluginstore branch October 30, 2024 23:48
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.

1 participant