Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
**/config.json
**/node_modules/**
**/dist/**
**/dist/**
.idea
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,34 @@ cd basic-mfa-demo/client
npm i
npm run watch
```

# 启动前修改参数

## server 端

1. 将 config.json.example 重命名成 config.json 。
2. 参照官方文档获取相应的配置信息。其中 `host` 和 `modelId` 不用修改。
```json
{
"token": "管理员token",
"appId": "你的 appId",
"host": "https://console.authing.cn",
"userPoolId": "你的 userpoolId",
"accessKeyId": "你的 userpoolId",
"accessKeySecret": "你的密钥",
"modelId": "ueba"
}
```
## client 端

1. 将 config.json.example 重命名成 config.json 。
2. 参照官方文档获取相应的配置信息。其中 `host` 不用修改。
```json
{
"appId": "",
"host": "https://console.authing.cn",
"userPoolId": "",
"accessKeySecret": ""
}
```

7 changes: 7 additions & 0 deletions adaptive-mfa-demo/client/config.json.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"token": "",
"appId": "",
"host": "",
"userPoolId": "",
"accessKeySecret": ""
}
Loading