docs: update doc

This commit is contained in:
wintel
2025-04-26 16:19:44 +08:00
parent 89fe623a72
commit a42b2dcb7c

View File

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