Oidc integration

From RedHatProductSecurity/prodsec-skills · View interactive version

Oidc integration is an AI agent skill from the GitHub repository RedHatProductSecurity/prodsec-skills. Enforce OIDC IdP integration for inference engines. Use when designing, building, or reviewing authentication for inference engines, LLM APIs, or AI model serving endpoints.

How to use this skill

Skill file

OIDC Integration for Inference Engines

Security Requirement

Inference engines MUST integrate with external OIDC Identity Providers (e.g., Keycloak) for authentication. They MUST consume tokens issued by the IdP directly and support discovery via /.well-known/openid-configuration.

Raw API key authentication alone is not acceptable for production inference engines.

Required Grant Types

The inference engine MUST support these OAuth 2.0/OIDC grants from the IdP:

| Grant Type | Use Case |

|---|---|

| authorization_code + PKCE | Human users via interactive browser flows |

| client_credentials | Service accounts and automated workloads |

| device_code | CLI tools and headless environments |

| OIDC-A extensions | LLM agents chaining calls across services |

Implementation Checklist

Example: IdP Discovery Configuration

auth:
  idp:
    issuer: "https://your-idp.com"
    discovery_url: "https://your-idp.com/.well-known/openid-configuration"
    jwks_uri: "https://your-idp.com/.well-known/jwks.json"
    supported_grants:
      - authorization_code
      - client_credentials
      - device_code
    pkce_required: true
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.