-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from Authing/test-example-20230718
test: run example for version 2.1.20 🚀
- Loading branch information
Showing
6 changed files
with
1,178 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)。 |
Oops, something went wrong.