Automatically generating AppId/AppKey for uSync Publisher

Sorry for the @ but this is probably a question that only @KevinJump can answer…

I’m working on a CI/CD pipeline to automatically roll out Umbraco sites from a template.

Each site will be using uSync Publisher but we won’t necessarily run the sites locally before they get deployed, so we won’t be able to hit the dashboard to configure keys. The ID/Keys will be different for each site.

We’d like to generate them in the CI pipeline, is there anything special we need to do or will any GUID and 256bit key work?

Hi,

Yes we use a static method in uSync.Complete to do this.

uSync.Publisher.Security.PublishAuthGen.GenerateApiKeyPair()

but indeed there is nothing special. - any guid and 256bit string is fine.

1 Like