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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard