Agent skill

Configuration OAuth Applications

by greenpau in greenpau/caddy-security

Register named OAuth clients, manage private registration storage, and configure portal OIDC providers.

Apache-2.0Auto-check passedBackend & APIs

Install Configuration OAuth Applications

skills CLI
$ npx skills add greenpau/caddy-security --skill configuration-oauth-applications -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install greenpau/caddy-security configuration-oauth-applications --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/greenpau/caddy-security.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/configuration-oauth-applications .claude/skills/configuration-oauth-applications && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
configuration-oauth-applications
GitHub stars
2.3k
Token cost
~3.8k tokens
SKILL.md length
1,698 words
Files
6 (incl. references)
Skills in repo
29
Repo updated
First seen
Licence
Apache-2.0

At a glance

Register named OAuth clients, manage private registration storage, and configure portal OIDC providers.

  • Tasks that involve OAuth and OpenID Connect
  • SKILL.md covers Ownership, Grammar, Why One Callback per Statement and Credentials and Snapshots, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Configuration OAuth Applications is an agent skill from greenpau/caddy-security. Register named OAuth clients, manage private registration storage, and configure portal OIDC providers. Owns security oauth/oidc provisioning commands; external login providers and security local are separate.

Its SKILL.md is about 3.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files (for example `agents/openai.yaml`, `references/oidc-conformance-actions.md` and `references/oidc-conformance.md`).

It sits in Backend & APIs, covering OAuth and OpenID Connect. The repository describes itself as: 🔐 Authentication, Authorization, and Accounting (AAA) App and Plugin for Caddy v2. 💎 Implements Form-Based, Basic, Local, LDAP, OpenID Connect, OAuth 2.0 (Github, Google…. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve OAuth and OpenID Connect

Example prompts

  • “/configuration-oauth-applications”

What it can do on your machine

Read from SKILL.md and the folder at commit a48553d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are caddyfile).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Configuration OAuth Applications loads about 3.8k tokens when it runs, and up to ~25k if it reads all its reference files. Until then it costs about 61 tokens; SKILL.md has 1,698 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~61
When it runs · the whole SKILL.md, loaded when a task matches
~3.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~25k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from greenpau/caddy-security at commit a48553d, republished under its Apache-2.0 licence (© greenpau). 1,698 words, ~3,763 tokens.

Download SKILL.mdSave it as .claude/skills/configuration-oauth-applications/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
configuration-oauth-applications
description
Register named OAuth clients, manage private registration storage, and configure portal OIDC providers. Owns security oauth/oidc provisioning commands; external login providers and security local are separate.

Configuration OAuth Applications

Ownership

oauth application <nickname> belongs inside global security. The Caddy adapter collects these blocks before parsing other declarations, including portals and identity providers. caddyfile_oauth_application.go encodes the header separately from each body statement and delegates to go-authcrunch/pkg/oidc/parser.NewOAuthApplicationConfigFromDirectives. Config.AddOAuthApplication validates and copies each registration. Collect applications directly from the enclosing dispenser: Caddy's NextSegment omits empty blocks, which otherwise turns an empty registration into a misleading missing-block error. Dispatch errors must also omit raw tokens; malformed quoted headers can contain misplaced credentials before the application parser runs. Check the closing brace before calling NextBlock: that helper can skip a brace followed by another token on the same line and read the following setting inside the application. Reject this form so misplaced consent, PKCE, and callback settings cannot change the registration. Reject unquoted closing braces among header/body arguments too. RemainingArgs accepts them as values, so a missing client_id could otherwise become } and shift which enclosing block supplies the application's closing brace. After collection, also require the enclosing security dispenser's nesting to return to zero, including for direct dispenser callers. Caddy v2.11.7 treats quoted "{" and "}" arguments as literal values. Preserve those values and following declarations; EOF must still reject an incomplete owned block. Test missing security/portal delimiters separately from the host global block. The testcase_security_oauth_applications fixture deliberately uses "{" and "}" as client display names. These are valid literal values for parser and provisioning regressions, not recommended operator-facing application names. The published go-authcrunch module selected in go.mod supports these APIs and repeated singular redirect_uri statements. No local replacement is required; follow the dependency workflow when changing the selected version. Follow the repository scope when consulting or selecting sibling source.

