TL;DR: The governance issue is not the workflow itself, but who can generate, modify, and ship identity-related code inside production repositories, while Widget Skills let AI coding agents generate app-native implementations of enterprise workflows such as user management, domain verification, and SSO setup, keeping the same underlying APIs and letting teams own the code in their own stack, according to WorkOS.
NHIMG editorial — what this means for NHI practitioners
Questions worth separating out
Q: How should security teams govern AI-generated identity workflows in application code?
A: Treat them as controlled code changes, not convenience scaffolding.
Q: Why do app-native identity workflows create governance risk for IAM teams?
A: Because the workflow is no longer isolated behind a fixed embedded surface.
Q: What do teams get wrong about AI coding agents generating access-related code?
A: They often focus on the agent as a runtime actor and miss its role as an implementation actor.
Practitioner guidance
- Classify generated identity flows as security-sensitive code Put AI-generated user management, domain verification, and SSO setup code through the same review, testing, and approval process used for access-control changes.
- Define where identity policy is authoritative Document whether the API, the generated application code, or a downstream configuration layer is the source of truth for access behaviour.
- Add guardrails for coding-agent prompts Restrict which repositories, workflows, and identity functions a coding agent may generate.
What's in the full announcement
WorkOS's full article covers the implementation detail this post intentionally leaves for the source:
- Step-by-step setup for installing the skills package in a repository and invoking the widget skill.
- Examples of generated flows for user management, domain verification, and SSO setup in specific frameworks.
- The list of supported frameworks and languages for app-native implementation.
- How the generated code is expected to fit into an existing design system and routing structure.
👉 Read WorkOS's post on Widget Skills for app-native enterprise workflows →
Widget Skills and app-native enterprise flows: what changes for IAM?
Explore further
Generated identity code creates a governance boundary, not just a development shortcut. The material change here is that enterprise workflow logic is no longer only assembled from managed components, it is embedded into repository-owned code that a coding agent can produce. That shifts review responsibility from vendor-managed implementation to internal code governance. Practitioners should treat generated identity flows as part of the trusted computing base for the application.
A few things that frame the scale:
- The average estimated time to remediate a leaked secret is 27 days, despite 75% of organisations expressing strong confidence in their secrets management capabilities, according to The State of Secrets in AppSec.
- Only 44% of developers are reported to follow security best practices for secrets management, exposing a significant developer behaviour gap.
A question worth separating out:
Q: How can organisations keep generated identity code aligned with policy?
A: By defining a single authoritative source for access behaviour, then validating every generated flow against it before release. If the API, repository code, and configuration layer do not match, the visible workflow can diverge from the intended policy.
👉 Read our full editorial: Widget Skills put enterprise workflows into app-native code