https://github.com/steedos/steedos-oidc-server
https://github.com/steedos/steedos-oidc-server
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/steedos/steedos-oidc-server
- Owner: steedos
- Created: 2024-07-17T08:31:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-31T03:50:18.000Z (about 1 year ago)
- Last Synced: 2025-01-12T14:28:12.638Z (9 months ago)
- Language: JavaScript
- Size: 143 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Support: support/account_api.js
Awesome Lists containing this project
README
# steedos-oidc-server
启动项目需要执行以下几步配置:
## 配置环境变量
```markdown
# 端口
PORT=3000
# 服务地址
ISSUER=http://localhost:3000
# 数据库配置
MONGODB_URI=mongodb://127.0.0.1:27017/oidc-provider
# 正式环境production、开发环境development
NODE_ENV=production
# 是否调试模式
DEBUG=false
# steedos 访问地址
STEEDOS_ROOT_URL=
# jwt加密,用于接口认证
STEEDOS_OIDC_SERVER_JWT_SECRET=
```## 配置configuration.json
自定义oidc配置如clients属性等,需在根目录下新建 `configuration.json` 文件,结构如下:
```json
{
"clients": [
{
"client_id": "oidc_client",
"client_secret": "a_different_secret",
"grant_types": [
"authorization_code"
],
"response_types": [
"code"
],
"redirect_uris": [
"http://localhost:3001/cb"
]
}
],
}
```参考文档 https://github.com/panva/node-oidc-provider/blob/main/docs/README.md
## 启动项目
```markdown
node index.js
```