Skip to main content

Notifications

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 7
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:
  • 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 Super User 2025 Season 1 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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1

Featured topics