Supporting Power Automate Credentials in Connections #3749
Closed
cdgolmar-msft
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This discussion is a feature request for adding support Credentials connector annotation and Credential picker - used in Power Automate.
The suggested approach is implemented in pull request #3748.
What are Credentials?
The new Credentials page (preview) in Power Automate allows you to create, edit, and share login
credentials using Azure Key Vault and use them in desktop flow connections.
Learn more with the documentation: Use credentials in desktop flow connections (preview).
How Credentials work?
Credentials are stored as Dataverse table records, they reference Environment Variables - as of today: one of type String for the username, one of type Secret (through Azure Key Vault) for the password.
There is a dedicated API in Dataverse to retrieve values for a given Credential record.
Connectors supporting Credentials declare in their schema which connection parameters belong to a credential mapping and how to assign the right credential value to each mapped connection parameter.
Consequently, the availability of the Credential picker in the connection setup is data-driven by the connector definition.
Supporting Credentials in designer
Dependencies
The Credentials feature has two major dependencies for setting up the connection:
Proposed approach
The following approach takes into account these principles:
Credential connector metadata parsing.
From the connector definition, the connection setup panel (
\designer-ui\src\lib\createConnection\
) - which renders each connection parameter - identifies if parameters belong to a Credential mapping.Custom Credential component rendering.
A new method in
IConnectionParameterEditorService
is called to determine if the host supports Credentials - hence should provide the react component to useNote: This is optional, not implementing this method or not returning a component keeps the current behavior
If a component is returned, the corresponding parameters are not rendered in favor of rendering tghe provided Credential picker component
This is implemented in pull request #3748.
Beta Was this translation helpful? Give feedback.
All reactions