whoamihappyhacking avatar

Lazycat Auth Integration

This handles auth integration for Lazycat MicroServer, a Chinese platform that wraps apps with OIDC single sign-on and injects user identity via HTTP headers. You configure it through a manifest file where you specify your OIDC callback path and which routes should be public. The platform automatically adds headers like X-HC-User-ID and X-HC-User-Role to authenticated requests, so your backend can trust them without additional verification. It also covers API tokens for scripted access when you can't rely on browser cookies. Useful if you're deploying on this specific infrastructure and need to wire up their auth system without building your own login flow.

skills.sh installs
231
GitHub stars
61
last updated
Aug 21, 2026

Install

$ npx -y skills add whoamihappyhacking/lazycat-skills --skill lazycat-auth-integration --agent claude-code

Installs into .claude/skills of the current project.

Files

懒猫微服认证接入

先确认目标 lzcos 与 lzc-cli 版本;编写配置前必须读取 references/spec-sync.md,按其中流程现场核对官方原文。LPK V2 示例要求 lzcos >= 1.5.0、lzc-cli >= 2.0.0;更老目标不能直接套用。

先选机制

需求机制最低系统版本必读
应用使用统一登录OIDC1.3.5+references/oidc.md
后端识别平台用户Ingress 注入 Header以目标版本官方文档为准references/http-request-headers.md
脚本访问系统 APIAPI Auth Token1.4.3+references/api-auth-token.md
极少数路径绕过平台 HTTP 登录public_path以目标版本官方文档为准references/public-api.md
应用代表当前用户访问自身/其他应用.lzcx + 委托票据1.5.2+references/app-interconnect.md

OIDC 最小流程

  1. 从上游应用文档确认准确回调路径。
  2. 在 lzc-manifest.yml 设置 application.oidc_redirect_path;没有此字段就不会生成 OIDC 环境变量。
  3. 仅把应用需要的 OIDC 变量传入对应服务,优先使用 issuer discovery。
  4. 不把动态生成的 client secret 写入镜像、数据库或文档。

以下沿用官方 Outline 镜像与回调,只展示 OIDC 相关片段;Outline 所需数据库、Redis、存储及其他环境变量仍须按其部署文档配置,本片段不能独立启动。

# package.yml(LPK V2 静态元数据片段)
package: cloud.lazycat.app.outline
version: 0.0.1
name: Outline

Sponsors

Details

Repository
github.com/whoamihappyhacking/lazycat-skills
Category
Backend & APIs
First seen
Jun 3, 2026

More from whoamihappyhacking/lazycat-skills

All 5
1davila7 avatarena-databasedavila7/claude-code-templatesAccess European Nucleotide Archive via API/FTP. Retrieve DNA/RNA sequences, raw reads (FASTQ), genome assemblies by accession, for genomics and bioinformatics p218skills.sh installs
2iii-hq avatariii-reactive-backendiii-hq/iiiBuilds reactive real-time backends on the iii engine. Use when building event-driven apps where state changes automatically trigger side effects, clients receiv192skills.sh installs
3iii-hq avatariii-http-middlewareiii-hq/iiiRegisters engine-level middleware functions that run before HTTP handlers. Use when adding authentication, request logging, rate limiting, or any pre-handler lo178skills.sh installs
4davila7 avatarmoodle-external-api-developmentdavila7/claude-code-templatesCreate custom external web service APIs for Moodle LMS. Use when implementing web services for course management, user tracking, quiz operations, or custom plug177skills.sh installs
5personamanagmentlayer avatargraphql-expertpersonamanagmentlayer/pclExpert-level GraphQL API development with schema design, resolvers, and subscriptions167skills.sh installs
6andrelandgraf avatarauthenticationandrelandgraf/fullstackrecipesComplete authentication system with Better Auth, email verification, password reset, protected routes, and account management.132skills.sh installs