Skip to content

Commit

Permalink
Merge pull request #74 from Authing/test-example-20230718
Browse files Browse the repository at this point in the history
test: run example for version 2.1.20 🚀
  • Loading branch information
zhaoyiming0803 committed Jul 18, 2023
2 parents e8f644b + 884c4cc commit be35f72
Show file tree
Hide file tree
Showing 6 changed files with 1,178 additions and 0 deletions.
1 change: 1 addition & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
33 changes: 33 additions & 0 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# authing-sso-demo

使用 Authing 实现 SSO。

## 运行此程序

- 修改 src/views/index.html 中的初始化配置

```js
const auth = new AuthingSSO.AuthingSSO({
appId: 'AUTHING_APP_ID',
// SSO 应用面板地址
origin: 'https://{SSO 应用面板地址}.authing.cn',
// 应用登录回调 URL
redirectUri: 'http://localhost:3001/login/callback'
})
```

- 安装依赖
``` shell
npm ci
```

- 运行 demo
``` shell
npm run start
```

浏览器打开 localhost:3001 即可

## 开发教程

开发教程请参考:[使用 Authing 实现单点登录](https://docs.authing.cn/v2/reference/sdk-for-sso.html)
Loading

0 comments on commit be35f72

Please sign in to comment.