We have the following setup:
-
β Okta is used for authentication, but it supports only the Authorization Code flow (we do not have Client Credentials flow enabled).
-
β For machine-to-machine authentication, we are using AWS Cognito.
Here are our questions:
1. How can we start a K2 workflow on an event?
-
The event might be:
-
Headless (no user context)
-
Or triggered by a user based on certain conditions by external system or nintex
-
-
π How should we authenticate these requests securely in both cases (Okta /Cognito)?
-
β Which OAuth flow is recommended for headless service calls?
2. How can we make secure outbound API calls from SmartObjects?
-
Some API calls are triggered by SmartObjects that are:
-
Invoked headlessly
-
Or invoked as part of a user action
-
-
π How do we securely authenticate those outbound calls, especially when tokens must reflect a userβs identity?
-
π Is there a way to pass the user's identity token in SmartObject calls?
3. How can we update a workflow step from an external system with user identity?
-
We want to update a workflow step (e.g., approval) via a REST API call from an external system
-
This call needs to include the SSO token of the user who approved it (from another system)
-
π Is it possible to:
-
Use an SSO token from an external identity provider (e.g., Okta or Cognito)
-
And map that user identity in K2 when calling the update step API?
-