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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Automate updating OAut...
Power Apps
Answered

Automate updating OAuth Client Secret?

(0) ShareShare
ReportReport
Posted on by 23
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
    scalca Profile Picture
    243 Moderator on at
    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
  • Verified answer
    Mahesh Chintha Profile Picture
    158 on at
    Try using the environment variables. It should resolve the issue of getting lost of the secrets when connector is edited every time.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. WarrenBelz 105 Most Valuable Professional

#2
Haque Profile Picture

Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Haque 77

#3
VASANTH KUMAR BALMADI Profile Picture

Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. VASANTH KUMAR BALMADI 70

Last 30 days Overall leaderboard