web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Connector Development
Answered

Automate updating OAuth Client Secret?

(0) ShareShare
ReportReport
Posted on by 13
I am using GitHub Actions to automate deploying custom connectors in a solution to multiple environments. powerplatform-actions · Actions · GitHub Marketplace
Each time the solution is deployed, the OAuth Client Secret is cleared and needs to be manually updated for the connectors, which means the connector is broken after deployment until someone completes this manual task. 
 
The pac cli which is used by the powerplatform-actions, doesn't seem to have any options for automatically setting the secret. The paconn cli does have a flag for setting the secret when updating a connector but it can't be used in automations as it requires an interactive login. Even if that were not the case, it doesn't seem like the best option since the connector would have to be exported and re-imported after it was just imported in a solution.
 
Is there any way to automate setting the Client Secret so that it doesn't have to be done manually after every update?
 
 
Categories:
I have the same question (0)
  • Verified answer
    Mahesh Chintha Profile Picture
    158 on at
    Automate updating OAuth Client Secret?
    Try using the environment variables. It should resolve the issue of getting lost of the secrets when connector is edited every time.
  • Verified answer
    scalca Profile Picture
    243 Moderator on at
    Automate updating OAuth Client Secret?
    what you can do is to use Azure Key Vault to store credentials and link the to Environment Variables.
    you would pass the variable to in connection settings

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 982 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 396 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 356

Last 30 days Overall leaderboard

Featured topics