Hi Radim Trncak,
Even if Register-SPWorkflowService runs successfully, the OAuth trust or certificate connection mayavexpired or become invaliry the following steps:
- Open SharePoint Management Shell and run:
Get-SPTrustedSecurityTokenIssuer
=> “Workflow” appears in the list and that it’s not expired.
- If it looks missing or old, re-register it with this command:
Register-SPWorkflowService -SPSite https://intranet.xxxxx.xx -WorkflowHostUri https://workflowserver:12290 -Force - you restart these services on the Workflow Manager server:
- Workflow Backend
- Service Bus Gateway
And check the certificate used for Workflow communication is still valid in both IIS and Local Machine Certificates. If it’s expired, renew and rebind it.
Finally, Claims to Windows Token Service (C2WTS) is running, as missing claims can also cause “Unauthorized” errors.
If this helps solve your issue, click “Accept Answer” so others can find it easily too 😊
Best regards,
VP