Universal Automation Auth Help

Working to get Authentication and Authorization working in UA.

My current setup is UA 1.2.1 installed from the MSI
I have UniversalAutomation and UniversalAutomationDashboard services both running under a service account.

I’m looking at the below code and I think I understand all but one piece, the SigningKey
What is the SigningKey, where do I get one, is this something I need to create myself?

$AppToken = Start-UAServer -Port 10000 -JwtSigningKey $SigningKey

$Cache:ComputerName = $ComputerName 

if ($null -eq $AppToken)
{
    $AppToken = (Enable-UAAuthentication -ComputerName $ComputerName -Force -SigningKey $SigningKey).Token
}

Connect-UAServer -ComputerName $ComputerName -AppToken $AppToken

You can use an arbitrary string as the signing key. It needs to be at least 16 characters long. Think of it as a secret key used to sign the JWT requests that is only known by the server and replayed by the authorized client. The app tokens generated by the signing key can then be used to authenticate particular identities and can be revoked after the expiry.

You can just use a standard password generated to create the key.

1 Like

Awesome, that clears things up!

Now to get this all running as a service. Thank You!!!