go-authcrunch: Skill for Codex

.codex/skills/authentication-portal-oidc/SKILL.md

authentication-portal-oidc is a skill for Codex from greenpau/go-authcrunch. It costs 56 tokens per session (4,296 once invoked), scanned A, original, Apache-2.0.

A reusable OpenID Connect provider for a local authentication portal. OpenID Connect is a standard that lets an application prove a user's identity to another application using browser login, signed identity tokens, and public signing keys.

In plain words
What is it for?
Use it when implementing or changing OpenID Connect clients, discovery, PKCE login, consent pages, ID-token keys, UserInfo, revocation, or conformance tests.
Why use it?
It provides the portal-side pieces needed for client registration, browser login, consent, token verification, and key discovery without depending on the portal's internal runtime.

Skill for Codex

Written for Codex: agents/openai.yaml present.

This is greenpau/go-authcrunch's own configuration. It tells Codex how to work on go-authcrunch itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything go-authcrunch configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is make test TEST_DIR='./ ./pkg/oidc/... ./pkg/authn ./internal/tag' TEST='OIDC|Provider|TagCompliance' COVERAGE_DIR=.coverage/oidc.

Reuse

Borrowing it

Nothing to install: this file belongs to greenpau/go-authcrunch. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/greenpau/go-authcrunch/main/.codex/skills/authentication-portal-oidc/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/greenpau/go-authcrunch

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for authentication-portal-oidc

README.md
[![agentmods](https://agentmods.dev/badge/skills/greenpau/go-authcrunch/authentication-portal-oidc/github.svg)](https://agentmods.dev/skills/greenpau/go-authcrunch/authentication-portal-oidc)
Your own site
<a href="https://agentmods.dev/skills/greenpau/go-authcrunch/authentication-portal-oidc"><img src="https://agentmods.dev/badge/skills/greenpau/go-authcrunch/authentication-portal-oidc/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for authentication-portal-oidc

Your own site · 80×15
<a href="https://agentmods.dev/skills/greenpau/go-authcrunch/authentication-portal-oidc"><img src="https://agentmods.dev/badge/skills/greenpau/go-authcrunch/authentication-portal-oidc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,296 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00056 $0.04296
Opus 5.5 $0.00022 $0.01718
Sonnet 5.5 $0.00011 $0.00859
Haiku 4.5 $0.00006 $0.00430

Measured 17d ago against content hash 30fb05e67dc5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

authentication-portal-oidc scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.codex/skills/authentication-portal-oidc/SKILL.md · 319 lines

How it starts

The opening of the file, as written. The whole thing — 319 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Authentication Portal OpenID Provider

Ownership

pkg/oidc owns the reusable provider. Provider is an exported concrete type; OpenIDProvider is its public HTTP and browser-lifecycle interface. NewProvider validates and snapshots Config, requires an IdentityVerifier, and accepts runtime Options. The package has no dependency on the authn portal runtime.

  • config.go: public Config, ClientConfig, and validation.
  • provisioning.go: public client constructors, credential generation, Config.AddClient, and dedicated signing-key generation in PEM or a new file.
  • application.go: serializable OAuthApplicationConfig, associating an exact nickname with a validated client; NewOAuthApplicationConfig snapshots it without generating credentials. Root Config.OAuthApplications owns named registrations, with copying add/lookup methods in config_oauth_applications.go.
  • pkg/oidc/parser: public NewOIDCClientConfigFromDirectives(nickname, statements) parses an OAuth application block body with cfgutil.DecodeArgs and returns *oidc.ClientConfig. This separate package owns the parser and its external-package unit tests; it delegates provisioning to oidc.NewClientConfig. NewOAuthApplicationConfigFromDirectives(header, statements, persisted) recognizes the encoded oauth application <nickname> header and reuses the same client field decoder for adaptation without credential generation. NewOIDCProviderConfigFromDirectives(statements, applications) parses provider settings, resolves selected application nicknames through a caller-owned map[string]*oidc.ClientConfig, and returns *oidc.Config for NewProvider or PortalConfig.OIDCProvider. Embedding adapters collect statements using cfgutil.EncodeArgs and import the parser directly. Keep the client, application, and provider entry points in client.go, application.go, and provider.go within this one parser package. Extend the matching entry point when exposing additional settings on its config; reuse the client decoder when adapting named applications.
  • Root Config.ConfigureOIDCProvider(portal, statements) supplies registered applications to the provider parser, then calls PortalConfig.ConfigureOIDCProvider to attach a validated snapshot. A second definition fails; prior portal validation is invalidated so OIDC defaults run.
  • identity.go: public Authentication, Identity, IdentityVerifier, and OpenIDProvider contracts.
  • options.go: construction, runtime RenderPage callback, configurable login URL, cookie names, and excluded signing keys; provider.go: bounded sessions, consent, and browser lifecycle.
  • keys.go: dedicated RSA PEM loading, thumbprints, public JWKS, signing, hints.
  • http.go: public ServeHTTP, HandleHTTP, ValidateLoginRequest, and Discovery, guarded issuer routing, parsing, CORS, and buffered responses.
  • pages.go, page.template: browser page snapshots, standalone rendering, content negotiation and CSP. The portal uses its oidc UI template alias; read browser pages and themes when changing consent, form-post continuation, browser errors or rendering integration.
  • authorization.go, request_object.go, token.go: code/PKCE, consent, unsigned/RS256 Request Objects, client authentication, UserInfo, and revocation. claims.go owns claims permissions and ACR mapping; refresh.go owns OIDC refresh families; request_keys.go validates client verification keys.

Read the full file on GitHub · 319 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 17d ago Changed · +2 lines 30fb05e67dc5
  2. 1mo ago Changed · -58 lines · -45 tokens per session 6ef06e1b5691
  3. 1mo ago Changed · +5 lines d4e78f9db020
  4. 1mo ago Changed · +21 lines 9b3779ea6bc2
  5. 1mo ago Changed · +30 lines · +29 tokens per session 188d055ae886
  6. 1mo ago Changed · +16 lines bab06f12ae59
  7. 1mo ago Changed · +118 lines a37339dec154
  8. 1mo ago First seen · 185 lines · 72 tokens per session scan A 3e659ad1dc8a

Subscribe to this mod's changes

authentication-portal-oidc is a skill published in the GitHub repository greenpau/go-authcrunch (60 stars, last pushed 10d ago), licensed Apache-2.0. It adds 56 tokens to every session and 4,296 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-13.

Related

authentication-portal-oidc compared with skills from other repositories

authentication-portal-oidc next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
authentication-portal-oidcgreenpau/go-authcrunchSkill6010d agoApache-2.0A56Codex
mem0-oss-to-platformmem0ai/mem0Skill68k2d agoApache-2.0A217Claude Code, Codex
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.2kyesterdayMITA78Claude Code
fastapi-router-pymicrosoft/skillsSkill3.2kyesterdayMITA46Claude Code
dev-runtimelangwatch/langwatchSkill5.0kyesterdayApache-2.0A172Claude Code
api-designericrisco/rsc-harnessSkill5032d agoMITA105Claude Code, Codex
migrate-segw-to-raparc-mcp/arc-1Skill252yesterdayMITA106Claude Code