Workflow sign in credentials
Currently I have a backlog project to improve sign-in options for accessing protected data. At the moment we would prefer to not utilize token authorization that's currently working, but I can't find any way to create a custom log-in menu that applies at a workflow level.
Is there a way to prompt the user to log-in then apply that so they can then see/access data that's protected within a workflow? If we simply try to access the data a pop-up shows up that allows the user to login and continue. This is great with the exception we cannot edit this login form since it's not being called at the workflow level (from my understanding).
Commands for signing-in appear to only be supported in VertiGIS Studio Mobile:
https://developers.vertigisstudio.com/docs/web/api-commands-operations-events/#command-auth.sign-in:~:text=in%20is%20complete.-%2cThis%20argument%20is%20optional%20and%20only%20supported%20by%20VertiGIS%20Studio%20Mobile.
Is there an alternative for Workflow or a way to customize the login process than the default built-in option?
Thanks for any help.
-
Alan: I haven't done this before but it seems to me that the description for auth.sign-in is worded a little tricky... it's the boolean argument that is only supported in mobile, not the command itself. Try using the command in Web, I bet it works.
Beyond this, I'm not sure I understand what you're trying to do. Also, how are users authenticating to your app, through Portal? I'm guessing this is a public-facing app where you want extended access to logged in users, otherwise you could just force login to access the app in the first place. I think that you can, though haven't myself, use the .groups from the Get Portal User activity and check that against properties in Get Layer.
All that said, there is the Send Web Request activity if you need to build something outside of the box for authentication here, assuming your authenticator is web accessible. If you're binding directly to ArcGIS Server, my first recommendation is to not do that, hook the services into AGOL or Portal then go through there. Nevertheless, you can get user credentials from a form's password element and pass them along in a secure POST request to the ArcGIS Server token generator in a WF, then use that token to do things like add a layer to the map. Don't forget to request a token w/ a long timer.
1
Comments
1 comment