ory-social-login

Configure OAuth2/OIDC social login providers in Ory identity configs.

Updated Jun 2, 2026
One-click install
npx skills add https://github.com/ory/codex-plugins --skill ory-social-login
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ory-social-login
Source: https://github.com/ory/codex-plugins/tree/main/plugins/ory-codex/skills/ory-social-login
Command: npx skills add https://github.com/ory/codex-plugins --skill ory-social-login

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires google-auth-library, github, apple-auth, microsoft-auth, discord-auth, slack-auth, gitlab-auth, facebook-auth, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Simplifies the integration of social login into Ory-powered applications, eliminating the need for frontend changes and allowing users to sign in with various social identity providers.

Core Features & Use Cases

  • Multi-Provider Support: Integrate OAuth2/OIDC providers such as Google, GitHub, Apple, and Microsoft.
  • Automatic UI Updates: Automatically renders social login buttons using Ory Elements.
  • No Frontend Changes: With Ory Elements, adding new providers does not require any frontend adjustments.
  • Use Case: Quickly enable "Sign in with Google" buttons in your app without the need for custom frontend development.

Quick Start

Enable social login in your Ory project by adding the following to your identity config:

ory patch identity-config <project-id> --add '/selfservice/methods/oidc/config/providers/-={
  "id": "google",
  "provider": "google",
  "client_id": "<GOOGLE_CLIENT_ID>",
  "client_secret": "<GOOGLE_CLIENT_SECRET>"
}'

Frequently Asked Questions about ory-social-login

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

FAQPage Schema
How do I add social login to an Ory-powered app?

To add social login to an Ory-powered app, you patch the identity config using the Ory CLI to include OAuth2 or OIDC providers. This enables users to authenticate via external identity providers without requiring frontend changes.

Does adding OAuth2 providers with Ory require frontend code updates?

No, adding OAuth2 providers does not require frontend code updates. The Ory social login integration uses Ory Elements to automatically render social login buttons, eliminating the need for custom frontend development when adding new providers.

Which social identity providers can I configure for OIDC authentication?

You can configure multiple OAuth2 and OIDC providers for authentication, including Google, GitHub, Apple, Microsoft, Discord, Slack, GitLab, and Facebook. These providers are supported through dedicated authentication libraries integrated into the Ory configuration.

What do I need to set up before enabling social login in my Ory project?

Before enabling social login, you must create developer accounts on your chosen identity providers to obtain client IDs and client secrets. You also need an existing Ory project and the Ory CLI configured to patch your identity config with these credentials.

How do I configure Google social login using the Ory CLI?

You configure Google social login by running the Ory CLI command `ory patch identity-config` to append a new OIDC provider object to your config, specifying "google" as the provider and including your Google client ID and client secret.