Improve Power Platform authentication #2914
Replies: 2 comments 1 reply
-
Great work @appieschot 👏 There is clearly interest in these commands, as you've highlighted, and I think there are many more that we can include in the CLI, so it makes sense to tackle the emerging technical debt before adding more. I am in favour of moving this forward 👍 |
Beta Was this translation helpful? Give feedback.
-
Great suggest and I'm all for it. Few considerations before we continue:
I'd see this implemented in a base location where it can be used by all Power Platform-related commands. We need to investigate what's the impact of it: does it influence retrieving tokens, issuing requests, options and shape of data returned by commands? We should strive to be as clear and predictable as possible to avoid confusing users.
Shall we refactor commands or rather leave whatever we have and deprecate it over time and over time switch to equivalent commands? The hardest part is the lack of clarity about how long the current commands will work. If we expect the current commands to stop working altogether, then it could be a good justification to refactor them. But if they keep working for the foreseeable future, then having a new set of commands in parallel and deprecation of what we have would be more favorable. |
Beta Was this translation helpful? Give feedback.
-
Description:
We currently support several Power Platform commands (
flow list
pa list
etc). Those commands all use the following URL structure${this.resource}providers/Microsoft.PowerApps/apps/${encodeURIComponent(args.options.name)}?api-version=2016-11-01
we have seen over the last few months that this endpoint is becoming deprecated, not returning all values that we want or is providing obstacles when retrieving data (not everything is exportable).A list of all current open issues that are related:
A list of all closed issues that are related:
As it turns out the new PowerShell command lets have logic that could solve a lot of those issues:
I suggest the following:
cli consent
with a--service powerplatform
. The implementation could use the default Power Platform App Registration (so you would need to sign in with those; that would be documentation). With the cli consent we can then consent the permissions to the default CLI App Id (or any other App ID that is part of the config)@pnp/cli-for-microsoft-365-maintainers how do you feel about this? If we agree I would like to create a new issue for the
cli consent
implementation first. Feels like we can tackle a whole lot of issues and questions with that 🚀.Beta Was this translation helpful? Give feedback.
All reactions