Install
openclaw skills install oauth-oidcDeep OAuth 2.0 / OpenID Connect workflow—choosing flows for client type, PKCE, tokens and validation, scopes and consent, rotation, and common misconfigurations. Use when implementing SSO, social login, or API access on behalf of users.
openclaw skills install oauth-oidcOAuth solves delegated authorization; OIDC adds identity on top. Most production bugs are wrong flow for client, token validation gaps, and confused redirect URIs.
Trigger conditions:
invalid_grant, redirect_uri mismatches, token replayInitial offer:
Use six stages: (1) actors & client type, (2) select flow & PKCE, (3) tokens & validation, (4) scopes & consent UX, (5) session & logout, (6) operational hardening). Confirm IdP (Auth0, Cognito, Keycloak, Google, etc.).
Goal: Classify confidential vs public clients and who holds secrets.
Exit condition: Architecture diagram: browser, backend, IdP, resource server.
Goal: Authorization Code (+ PKCE for public clients); avoid Implicit and ROPC for new apps.
Exit condition: Sequence diagram for login happy path and error paths.
Goal: Access token for APIs; ID token for identity claims—validate issuer, audience, exp, signature (JWKS rotation).
expExit condition: Documented validation steps in code or API gateway config.
Goal: Least privilege scopes; incremental auth when possible.
Goal: RP-initiated logout vs local session clearing—know what breaks SSO across apps.
Goal: Rotate client secrets safely; monitor failed auth rates; alert on abnormal token issuance.