generic-oidc-offline-token-policy

Restrict OIDC offline token scopes in local Keycloak environments.

1|Updated Dec 23, 2025
One-click install
npx skills add https://github.com/jonnymuir/Umbraco.Prism --skill generic-oidc-offline-token-policy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generic-oidc-offline-token-policy
Source: https://github.com/jonnymuir/Umbraco.Prism/tree/main/.claude/skills/generic-oidc-offline-token-policy
Command: npx skills add https://github.com/jonnymuir/Umbraco.Prism --skill generic-oidc-offline-token-policy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill prevents security vulnerabilities caused by the unnecessary use of offline tokens in local or demo OIDC environments, ensuring that authentication remains session-bound and compliant with the principle of least privilege.

Core Features & Use Cases

  • Scope Hardening: Restricts OIDC scopes to essential requirements like openid and profile, preventing the accidental exposure of offline_access.
  • Security Best Practices: Provides guidance on maintaining strict issuer, nonce, and redirect URI validation during local development.
  • Use Case: When configuring a local Keycloak instance for development, use this policy to ensure that demo users do not inherit long-lived offline tokens that could expand the security blast radius.

Quick Start

Apply the generic oidc offline token policy to the current authentication configuration to restrict scopes and remove offline access.

Frequently Asked Questions about generic-oidc-offline-token-policy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent offline tokens in Keycloak local development environments?

Apply an OIDC offline token policy to restrict scopes to openid and profile, removing offline_access. This enforces session-bound authentication and prevents long-lived credential exposure in local or demo environments.

What is session-bound OIDC authentication and why avoid offline tokens?

Session-bound OIDC authentication restricts token lifetimes to active sessions. Avoiding offline tokens prevents long-lived credential exposure, ensuring compliance with the principle of least privilege in local development environments.

Does this OIDC offline token policy work with any identity provider besides Keycloak?

This OIDC offline token policy applies to local development and demo environments using OIDC providers like Keycloak. It enforces standard OIDC scope restrictions and validation for any compatible OIDC provider.

How do I restrict OIDC scopes to remove offline_access for demo users?

Restrict OIDC scopes by applying a scope hardening policy that limits scopes to essential requirements like openid and profile. This ensures demo users do not inherit long-lived offline tokens that expand the security blast radius.

What OIDC security validations are required when restricting offline tokens?

Required OIDC security validations include strict validation of issuer, nonce, and redirect URI integrity. These validations maintain secure authentication patterns during local development alongside scope hardening.

When should I not use offline tokens in local OIDC development?

Avoid offline tokens in local OIDC development when demo users could expand the security blast radius with long-lived credentials. Enforce session-bound authentication instead to maintain the principle of least privilege.