An application declares a client. A portal enables an OpenID Provider (OP) by selecting those clients in an oidc provider block. See Portal OpenID Provider for the one-block contract, all settings/defaults, deferred attachment, realm selection, issuer/cookie isolation, HTTP mounting, protocol capabilities, native callbacks, JSON restoration, and Caddy TLS relying-party coverage. See Official Caddy OP conformance for the pinned Foundation plans, private local prerequisites, trusted HTTPS, real browser interaction, signed evidence, original nonzero results and remaining reviews. The operator examples exercise the outer configuration, persisted confidential/public applications, two independent portals and generated native JSON with actual Caddy TLS journeys. Use the Caddy harness rather than treating library conformance as deployment evidence. See Private provisioning and activation for the tested create/load/rotate workflow, storage security, candidate activation, and key rollover. External login through oauth identity provider uses configuration-oauth-providers.

Keep host storage names scoped to OAuth: oauth registration store in Caddyfiles, oauth_registration_store in app JSON, and oauth_registration_* source files. Use oauth_store.Caddyfile, oauth_client.Caddyfile, and oauth_rotate.Caddyfile for standalone provisioning inputs. User registration remains a separate domain.

Grammar

This is a catalogue of fields inside security; redirect_uri and request_object_key may repeat:

caddyfile
oauth application <nickname> {
	registration <immutable-revision>
	client_id <id>
	client_name <display_name>
	client_secret <secret>
	token_endpoint_auth_method <client_secret_basic|client_secret_post|none>
	redirect_uri <uri>
	scopes <scope> [<scope>...]
	require_pkce <true|yes|on|1|false|no|off|0>
	skip_consent <true|yes|on|1|false|no|off|0>
	request_object_signing_alg <none|RS256>
	request_object_key <kid> <base64url-modulus> <base64url-exponent>
}
  • Optional registration selects a previously provisioned revision from the single oauth registration store in security. Without it, credentials are explicit. Revisions are 1–64 ASCII letters/digits/hyphens/underscores, starting with a letter or digit. Only declared nicknames become registered.
  • Nickname identifies the declaration. client_id identifies the protocol client; client_name is its display name and defaults to nickname. Keep these separate, including in native JSON and lookup keys.
  • Duplicate nicknames fail, even for identical definitions, repeated imports, or different protocol IDs. Different nicknames may share a protocol ID at registration time; provider validation owns conflicting client-ID references.
  • Scalars require exactly one value. Quote display names containing spaces. Each redirect_uri statement takes exactly one URI and appends it in declaration order. scopes occupies one statement with one or more values; repeated scopes statements fail. The redirect_uris directive is rejected, including mixed singular/plural input. Nested blocks, spaced field aliases, and grouped keywords are unsupported.
  • Use unquoted block braces. End the line after the closing brace; following settings and declarations belong on a new line.
  • Booleans retain the application parser's true/yes/on/1 and false/no/off/0 spellings. Provider/refresh enabled/disabled state syntax is unsupported here.
  • Authentication defaults to client_secret_basic; confidential clients may choose client_secret_post. Both require an explicit or stored client ID and a secret of 32–1024 bytes. IDs must be nonempty, at most 256 bytes, and have no leading or trailing whitespace, tabs, or newlines.
  • Public clients choose none, omit the secret, and require PKCE. PKCE defaults to true for all clients; only confidential clients may disable it.
  • Consent skipping defaults to false; explicitly enabling it grants the registered scopes. Scopes default to openid profile email; an explicit list must be distinct, include openid, and use supported scopes: openid profile email address phone offline_access. OIDC offline access still requires an explicit consent prompt and approval, even with skip_consent.
  • Request Object verification keys contain only public RSA parameters, with distinct kid values, 2048–8192-bit moduli, and at most eight keys. Both integer parameters use unpadded base64url. request_object_signing_alg RS256 requires registered keys and rejects unsigned objects; none permits only unsigned objects. Omitting the pin permits unsigned objects and RS256 signatures from the registered keys. Keys and algorithm policy come from current directives, not persisted-policy inheritance. No key file or remote JWKS is fetched.
  • Callback URIs are required, distinct, and preserved byte-for-byte, including case, percent encoding, query ordering, and explicit ports. HTTPS is required except for public native clients using HTTP with literal 127.0.0.1 or [::1]. Hostname loopback and private URI schemes are not supported. The provider's native-loopback port exception changes only the authorization port for these literal HTTP addresses; token redemption must repeat the exact actual redirect. It does not authorize new CORS origins. Real IPv4/IPv6 listener coverage lives in oidc_loopback_e2e_test.go, exercised by TestCaddyOIDCRelyingPartyE2E.

