🔧chore: 优化文档

This commit is contained in:
yubaolee
2025-08-18 21:59:40 +08:00
parent 04142acaaa
commit 628aa65938
2 changed files with 3 additions and 3 deletions

View File

@@ -34,6 +34,6 @@ COPY --from=build /app/publish/webapi ./webapi
# 复制 Identity 发布文件
COPY --from=build /app/publish/identity ./identity
# 启动 WebApi, Mvc, 和 Identity,就算失败也保持运行,方便查询日志
# 启动 WebApi 和 Identity,就算失败也保持运行,方便查询日志
ENTRYPOINT ["sh", "-c", "cd webapi && dotnet OpenAuth.WebApi.dll & cd identity && dotnet OpenAuth.IdentityServer.dll || tail -f /dev/null"]

View File

@@ -8,14 +8,14 @@ permalink: /core/identity/
## 前言
OpenAuth.Net支持两种登录认证方式Token认证和==自己搭建=={.tip}的OpenAuth.IdentityServer认证。
这两种方式通过配置webapi或mvc的appsettings.json可以自由切换:
这两种方式通过配置webapi的appsettings.json可以自由切换:
```json
"IdentityServerUrl": "http://localhost:12796", //IdentityServer服务器地址。如果为空则不启用OAuth认证
```
## Token认证
当我们启动OpenAuth.WebApi/Mvc如果IdentityServerUrl为空则采用普通的token认证这时不需要启动OpenAuth.Identity项目
当我们启动OpenAuth.WebApi时如果IdentityServerUrl为空则采用普通的token认证这时不需要启动OpenAuth.Identity项目
```json
"IdentityServerUrl": "", //如果为空则采用普通的token认证
```