DAP: Skip token generation if it's already scoped
What does this MR do and why?
Skip token generation if it's already scoped. If access token already contains the necessary scopes and them only, we don't need to recreate the token.
Otherwise, a token is created twice: when a workflow is started and when the websocket connection is established
Feature flag: [FF] `dap_skip_already_scoped_token_creation` -... (#592740 - closed)
Related: Duo Developer failing with 401 unauthorized code (#590259 - closed)
Testing
- Start a remote flow like issue-to-MR
- Verify that only a single oauth token is created
Edited by Igor Drozdov