diff --git a/wg-basic/oauth2.md b/wg-basic/oauth2.md
index 6543511..dcc7c58 100644
--- a/wg-basic/oauth2.md
+++ b/wg-basic/oauth2.md
@@ -2,7 +2,7 @@
title: 9.OAuth2
description: OAuth2服务端与客户端配置
published: true
-date: 2021-09-24T06:28:37.207Z
+date: 2021-09-24T06:48:53.985Z
tags: wg-basic
editor: markdown
dateCreated: 2021-09-24T06:28:37.207Z
@@ -12,8 +12,51 @@ dateCreated: 2021-09-24T06:28:37.207Z
## 依赖
+```xml
+
+ ink.wgink
+ login-oauth2-server
+ 1.0-SNAPSHOT
+
+```
+## 添加菜单
+
+添加客户端管理 `/route/oauth2client/list`
+
# OAuth2客户端
+> 注意:OAuth2客户端引入之后,无需再引入其他 login-* 模块
+{.is-warning}
+
## 依赖
+```xml
+
+ ink.wgink
+ login-oauth2-client
+ 1.0-SNAPSHOT
+
+```
+
## 配置
+
+```yaml
+# 安全
+security:
+ oauth2:
+ oauth-server: OAuth2认证服务外网地址
+ oauth-logout: ${security.oauth2.oauth-server}/logout?redirect_uri=${server.url}
+ client:
+ client-id: 由OAuth2认证端提供的ClientId
+ client-secret: 由OAuth2认证端提供的ClientSecret
+ user-authorization-uri: ${security.oauth2.oauth-server}/oauth2_client/authorize
+ access-token-uri: ${security.oauth2.oauth-server}/oauth2_client/token
+ grant-type: authorization_code
+ resource:
+ jwt:
+ key-uri: ${security.oauth2.oauth-server}/oauth2_client/token_key
+ token-info-uri: ${security.oauth2.oauth-server}/oauth2_client/check_token
+ user-info-uri: ${security.oauth2.oauth-server}/user
+ authorization:
+ check-token-access: ${security.oauth2.oauth-server}/oauth2_client/token_key
+```
\ No newline at end of file