This topic is locked

Expired Application Secret

12/4/2025 21:22:01
PHPRunner General questions
A
AdamF author

I use Azure AD Authentication in my PHPRunner projects. Recently I had one of my application secrets expire. I created a new secret but is there a way that I can update the website without having to recompile it through PHPRunner and then loading the new version onto the web server?

ChatGPT 12/4/2025

In PHPRunner, when you configure Azure AD Authentication, the application secrets are typically stored in the configuration files or settings within the project. If you have a new application secret and want to update your website without recompiling the entire project, you can follow these steps:

  1. Locate the Configuration File:

    • PHPRunner stores configuration settings in a settings.php file or similar configuration files in the output directory of your PHPRunner project. Find the relevant file that contains the Azure AD settings.


  2. Edit the Configuration:

    • Open the configuration file in a text editor. Look for the section where the Azure AD credentials are defined. You should find parameters like client_id, client_secret, etc.
    • Update the client_secret field with your new secret.


  3. Save Changes:

    • After updating the secret, save the changes to the configuration file.


  4. Clear Cache (if applicable):

    • If your application or server uses caching mechanisms, it may be necessary to clear the cache to ensure that the new settings take effect immediately.


  5. Test the Changes:

    • After updating the secret and saving the changes, access your application to ensure that authentication with Azure AD is functioning correctly with the new secret.


  6. Backup:

    • It's always a good practice to make a backup of your configuration files before making any changes, so you can revert in case anything goes wrong.



By directly updating the configuration file as described, you can avoid recompiling the entire project in PHPRunner and simply load the modified configuration onto your server. Just ensure that the web server has the necessary permissions to read the modified configuration file.

A
AdamF author 12/4/2025

The ChatGPT reply for this points to a file that I cannot find.

Sergey Kornilov admin 12/5/2025

Build your project using a new secret. Proceed to the output folder and run a search across all files for this new secret and it will point you to the file where it is stored.