steedos-platform/packages/accounts
github-actions 2b2cbd97cd v2.1.72
2022-01-12 13:32:18 +00:00
..
src accounts 新增系统初始化页面 #2647 2022-01-08 15:07:21 +08:00
views/oauth2 tailwind css url调整 #2570 2021-12-22 13:35:34 +08:00
.env
.gitignore
idp-private-key.pem
idp-public-cert.pem
package.json v2.1.72 2022-01-12 13:32:18 +00:00
package.service.js
plugin.config.yml
README.md package 加下 README.md #2344 2021-10-21 14:24:24 +08:00
server.ts
steedos-config.yml 清理 steedos-packages 2021-12-27 08:06:17 +00:00
steedos-server.ts
tsconfig.json 基于hydra 添加 oauth2 server 功能 #2570 2021-12-16 10:31:25 +08:00
yarn.lock

Steedos Accounts

Fullstack authentication and accounts-management for steedos.

Connect to mongodb

export MONGO_URL=mongodb://127.0.0.1/steedos

process.ENV

export ROOT_URL=http://127.0.0.1:4000/

Start Server at 4000

yarn
yarn start

Server apis runs on https://127.0.0.1:4000/accounts/

Debug Webapp at 3000

cd webapp
yarn
yarn start

Navigate to https://127.0.0.1:3000/ to view react webapp.

Build Webapp to 4000

cd webapp
yarn
yarn build

Build webapp to /webapps/build folder, will mount to https://127.0.0.1:4000/accounts/a/

Navigate to https://127.0.0.1:4000/ , will redirect to build webapp at https://127.0.0.1:4000/accounts/a/

密码策略

默认密码格式要求为密码必须包含字符、数字和字母并至少有一个大写字母且不能少于8位 可通过steedos-config.ym配置文件进行重写

public:
  accounts:
    password:
      policy:
        reg: ^(?![A-Z]+$)(?![a-z]+$)(?!\d+$)\S{8,}$
        regErrorMessage: 密码必须包含字母和数字且不能少于8位

功能说明

  • 此包用于提供登录及注册页面的服务端接口