SharePoint 2013 and Registering Workflow Manager

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.

http://blogs.technet.com/b/speschka/archive/2012/07/23/setting-up-an-oauth-trust-between-farms-in-sharepoint-2013.aspx​

Though it talks about setting up OAuth trust between farms it does mention one of the option which was also suggested in the blog above i.e.

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 = GetSPSecurityTokenServiceConfig

$c.AllowMetadataOverHttp = $true

$c.AllowOAuthOverHttp = $true

$c.Update()


​After running these commands I was able to register workflow manager without any issue.