- source/rust → rust/ - source/conf → conf/ - source/www → www/ - source/data-seed → data-seed/ - source/data → data/ - scripts/ 保留(语义不对应 ipass deploy/) - /build/ 加入 .gitignore(本机 nginx 源码树) - README.md 目录树同步 + build 路径 /tmp/sso-build → ./build - Cargo.toml path 依赖 '../../deps/ipass' → '../deps/ipass' - CLAUDE.md 同步路径示例 cargo check 通过(52s);release build 通过(1m26s),产物 libsso_gateway.dylib
32 lines
759 B
JSON
32 lines
759 B
JSON
{
|
|
"admin": {
|
|
"username": "admin",
|
|
"display_name": "管理员",
|
|
"role": "admin",
|
|
"salt": "<openssl rand -hex 16>",
|
|
"pwd_hash": "<sha256('<salt>:<password>') 后迭代 1000 轮 sha256(x + salt)>",
|
|
"api_key": "sk_<随机>",
|
|
"email": "[email protected]",
|
|
"department": "平台",
|
|
"groups": [
|
|
"admin"
|
|
],
|
|
"created_at": 0
|
|
},
|
|
"alice": {
|
|
"username": "alice",
|
|
"display_name": "爱丽丝",
|
|
"role": "user",
|
|
"salt": "<openssl rand -hex 16>",
|
|
"pwd_hash": "<sha256('<salt>:<password>') 后迭代 1000 轮 sha256(x + salt)>",
|
|
"api_key": "sk_<随机>",
|
|
"email": "[email protected]",
|
|
"department": "研发部",
|
|
"groups": [
|
|
"rd",
|
|
"eng"
|
|
],
|
|
"created_at": 0
|
|
}
|
|
}
|