MCPcopy Index your code
hub / github.com/Authing/Guard

github.com/Authing/Guard @v5.3.9-zjeud.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v5.3.9-zjeud.1 ↗ · + Follow
285 symbols 700 edges 134 files 6 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

License Node

English | 简体中文

通用登录组件(Guard)帮助开发者屏蔽了很多底层认证的实现细节,同时也包括繁琐的 UI 开发。使得企业和开发者可以快速上线安全的、跨平台的统一登录表单。

🌍 生态系统

项目 状态 描述
@authing/guard-react npm version Guard 适用于 React
@authing/guard-react18 npm version Guard 适用于 React18
@authing/guard-vue2 npm version Guard 适用于 Vue2
@authing/guard-vue3 npm version Guard 适用于 Vue3
@authing/guard-angular npm version Guard 适用于 Angular
@authing/guard npm version Guard 适用于原生 JavaScript

🖥 环境支持

| IE / Edge

IE / Edge | Firefox

Firefox | Chrome

Chrome | Safari

Safari | | --- | --- | --- | --- | | IE11, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |

✨ 特性

🌈 拥有丰富的登录注册方式

账号密码 / 手机验证码 / APP 扫码 / 小程序扫码 / 企业身份源 / 社会化登录。

📦 内置多种功能,无需额外编写代码

内置了忘记密码的交互 UI、多因素认证(MFA)功能,用户无需编写任何额外代码,即可使用该组件完成任务。

🛡 拥有响应式布局

不仅完美兼容移动端和 PC 端,还可以用 CSS 轻松自定义登录框样式。

🎇 兼容前端所有主流框架

包括 React、Vue、Angular、JavaScript 等登录组件。

🎨 单点登录

Authing 支持 OAuth2、OIDC、SAML、LDAP 等多种协议,开发者可以配合统一用户池,最低五行代码轻松实现单点登录,实现登录定制化。

👀 在线体验

点击查看 sample-sso.authing.cn

📚 文档

更多示例和使用说明可参考官方文档

❓ 问题反馈

如果需要在线技术支持,可访问官方论坛. 此仓库的 issue 仅用于上报 Bug 和提交新功能特性。

👍 更新日志

详细发布记录可参考更新日志.

🤝 开源共建

  • Fork 此仓库
  • 创建自己的 git 分支 (git checkout -b my-new-feature)
  • 提交你的修改 (git commit -am 'Add some feature')
  • 将修改内容推送到远程分支 (git push -u origin my-new-feature)
  • 创建一个 Pull Request

感谢所有为 Guard 做出贡献的人!

🎁 开源许可

MIT

Copyright (c) 2019 Authing

🔗 友情链接

Extension points exported contracts — how you extend this code

Window (Interface)
(no doc)
packages/guard/src/window.d.ts
Window (Interface)
(no doc)
packages/guard-shim-react18/src/window.d.ts
VueConstructor (Interface)
(no doc)
packages/guard-vue2/src/index.ts
IGuardConfig (Interface)
(no doc)
packages/guard/src/types.ts
IGuardConfig (Interface)
(no doc)
packages/guard-shim-react18/src/types.ts
GuardOptions (Interface)
(no doc)
packages/guard/src/types.ts
GuardOptions (Interface)
(no doc)
packages/guard-shim-react18/src/types.ts
StartWithRedirectOptions (Interface)
(no doc)
packages/guard/src/types.ts

Core symbols most depended-on inside this repo

getAuthClient
called by 20
packages/guard/src/index.tsx
trackSession
called by 17
packages/guard/src/index.tsx
on
called by 16
packages/guard/src/index.tsx
changeView
called by 12
packages/guard/src/index.tsx
isDef
called by 11
packages/guard/src/index.tsx
isDef
called by 11
packages/guard-shim-react18/src/index.tsx
render
called by 10
packages/guard/src/index.tsx
start
called by 9
packages/guard/src/index.tsx

Shape

Function 130
Method 100
Class 44
Interface 11

Languages

TypeScript100%

Modules by API surface

packages/guard/src/index.tsx35 symbols
packages/guard-shim-react18/src/index.tsx35 symbols
examples/guard-react18/normal/src/pages/Embed.tsx18 symbols
examples/guard-react/normal/src/pages/Embed.tsx16 symbols
examples/guard-angular/normal/src/app/pages/embed/embed.component.ts12 symbols
examples/guard-angular/normal/src/app/pages/personal/personal.component.ts7 symbols
packages/guard-angular/src/guard.config.ts5 symbols
examples/guard-nextjs-react18/pages/personal.tsx5 symbols
examples/guard-angular/normal/src/app/pages/home/home.component.ts5 symbols
examples/guard-angular/normal/src/app/pages/callback/callback.component.ts5 symbols
examples/guard-angular/modal/src/app/pages/embed/embed.component.ts5 symbols
packages/guard/src/types.ts4 symbols

For agents

$ claude mcp add Guard \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact