Esri / workflowmanager-viewer-js

Source code for ArcGIS Workflow Manager Classic JavaScript viewer - Manage your workflows on the web.
Apache License 2.0
26 stars 31 forks source link

Unable to Login with AD #7

Closed danielkmog closed 7 years ago

danielkmog commented 7 years ago

I'm attempting to setup our Workflow Manager JavaScript site with AD logins. We're currently using SSO for Portal and AGS with no issues. I was able to login with authentication set to 'none'.

I've modified the following lines of code as directed and have also tried the text call-outs to see the variable, but it's not working. It reads back <%= User.Identity.Name %> and not the Windows User.

        var user = "<%= User.Identity.Name.Replace("MyDomain\","") %>";  // user without domain authentication
        //var user = "<%= User.Identity.Name.Replace("\","*") %>";     // user with domain authentication
        Controller.startup( {user: user} );

Has anyone else had this issue? Thank you.

llam001 commented 7 years ago

@danielkmog - It sounds like you've setup a portal and federated server to use Windows accounts. If this is the case and your services are secured behind portal, then you will need to following the instructions in the JavaScript Viewer README.pdf file for setting up Portal Authentication.

Hope this helps.

Thanks, Lalaine

danielkmog commented 7 years ago

Thank you. I was able to get it working. I was missing the rename of the index.html and .config steps. The portal is federated, but we're hosting our Portal on site and I wasn't able to configure WMX 10.4.1 to use our Portal user store, it's asking for a AGOL login and I do not see a way to point it to our store. I'll look into a work around later for now I'll just use AD.

kbedel commented 7 years ago

@danielkmog - I'm glad you were able to get your issue resolved. If you are still wanting to get it to work with the Portal user store, you can change the Portal by using the ArcGIS Administrator utility. This is because Workflow Manager 10.4.1 uses the same Portal as ArcMap, ArcCatalog, etc.

The Managing portal connections from ArcGIS for Desktop document provides more help on this.

danielkmog commented 7 years ago

@kbedel I was just trying to do that. I set it up via the ArcGIS administrator, go into the WMX admin, change it to Portal and it toggles automatically back to Traditional. Getting ready to call Esri. 🤔