/asgardeo:asgardeofrom asgardeo
Manages Asgardeo (WSO2 Identity Platform) via the `asg` CLI. Handles app login, role/scope gating, AI agent identity, OAuth-secured MCP servers, and identity resources like users, groups, roles, and API resources.
Ships in asgardeo. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
You manage Asgardeo end-to-end through the asg CLI — registering and authenticating apps, authorizing them with roles and API scopes, managing identity resources, and wiring the Asgardeo SDK into the user's code.
Users arrive with one intent — "let people log in", "lock this down by role", "add a user". Route to one track and start there. Prefer asg <cmd> --help over guessing flags (the CLI self-documents); the official docs at https://wso2.com/identity-platform/docs are the fallback when the CLI or SDK surface is ambiguous. Every docs page has a markdown twin — the same path with .md in place of the trailing slash (quick-starts/react.md) — and docs/llms-full.txt indexes them all; fetch the twin, never the HTML page, with your web-fetch tool: plain curl gets a 403 bot check, which is not a missing page.
How to work:
--env-file; none passes through chat, a command you run, or a file you write. The one exception is a throwaway test-user password, reported once in the summary.AskUserQuestion in Claude Code), route every question through it — an app or agent name, a role name, a redirect URI, which scenario applies, approving the plan. Ask related questions together in one call, and rely on the tool's free-text option for "something else". Where no such tool exists, ask the same questions in prose, in one message. Either way: end the turn and wait.https://console.asgardeo.io/t/<org>/app/<resource>/<id> — the /app/ segment is easy to drop, so check it (a user: https://console.asgardeo.io/t/acme/app/users/<id>; <resource> is applications, users, groups, roles, organizations; API resources add their type, see cli-overview.md), so the user can inspect or adjust it. When a step is Console-only, link straight to that screen.Load only what the current track points to:
references/auth.md — CLI login: who runs it, the browser path, special cases, session errors.references/planning.md — the plan's three headings and the one-table-per-resource shape.references/cli-overview.md — intent → command map, output/parsing, unattended-run and app gotchas, Console links, failure diagnosis.references/authorize-app.md — the full RBAC pipeline with exact commands.references/authentication-methods.md — social/enterprise login, MFA, passwordless; editing an app's login flow.references/sdk-integration.md — framework routing, the inputs every integration needs, calling a protected API, reading roles.references/agent-identity.md — an agent's own credentials, roles and tokens; acting on a user's behalf; SDK calls by language.references/mcp-server.md — MCP server as a resource, the client app shape, protecting the server, the Inspector proof.references/management-apis.md — feature areas with no CLI verb → their management REST APIs via asg api.Bundled script: scripts/install-asg-cli.js (run with node <absolute path>) — downloads and verifies the CLI release.
asg --help. If missing, ask: the user downloads it from the release, or you run node <skill>/scripts/install-asg-cli.js (downloads the release binary for this platform, verifies its checksum, installs it to ~/.local/bin, fixes PATH). On path-update-failed or path-not-configured, tell the user to add the install directory to PATH. On a checksum mismatch, stop and tell the user; never install around it.asg status. If not, read references/auth.md and follow it: the user runs asg login, in a message of its own, and you re-verify with asg status before Gate 2.Questions first, then the plan, then wait. Ask everything the track needs (names, URIs, which scenario applies), wait for the answers, then write the plan from them — a plan that names resources the user hasn't chosen is a decision dressed up as a proposal, and it puts them in the position of correcting you rather than deciding.
The plan has three headings — What I'll create, What changes in your code, How you'll know it worked — with one small table per kind of resource. Shape and worked example: references/planning.md. Then end the turn, approve it as a question, and create nothing until they answer.
| User wants to… | Track |
|---|---|
| Add login / SSO / social login / MFA / passwordless to an app | A — Authenticate an app |
| Add roles, permissions, "only admins can…", protect an API with scopes | B — Authorize an app |
| Give an AI agent its own identity and credentials, or let it act on a user's behalf | E — Agent identity |
| Secure an MCP server — require login to use its tools, gate tools by scope | F — Secure an MCP server |
| Create/list/update/delete users, groups, roles, apps, APIs, IdPs, branding, orgs, agents | C — Manage resources |
| Configure anything else Asgardeo manages (consent, templates, governance, sessions, user stores, webhooks…) | C, via references/management-apis.md |
| Debug a failure — 403, login won't complete, empty claims | D — Troubleshoot |
Real sessions chain tracks (authenticate → authorize; secure an MCP server → give an agent an identity to call it). Finish one, re-route.
Goal: an app registered in Asgardeo and its SDK wired so users can log in.
spa (browser SPAs), oidc (server-rendered/confidential), mobile.references/cli-overview.md says why both go on in one command).--access-token-type jwt now; Track B step 5 says why. A backend that exists but doesn't check tokens yet is borderline — say what each choice costs and let the user pick.asg apps create --name "<name>" --type <spa|oidc|mobile> --redirect-uri <url> -N -y. The output includes the new app's ID and Client ID — capture them. For oidc apps the user reads the client secret from the app's Console page (give them the link).references/sdk-integration.md routes to the framework's docs quickstart and lists the inputs (clientId from the create output, baseUrl from asg status); wire the provider + login/logout. The step is done when both values are in the project — in the code, or in a gitignored env file you write with them filled in — and the only value left for the user to paste is a client secret. (The reference also covers calling a protected API and reading roles, needed later in Track B.)references/authentication-methods.md. Be explicit about which parts are CLI-editable and which are Console.asg users create --user-store DEFAULT --email <addr> --first-name <n> --last-name <n> --password <generated> --set-password -N -y (the email is the username; "App gotchas" in references/cli-overview.md says why --set-password matters). Report the password once, in the summary afterwards.Asgardeo authorization is role-based access control over API scopes: scopes are what the app or API checks; roles are how users get them. Read references/authorize-app.md and run its pipeline in order — each step depends on the previous:
asg apis create). Gating in-app features rather than a backend? Model those features as scopes on an API resource representing the app.asg apps apis add; check with asg apps apis list).asg roles create -p <scope>), and assign them — to users directly, or to a group when more than one person holds the role.asg apps protocol update --edit "accessToken.type=JWT") if it wasn't created that way. Asgardeo issues opaque tokens by default, which a backend cannot decode or read scopes from — this blocks step 6 and is easy to miss.scope claim (worked Express example in authorize-app.md). To branch on role names instead, request the roles claim (asg apps claims --add) — reading it correctly is covered in references/sdk-integration.md.Show scopes (before creating) and roles (after step 4) as tables — shape in references/planning.md. Say plainly when a step is Console-only. And remind the user: a newly assigned role or scope appears only after that user logs in again.
Close by proving it — a user with the role can do the gated thing; a user without it can't. Offer to create the second test user if needed.
Direct CLI operations on users, groups, roles, apps, APIs, scopes, IdPs, branding, orgs, agents.
references/cli-overview.md maps intent → command. No verb for it? references/management-apis.md maps the feature area to its REST API and shows the asg api call shape. Treat a feature as Console-only only after that file has no entry for it.asg <resource> <action> --help; run unattended with -N -y and parse with --format json (conventions in cli-overview.md).delete or bulk update will remove and get the user's OK first. Delete only what the user asked about.references/cli-overview.md: read the log
first (the parsed API error is there), then the session-expired / 403 / login triage. The one rule
worth internalizing: a 403 is a role-permission gap — re-login never fixes it.references/sdk-integration.md: redirect-URI mismatch first, then missing claims/scopes.references/mcp-server.md. First suspect: the client app issues opaque tokens.references/agent-identity.md, the section for the option in use.
ABA-60007 means the application has API-based authentication off: turn it on with
asg apps update --id <appId> --edit "advancedConfigurations.enableAPIBasedAuthentication=true" -N,
or create the app with --api-based-auth.Goal: an AI agent with its own credentials, its own roles, and tokens that identify it — acting either as itself or on a user's behalf.
Read references/cli-overview.md (this track runs a dozen management commands — the flags and the
deprecated list verbs are there) and references/agent-identity.md.
asg agents create --allow-user-login (which also creates the client it signs in through — the normal practice, don't ask), and give it a role. Track B is reused wholesale for permissions: an agent's roles and scopes work exactly like a user's. The one twist is that the agent's auto-created app takes Application-audience roles..env is gitignored, then let the CLI write the credentials into it with --env-file.package.json (or requirements) lists @asgardeo/javascript or asgardeo_ai and its code imports the client from it: the exchange is the SDK's getAgentToken / getOBOToken (or the Python equivalents), copied from the reference's section, whether or not the package can be installed right now. When the agent acts for a user, that person's sign-in happens in the browser exactly as in Track A — the agent never sees their password.Goal: an MCP server whose tools can only be used with a valid Asgardeo token, gated by scope.
Read references/mcp-server.md. The MCP server is a resource (Track B's API resource, type
MCP); the thing that logs in is the MCP client (Inspector, Claude Desktop, Cursor, an agent).
aud), the
scopes — one per tool or tool group, read the server's code to propose them — and which
MCP client will connect (decides the redirect URI; Inspector when there is none yet).asg apis create --type mcp --identifier <server URL> with the
scopes. The identifier becomes the token's aud.asg apps create --type mcp --redirect-uri <client callback>,
which is a public client with PKCE and JWT access tokens. An agent as the client is Track
E's app instead.package.json lists @asgardeo/mcp-express and the server
imports configuredAuthServer from it (router() + protect() on the MCP route), or FastMCP
uses the quickstart's TokenVerifier; the reference has both snippets, so the JWT verification
is the SDK's whether or not the package can be installed right now. Then a per-tool scope
check, which neither SDK does for you.asg <resource> <action> [flags] — --help at every level-N -y; parseable: --format json (stdout is then pure data), except apps protocol view, where it unmasks the client secretbaseUrl for SDKs and Console links: the Base URL line from asg status, verbatim — the rule and why is in references/sdk-integration.mdasg tuireferences/agent-identity.md (opens in a new tab)references/auth.md (opens in a new tab)references/authentication-methods.md (opens in a new tab)references/authorize-app.md (opens in a new tab)references/cli-overview.md (opens in a new tab)references/management-apis.md (opens in a new tab)references/mcp-server.md (opens in a new tab)references/planning.md (opens in a new tab)references/sdk-integration.md (opens in a new tab)scripts/install-asg-cli.js (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub wso2/agent-skills --plugin asgardeo