integrate-oauth-oidc

Integrate third-party identity providers via OAuth 2.0 Authorization Code flow with PKCE.

9|3|Updated Jun 13, 2026
One-click install
npx skills add https://github.com/Sir-chawakorn/sanook-cli --skill integrate-oauth-oidc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: integrate-oauth-oidc
Source: https://github.com/Sir-chawakorn/sanook-cli/tree/main/skills/integrate-oauth-oidc
Command: npx skills add https://github.com/Sir-chawakorn/sanook-cli --skill integrate-oauth-oidc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill resolves the complexities and security pitfalls associated with integrating third-party identity providers, ensuring robust authentication without exposing sensitive credentials.

Core Features & Use Cases

  • Secure Handshake: Implements Authorization Code flow with PKCE (S256) to prevent interception and CSRF attacks.
  • Token Validation: Performs strict ID-token verification against JWKS, including signature, issuer, audience, and nonce checks.
  • Use Case: Use this skill when adding "Sign in with Google/GitHub" to your application, or when your backend needs to securely consume third-party APIs like Stripe or Slack on behalf of a user.

Quick Start

Use the integrate-oauth-oidc skill to configure the OAuth callback handler and validate the incoming ID token for a new Google login integration.

Frequently Asked Questions about integrate-oauth-oidc

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

FAQPage Schema
How do I implement OAuth 2.0 Authorization Code flow with PKCE for third-party login?

Implementing OAuth 2.0 Authorization Code flow with PKCE requires generating a code verifier and challenge to securely exchange authorization codes for tokens, preventing interception attacks. This skill configures the PKCE S256 handshake and manages the secure token exchange automatically for web, mobile, and CLI applications.

How do I validate an OIDC ID token signature using JWKS?

Validating an OIDC ID token signature using JWKS involves fetching the provider's public keys and verifying the token's signature, issuer, audience, and nonce. This skill performs strict ID-token verification against JWKS to ensure token authenticity and prevent RS-to-HS confusion attacks.

When do I need state and nonce verification in an OAuth callback handler?

State and nonce verification in an OAuth callback handler is needed whenever you process third-party authentication responses to prevent CSRF and replay attacks. This skill enforces state and nonce verification during the token exchange process to ensure compliance with modern security standards.

Does this OAuth integration approach work for both web and CLI applications?

Yes, this OAuth integration approach works for web, mobile, and CLI applications requiring third-party identity provider access. The skill manages secure token exchange, ID token validation, and account linking logic across these different platform environments.

What is the best way to add Sign in with Google or GitHub using OpenID Connect?

The best way to add Sign in with Google or GitHub using OpenID Connect is to implement the OIDC protocol with a secure Authorization Code flow. This skill configures the OAuth callback handler and validates incoming ID tokens for new social login integrations.

How do I prevent RS-to-HS confusion attacks during ID token validation?

Preventing RS-to-HS confusion attacks during ID token validation requires strictly enforcing the expected signing algorithm when verifying signatures against JWKS. This skill ensures robust authentication by performing strict verification checks and preventing common OAuth vulnerabilities.