This one will be a quick post on Registering Workflow Manager in SharePoint 2013 environment.
If you receive the following error during registration of the Workflow Manager then you might be running into the same issue as me.
Register-SPWorkflowService : Failed to query the OAuth S2S metadata endpoint at URI
I searched on this error and most people suggested creating host entry to the server because workflow manager could not connect to SharePoint Server. This was not my scenario given I was using Workflow Manager with SharePoint farm and all servers were able to connect each other.
After some searching I found the following blog post.
http://www.sharepointing2010.com/2013/11/resolved-register-spworkflowservice.html
Now before executing these steps I wanted to confirm why we needed to do this. So on further research I came across the following blog post from Steve Peschka.
if you are not going to be running your web apps over SSL, then you will need to set the AllowOAuthOverHttp property to true as well. Here’s a little PowerShell that demonstrates how to set these properties:
$c = Get–SPSecurityTokenServiceConfig
$c.AllowMetadataOverHttp = $true
$c.AllowOAuthOverHttp = $true
$c.Update()
After running these commands I was able to register workflow manager without any issue.