social-auth

Implement OAuth 2.0 and OpenID Connect social login with PKCE and discovery reports.

10|3|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/Babatunde-Fatai/ai-agent-skills-library --skill social-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: social-auth
Source: https://github.com/Babatunde-Fatai/ai-agent-skills-library/tree/main/authentication-skills/social-auth-core
Command: npx skills add https://github.com/Babatunde-Fatai/ai-agent-skills-library --skill social-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

The Security-first Social Auth Core provides a discovery-first approach to OAuth 2.0 + OpenID Connect (OIDC) social login, enforcing safe, deterministic outputs before any code is written.

Core Features & Use Cases

  • OAuth 2.0 + PKCE with strict invariants (no implicit flow)
  • Provider coverage: Google, GitHub, LinkedIn, Apple, Twitter/X (plus pattern for adding others)
  • Framework adapters and governance guidance for Next.js, Express, vanilla Node, Laravel, Django, Flask, Rails, and Vue
  • Accounts linking, multi-provider identities, and take-over protections across deployments

Quick Start

Read AGENT_EXECUTION_SPEC.md and governance references, confirm provider scope, framework, and environment, then begin with a Discovery Report before any coding.

Frequently Asked Questions about social-auth

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

FAQPage Schema
How do I securely implement OAuth 2.0 social login with PKCE across multiple providers?

Implementing social login securely requires enforcing PKCE (S256), state and nonce validation, and server-side token storage. A discovery-first workflow mandates generating a Discovery Report to define provider scope, framework adapters, and environment contracts before writing code.

What is a discovery-first workflow for OpenID Connect social login?

A discovery-first workflow for OpenID Connect requires defining deterministic outputs and governance requirements before coding. It mandates creating a Discovery Report and gathering provider-specific references to ensure safe integration across providers like Google, GitHub, and Apple.

Does this social authentication approach support framework adapters for Next.js and Django?

Yes, the social authentication approach supports framework adapters and governance guidance for Next.js, Express, vanilla Node, Laravel, Django, Flask, Rails, and Vue. It ensures consistent PKCE enforcement and session rotation across these environments.

How do I prevent account take-over attacks when linking multiple OAuth provider identities?

Preventing account take-over attacks during multi-provider identity linking requires explicit redirect URI allowlists and strict governance requirements. The system enforces session rotation and deterministic outputs to protect against unauthorized access across deployments.

Why should I use PKCE with S256 instead of the implicit flow for OAuth 2.0?

PKCE with S256 should be used instead of the implicit flow to enforce strict invariants and secure OAuth 2.0 social login. The implicit flow is explicitly rejected to ensure server-side token storage and deterministic session management.

What environment variables and contracts do I need to configure for OIDC social login?

Configuring OIDC social login requires establishing environment contracts for provider credentials, redirect URIs, and server-side token storage. You must confirm provider scope, framework, and environment variables during the Discovery Report phase before coding.