Why One Callback per Statement

Each callback is a separate registration entry, so write it on its own line:

caddyfile
redirect_uri https://App.example.test:443/a%2Fb?next=%2F&x=+
redirect_uri https://app.example.test/callback

Inside oauth application, this lets reviewers add, remove, or inspect one callback without rewriting a packed list. The shared upstream parser owns append behavior; Caddy forwards each complete statement and preserves exact URI bytes. Repeated identical URIs remain errors. Retaining no plural alias keeps one directive form and unambiguous one-value arity. The serialized redirect_uris array retains its name and order for stored-config compatibility.

Show full SKILL.md (706 more words)Show less

Credentials and Snapshots

Normal adaptation never generates or persists credentials. registration v1 loads the validated named record from the explicit private store. Only omitted ID and secret inherit; callbacks, scopes, display name, authentication method, consent, PKCE, and Request Object keys/policy come from the current declaration and parser defaults. Public clients inherit no secret. Moving to confidential authentication requires an explicit secret through the provisioning command. Changing IDs never borrows another ID's secret. Secret rotation retains the ID; use a new nickname to create a different stored client identity.

An explicit ID/secret in a stored declaration must match its selected durable revision. First stage any credential change with security oauth rotate secret, then select that revision. A mismatched, missing, corrupt, unreadable, or nonprivate record fails closed. Changes to a file between adaptation and activation are rejected by a digest of the validated registration. Never edit published records.

Stored application references serialize in apps.security.oauth_application_sources with nickname, revision, digest, and current noncredential directives. The oauth_registration_store.path is absolute. Provider statements serialize in oidc_provider_directives, keyed by portal name. Loaded credentials and copied provider clients are removed before serializing the Caddy configuration; App reconstructs them only in its private runtime copy. This protects the saved credentials from adapted JSON, Caddy autosave, and admin configuration views.

Without registration, existing native JSON remains supported at apps.security.config.oauth_applications, as { "name": ..., "client": ... } objects. Explicit credentials remain secret-bearing configuration. Caddy's {$VARIABLE} substitution runs before adaptation; application fields do not implement runtime {env.*} or secrets:* expansion. The separate provisioning file does not expand variables or imports. Its client_secret is literal.

Protect all configurations, diagnostics, and backups because other settings can still contain passwords or keys. Generic configuration dumping is not credential storage. See the private provisioning reference for filesystem permissions, protected RP handoff, and recovery after interrupted writes.

Examples and Validation

The complete, synthetic example is testcase_security_oauth_applications.Caddyfile. It includes all three authentication methods, a local portal, exact callbacks, and applications declared after the portal. Replace its fixture credentials before using it outside tests.

