Updating credentials when workflow is deployed to Gallery
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello!
We are using an API that users will input their own credentials in when designing the workflow locally but when deployed to Gallery it should use the service account credentials. My question therefore is:
Is there a way for the workflow to recognize it is running on the server at run time, and utilize the service account credentials during the executing of the workflow, thus overwriting the user credentials that were used locally.
For the sake of SDLC preferably we wouldn't have the person change the credentials before deploying the workflow to Gallery, but that may be the only option. Thanks for any insight folks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @tristank ,
You could probably develop a macro that toggles between the user and service account`s credentials.
Let me know if this works, as this could help others.
Best,
Fernando Vizcaino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @fmvizcaino ,
Thank you very much for getting back to me! We ended up using one of the workflow constants (gui interaction I believe) to determine whether it was a local or a server run. From there we could use the service account credentials within the macro for server runs, but allow user input for the auth keys when running locally. Thanks again!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Oh, way more clever and much more simple than my approach. Thank you for sharing!
Please mark your answer as a solution as it will definitely help others 😁
