none
Workflow Application: how to change App Domain and Redirect URL RRS feed

  • Question

  • Good day,

    I have Workflow Application with granted permissions. Few weeks ago Application domain name was changed.
    When I open http://my_site/_layouts/15/appinv.aspx and set App ID, then click "Lookup", I see old domain name in "App Domain" and "Redirect URL" fields. 
    I tried to update Registered App like here https://stackoverflow.com/questions/30863574/how-to-unregister-or-update-registered-sharepoint-app
    But I don't know the Client Secret to update  registration details on http://my_site/_layouts/15/appregnew.aspx
    I didn't found it in web.config. I haven't AzureAD() so I can't use AzureAD PowerShell 
    Can I retrieve Client Secret by PowerShell? Is another way to change  "App Domain" and "Redirect URL" for Workflow Application?
    Thursday, November 14, 2019 11:23 AM

All replies

  • Hi,

    For the domain change, I think you need register the workflow to point to your new domain.

    • Unregister Workflow Proxy:
      • Go to Central Admin > Application Management > Manage Service Application > Click on the Workflow Service Application Proxy
      • Select it and from the Ribbon click Delete
    • Register the Workflow Proxy
      • Now run Register-SPWorkflowService in the PowerShell window. Would recommend using the –Force parameter.

    https://social.technet.microsoft.com/wiki/contents/articles/33950.unregister-and-register-workflow-manager-with-sharepoint-2013-2016.aspx

    Best Regards,

    Lee


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Friday, November 15, 2019 3:34 AM
  • Thanks for reply, but it didn't help. I reinstalled Workflow Manager and Service Bus, but it didn't help
    Friday, November 15, 2019 11:32 AM
  • Hi,

    You need re-register the workflow service, for example:

    Register-SPWorkflowService -SPSite 'http://sp' -WorkflowHostUri 'http://wfm:12291/' –AllowOAuthHttp

    Best Regards,

    Lee


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Monday, November 18, 2019 2:28 AM
  • I executed this command in PowerShell:

    Register-SPWorkflowService -SPSite 'http://<MY_SITE>' -WorkflowHostUri 'http://wfm:12291/' –AllowOAuthHttp

    I see this error:


    Register-SPWorkflowService : Unable to connect to the remote service at http://
    wfm:12291/SharePoint/. See InnerException for more details. Client ActivityId :
     5103199f-b853-20a6-9da9-60eb68b59114.
    At line:1 char:1
    + Register-SPWorkflowService -SPSite 'http://<MY_SITE>' -WorkflowHostUri '
    htt ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~
        + CategoryInfo          : InvalidData: (Microsoft.Share...WorkflowService:
       RegisterSPWorkflowService) [Register-SPWorkflowService], WorkflowEndpointN
      otFoundException
        + FullyQualifiedErrorId : Microsoft.SharePoint.WorkflowServices.PowerShell
       .RegisterSPWorkflowService


    Monday, November 18, 2019 10:25 AM
  • Hi ,

    Make sure you removed old registration from admin center(you could check previous reply for the feature path).

    And browse the workflow manager service, if you installed successfully, you should be access it and get similar result below.


    If above steps aren’t the cause, check ULS log for detailed error information.

    C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\LOGS

    Best Regards,

    Lee


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Tuesday, November 19, 2019 1:29 AM
  • Thanks for information. I can browse the workflow manager service if I type http://localhost:12291/ , not http://wfm:12291/

    The workflow manager was be reinstalled successfully, because I have working workflows 2013. I used this command for reinstallation

    Register-SPWorkflowService -SPSite "http://<MY SITE>" -WorkflowHostUri "http://<MY SITE>:12291" -AllowOAuthHttp -Force


    Tuesday, November 19, 2019 1:41 PM
  • Hi,

    If the issue exists, could you check ULS log for detailed error information?

    Best Regards,

    Lee


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Wednesday, November 20, 2019 1:12 AM
  • In ULS log I found this error

    Event ID 8321: A certificate validation operation took X milliseconds and has exceeded the execution time threshold

    I tryied this, but it didn't help

    https://www.sharepointdiary.com/2016/02/event-id-8321-certificate-validation-operation-took-x-milliseconds-exceeded-execution-time-threshold.html

    Wednesday, November 20, 2019 5:28 AM
  • Hi,

    Try to check the workflow manager certificate matches.

    Get-SPTrustedRootAuthority

    If doesn’t match, register the new certificate (refer steps 19 in below thread).

    https://www.c-sharpcorner.com/article/workflow-manager-configuration-for-sharepoint-server-2013/



    Best Regards,

    Lee


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Wednesday, November 20, 2019 7:14 AM
  • It didn't help.

    I have file cert.id

    I executed 

    $cert = Get-PfxCertificate C:\WFcert\wfcert.cer

    New-SPTrustedRootAuthority -Name "Workflow Farm Certificate" -Certificate $cert

    Workflow is connected.

    cert.id is valid to 1 January 9999

    But when I executed 

    Register-SPWorkflowService -SPSite <MY SITE> -WorkflowHostUri 'http://wfm:12291/' –AllowOAuthHttp

    I get the error in ULS again

    A certificate validation operation took 14994,0488 milliseconds and has exceeded the execution time threshold.  If this continues to occur, it may represent a configuration issue.  Please see http://go.microsoft.com/fwlink/?LinkId=246987 for more details.

    Wednesday, November 20, 2019 10:11 AM