Coverage belongs to caddyfile_oauth_application_test.go, TestCaddyfileAdaptAuthenticationToJSON, TestResolveRuntimeAppConfig, and TestCaddyOAuthApplicationsE2E in oauth_application_e2e_test.go. The E2E test adapts that file, provisions Caddy with a valid local portal, authenticates over TLS, reloads repeatedly, rejects invalid native JSON, removes/reintroduces an application, and checks explicit secret rotation and redacted process logs. Header-error tests cover inline and imported declarations through the real adapter, including empty blocks and grouped headers with misplaced credentials. Block-boundary tests reject quoted delimiters and settings after a closing brace. The E2E test also verifies login remains available after those adaptations fail. It verifies that application declarations alone enable no OP endpoints. TestCaddyRegistrationE2E exercises the registered CLI in independent processes, real Caddy restart/reload and validation, RP code exchange and ID-token signature verification, old-secret rejection after activation, failed activation, key rollover, and redaction of actual admin/autosave/log surfaces. TestCaddyRegistrationInterruptedWriterE2E kills a writer during a partial write, checks that the actual CLI times out on the retained lock while adaptation still reads the prior registration, and verifies rotation after deliberate recovery. oauth_registration_store_test.go covers atomic failure paths, concurrency, permissions, invalid lock entries, read-only adaptation with a failing randomness source, bounded publication, ambiguous/corrupt JSON, and revision integrity. oauth_registration_config_test.go checks provider key path identity and permissions for Caddyfile and native JSON providers; command_provision_test.go checks private input filename identity. The process E2E tests reject malformed input and records without creating credentials or replacing the active deployment. They also verify that unsafe keys in native JSON are rejected without changing the active provider or autosave, and that private keys work in explicit configurations without a store. command_security_test.go covers Caddy command-group registration, descriptive subcommand help, flags specific to each action, and rejection of positional secrets. Keep the namespace's inherited Cobra flag-error handler: flag parsing runs before command handlers, and default errors echo unknown flag names and invalid values. Help must perform no provisioning. TestCaddySecurityCommandE2E and TestCaddySecurityCommandFlagErrorsE2E check help, dispatch, and error redaction through the actual Caddy CLI in separate processes. testcase_security_oauth_registration_store, testcase_security_oauth_registration_malformed, and testcase_security_oauth_registration_legacy cover the new adaptation syntax; the positive fixture provisions deterministic synthetic credentials in a temporary private directory. Runtime reference resolution is tested through the complete App and Caddy lifecycle, since the older root-config-only resolution helper does not load host-owned references.

Validation commands follow testing-and-ci, with syntax maintenance when changing the Caddy wrapper or selected upstream grammar.

© greenpau, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (references) in .codex/skills/configuration-oauth-applications of greenpau/caddy-security.

  • SKILL.md
  • agents/openai.yaml
  • references/oidc-conformance-actions.md
  • references/oidc-conformance.md
  • references/oidc-provider.md
  • references/private-provisioning.md

Open the folder on GitHubat commit a48553d

Compare with similar skills

Configuration OAuth Applications next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Configuration OAuth Applications compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Configuration OAuth Applications this skillgreenpau/caddy-security2.3k—~3.8kAutomated safety check: PassApache-2.0
Fortify Developmentcoollabsio/coolify63k4 repos~1.9kAutomated safety check: PassMIT
OmniRoute Provider Managementdiegosouzapw/OmniRoute75k—~2.4kAutomated safety check: PassMIT
Antipattern Preventiondoorkeeper-gem/doorkeeper5.5k—~1.1kAutomated safety check: PassMIT
Cognitoitsmostafa/aws-agent-skills1.2k1 repos~2.3kAutomated safety check: PassMIT
Notion Worker Third-Party Auth Guidemakenotion/workers-template4391 repos~3.5kAutomated safety check: NotesMIT

Similar skills

  • Fortify Development

    coollabsio/coolify

    ACTIVATE when the user works on authentication in Laravel. An agent skill from coollabsio/coolify.

    63k GitHub starsUsed in 4 repos~1.9k tokens
    Backend & APIsAuto-check passed
  • OmniRoute Provider Management

    diegosouzapw/OmniRoute

    Manages AI provider connections, API keys, OAuth flows and connection tests through OmniRoute's REST API across its 327-provider catalog.

    75k GitHub stars~2.4k tokensUpdated today
    Backend & APIsAuto-check passed
  • Antipattern Prevention

    doorkeeper-gem/doorkeeper

    Avoid common Ruby and Rails antipatterns that degrade maintainability and performance.

    5.5k GitHub stars~1.1k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Cognito

    itsmostafa/aws-agent-skills

    AWS Cognito user authentication and authorization service. An agent skill from itsmostafa/aws-agent-skills.

    1.2k GitHub starsUsed in 1 repo~2.3k tokens
    Backend & APIsAuto-check passed
  • Notion Worker Third-Party Auth Guide

    makenotion/workers-template

    Official

    Decides whether a Notion Worker should use a brokered credential, a plaintext environment secret, or OAuth to authenticate against a non-Notion service.

    439 GitHub starsUsed in 1 repo~3.5k tokens
    Backend & APIsAuto-check: notes
  • Stripe Best Practices

    kanchengw/cnllm

    Guides Stripe integration decisions — API selection (Checkout Sessions vs PaymentIntents), Connect platform setup (Accounts v2, controller properties), billing/subscriptions, Treasury financial…

    173 GitHub starsUsed in 2 repos~925 tokens
    Backend & APIsAuto-check passed

