Skip to content
Back to skills

Forge Oauth Oidc Integration

ASecurity

Integrate OAuth 2.0 and OpenID Connect login correctly with PKCE, state, token validation and account linking

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
ai-agentsspringsecurity

Works with

  • cli

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add ansh44233/forge --skill forge-oauth-oidc-integration --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Forge Oauth Oidc Integration?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Forge Oauth Oidc Integration
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ansh44233-forge-oauth-oidc-integration/badge)](https://www.skillsdirectory.com/skills/ansh44233-forge-oauth-oidc-integration)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: forge-oauth-oidc-integration
description: Integrate OAuth 2.0 and OpenID Connect login correctly with PKCE, state, token validation and account linking
---

<!-- Generated from catalog/skills/oauth-oidc-integration/SKILL.md by scripts/build-plugin.ts. Edit the catalog, not this file. -->

# OAuth and OIDC integration

Use a maintained library (Auth.js, openid-client, Authlib, Spring Security); never hand-roll token validation.

## Flow
- Authorization code flow with PKCE for all clients; never the implicit flow.
- Random `state` (and `nonce` for OIDC) bound to the session and checked on callback.
- Redirect URIs exactly allow-listed.

## Tokens
- Validate ID tokens: signature (via JWKS), `iss`, `aud`, `exp`, `nonce`.
- Store refresh tokens server-side, encrypted; never in localStorage.

## Accounts
- Link providers to accounts by verified email only; handle email changes at the provider.

## Verify
Tests cover a callback with a wrong `state`, an expired ID token and a wrong audience: all are rejected.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.