View on GitHub


Test Coverage
This is a config file that can be used as a basis to set the Unicorn PowerShell remote API's shared secret 
without altering the stock config file. Duplicate this file and set a long, 32+ character secret to enable
invoking Unicorn with the PowerShell API, e.g. for CI.

IMPORTANT: THIS CONFIG PATCH *MUST* RUN AFTER Unicorn.UI.config, or you will receive an error:
"Unable to cast object of type 'System.String' to type 'Unicorn.ControlPanel.Security.IUnicornAuthenticationProvider'."

See the README here for more on setting up remote API:

Need some randomness? Try here:
<configuration xmlns:patch="">
                <SharedSecret>0xBADBEEF (NOTE: this can be anything not just hex. Even this text is a valid secret. But don't just use it, or else Robbert Hack will say hello.)</SharedSecret>
                    Writes the reason why failed automated tool authentications failed to the Sitecore logs.
                    Will result in writing your shared secret to the logs as part of the signature base,
                    so disable it unless you're debugging failed authentications.