r2-dev-login

Automate integration of multi-method authentication with OAuth2/OIDC and token management.

2|1|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/silentbalanceyh/r2mo-lain --skill r2-dev-login
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: r2-dev-login
Source: https://github.com/silentbalanceyh/r2mo-lain/tree/main/skills/r2-dev-login
Command: npx skills add https://github.com/silentbalanceyh/r2mo-lain --skill r2-dev-login

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Develop a secure, flexible authentication layer that supports multiple enterprise-grade login methods (OAuth2/OIDC, LDAP, SMS, Email, WeChat, WeCom) within a single, cohesive flow.

Core Features & Use Cases

  • Supports 8+ login methods with a unified frontend experience
  • Standard OAuth2/OIDC protocol support and token management
  • Client-side form validation, error handling, and responsive UI
  • Seamless AppContext integration to reflect user state and permissions
  • QR code login and third-party callback flows for enterprise scenarios
  • Guidance for selective method implementation based on requirement.page.md

Quick Start

Configure and integrate the r2-dev-login module into your web app to enable 8+ authentication methods and OAuth2/OIDC flows.

Frequently Asked Questions about r2-dev-login

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

FAQPage Schema
How do I implement multi-method authentication for an enterprise web application?

Multi-method authentication orchestrates 8+ login strategies, including OAuth2, OIDC, LDAP, SMS, and WeChat, within a single cohesive flow. It provides a unified frontend experience with API-first design, client-side validation, and secure token management for SaaS platforms.

Can I use OAuth2 and LDAP login methods together in one authentication module?

Yes, you can use OAuth2 and LDAP together. The module supports selective method implementation guided by requirement.page.md, allowing you to enable standard OAuth2/OIDC protocol flows alongside enterprise LDAP authentication with standardized error responses.

What is the best way to handle JWT token lifecycle management across multiple login providers?

Handling JWT token lifecycle management across multiple providers requires unified token handling and AppContext integration. This approach reflects user state and permissions seamlessly while managing token refresh and expiration across all configured login strategies.

Does this multi-method login module support QR code and WeChat third-party callback flows?

Yes, the module supports QR code login and third-party callback flows specifically for enterprise scenarios. It integrates WeChat and WeCom authentication alongside standard protocols, handling secure token exchange and AppContext state updates automatically.

How do I configure client-side form validation and error handling for an OIDC login flow?

Configuring client-side form validation for OIDC login involves standardized error responses and responsive UI components. The module applies API-first design principles to validate inputs before submission, ensuring secure and consistent user feedback across all login methods.

What limitations or prerequisites exist when setting up SMS and Email authentication strategies?

Setting up SMS and Email authentication requires an API-first environment and proper configuration of external service providers. The module handles client-side validation and AppContext integration, but you must ensure your backend supports standardized error responses for these methods.