More from greenpau/caddy-security

All 29 skills in this repo
  • Authentication Portal API

    greenpau/caddy-security

    Build or troubleshoot portal JSON/native login clients, refresh, profile and admin APIs, and public JWKS.

    2.3k GitHub stars~2.9k tokensUpdated 5 days ago
    Auto-check passed
  • Coding Directives

    greenpau/caddy-security

    Implement or review caddy-security Go code, Caddy modules, parsers, lifecycle, and HTTP delegation.

    2.3k GitHub stars~4.1k tokensUpdated 5 days ago
    Auto-check passed
  • Configuration

    greenpau/caddy-security

    Build or review caddy-security Caddyfiles and select focused configuration skills.

    2.3k GitHub stars~2.6k tokensUpdated 5 days ago
    Auto-check passed
  • Configuration Crypto

    greenpau/caddy-security

    Configure portal/policy JWT keys, token names and lifetimes, key loading and generation, public-key discovery, and System API encryption keys.

    2.3k GitHub stars~3.5k tokensUpdated 5 days ago
    Auto-check passed
  • Configuration HTTP Integrations

    greenpau/caddy-security

    Mount authenticate and authorize handlers, separate portal and protected routes, align auth URLs, and preserve trusted proxy metadata.

    2.3k GitHub stars~3.2k tokensUpdated 5 days ago
    Auto-check passed
  • Configuration State

    greenpau/caddy-security

    Configure durable AuthCrunch runtime state, exclusive storage ownership, stop/start persistence, reload rejection, and recovery.

    2.3k GitHub stars~1.6k tokensUpdated 5 days ago
    Auto-check passed

Categories

Questions about Configuration OAuth Applications

What does Configuration OAuth Applications do?

Register named OAuth clients, manage private registration storage, and configure portal OIDC providers. Configuration OAuth Applications is an agent skill from greenpau/caddy-security. Register named OAuth clients, manage private registration storage, and configure portal OIDC providers.

When should I use Configuration OAuth Applications?

Configuration OAuth Applications fits situations like: tasks that involve OAuth and OpenID Connect.

How do I install Configuration OAuth Applications in Claude Code?

Run `npx skills add greenpau/caddy-security --skill configuration-oauth-applications -a claude-code`. Or copy the skill folder (.codex/skills/configuration-oauth-applications in greenpau/caddy-security) into .claude/skills/configuration-oauth-applications in your project. Claude Code loads it when a task matches its description.

How do I install Configuration OAuth Applications in Codex?

Run `npx skills add greenpau/caddy-security --skill configuration-oauth-applications -a codex`. Or copy the skill folder (.codex/skills/configuration-oauth-applications in greenpau/caddy-security) into .agents/skills/configuration-oauth-applications in your project. Codex loads it when a task matches its description.

Can I use Configuration OAuth Applications in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add greenpau/caddy-security --skill configuration-oauth-applications -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/configuration-oauth-applications, .gemini/skills/configuration-oauth-applications, .github/skills/configuration-oauth-applications and .opencode/skills/configuration-oauth-applications in your project.

What does Configuration OAuth Applications need to run?

SKILL.md names no scripts, command-line tools or credentials: Configuration OAuth Applications is instructions for the agent only.

Does Configuration OAuth Applications access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Configuration OAuth Applications safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Configuration OAuth Applications use?

Configuration OAuth Applications is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Configuration OAuth Applications use?

About 3.8k tokens (SKILL.md is roughly 15k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 21k tokens, read only when the agent opens those files.

What are the alternatives to Configuration OAuth Applications?

Skills that share tags, products or a category with Configuration OAuth Applications: Fortify Development (coollabsio/coolify, 63k stars), OmniRoute Provider Management (diegosouzapw/OmniRoute, 75k stars), Antipattern Prevention (doorkeeper-gem/doorkeeper, 5.5k stars) and Cognito (itsmostafa/aws-agent-skills, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Configuration OAuth Applications?

greenpau (a GitHub user) maintains it in greenpau/caddy-security, which has 2,252 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on October 5, 2026.

Source: greenpau/caddy-security on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.