Add Workday hybrid flow authorization - #279
Draft
Mukesh Chaudhary (mukesh4139) wants to merge 3 commits into
Draft
Mukesh Chaudhary (mukesh4139) wants to merge 3 commits into
Mukesh Chaudhary (mukesh4139) wants to merge 3 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/connect workday-hybridrouting and a stateless Dataverse authorization utilityValidation
Automated
python -m pytest tests/scripts/test_auth.py tests/scripts/test_discover.py tests/scripts/test_enable_workday_hybrid_flow_authorization.py tests/setup/test_connect_workday_hybrid.py -qLive Dataverse validation approach
After
/connect workday-hybridcompletes, validate the resulting authorization with read-only Dataverse Web API v9.2 calls:delegatedauthorizationsfiltered by the supplied bot ID and require exactly one row withprovidertype = 3(MCSBot).teamsthroughdelegatedauthorizationid/botidand require exactly one linked row withteamtype = 1(Access).workflowsrow byworkflowidand confirm it exists and is activated.RetrieveSharedPrincipalsAndAccessfor each workflow and confirm the linked access team has an access mask containingWriteAccess.These checks replay the same Dataverse relationships Flow-RP uses to resolve the Cosmos-backed agent and authorize its workflows. They are GET-only and do not modify tenant state.
Live validation result
/connect workday-hybridcompleted successfully and the resulting Dataverse state was independently verified for bot2e9a99eb-98ef-4a66-8783-87ec174d8a34:MCSBotAccessReadAccess, WriteAccess, AppendAccess, AppendToAccess, ShareAccessThe delegated authorization and workflow access for the supplied bot were successfully validated. The tenant environment URL is intentionally omitted from this PR.