Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
justauth
JustAuth
提交
6439058b
J
JustAuth
项目概览
justauth
/
JustAuth
12 个月 前同步成功
通知
361
Star
15209
Fork
2709
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
JustAuth
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6439058b
编写于
1月 07, 2020
作者:
智布道
👁
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
📝
更新文档
上级
2a9d8e81
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
22 addition
and
14 deletion
+22
-14
docs/oauth/alipay.md
docs/oauth/alipay.md
+3
-2
docs/oauth/gitee.md
docs/oauth/gitee.md
+3
-2
docs/oauth/github.md
docs/oauth/github.md
+3
-2
docs/oauth/kujiale.md
docs/oauth/kujiale.md
+3
-2
docs/oauth/qq.md
docs/oauth/qq.md
+3
-2
docs/oauth/wechat_open.md
docs/oauth/wechat_open.md
+3
-2
docs/oauth/weibo.md
docs/oauth/weibo.md
+4
-2
未找到文件。
docs/oauth/alipay.md
浏览文件 @
6439058b
...
...
@@ -122,6 +122,7 @@ String authorizeUrl = authRequest.authorize(AuthStateUtils.createState());
```
java
import
me.zhyd.oauth.config.AuthConfig
;
import
me.zhyd.oauth.request.AuthAlipayRequest
;
import
me.zhyd.oauth.model.AuthCallback
;
import
me.zhyd.oauth.request.AuthRequest
;
import
me.zhyd.oauth.utils.AuthStateUtils
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
...
@@ -143,9 +144,9 @@ public class RestAuthController {
}
@RequestMapping
(
"/callback"
)
public
Object
login
(
String
code
)
{
public
Object
login
(
AuthCallback
callback
)
{
AuthRequest
authRequest
=
getAuthRequest
();
return
authRequest
.
login
(
c
ode
);
return
authRequest
.
login
(
c
allback
);
}
private
AuthRequest
getAuthRequest
()
{
...
...
docs/oauth/gitee.md
浏览文件 @
6439058b
...
...
@@ -65,6 +65,7 @@ String authorizeUrl = authRequest.authorize(AuthStateUtils.createState());
```
java
import
me.zhyd.oauth.config.AuthConfig
;
import
me.zhyd.oauth.request.AuthGiteeRequest
;
import
me.zhyd.oauth.model.AuthCallback
;
import
me.zhyd.oauth.request.AuthRequest
;
import
me.zhyd.oauth.utils.AuthStateUtils
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
...
@@ -86,9 +87,9 @@ public class RestAuthController {
}
@RequestMapping
(
"/callback"
)
public
Object
login
(
String
code
)
{
public
Object
login
(
AuthCallback
callback
)
{
AuthRequest
authRequest
=
getAuthRequest
();
return
authRequest
.
login
(
c
ode
);
return
authRequest
.
login
(
c
allback
);
}
private
AuthRequest
getAuthRequest
()
{
...
...
docs/oauth/github.md
浏览文件 @
6439058b
...
...
@@ -62,6 +62,7 @@ String authorizeUrl = authRequest.authorize(AuthStateUtils.createState());
```
java
import
me.zhyd.oauth.config.AuthConfig
;
import
me.zhyd.oauth.request.AuthGithubRequest
;
import
me.zhyd.oauth.model.AuthCallback
;
import
me.zhyd.oauth.request.AuthRequest
;
import
me.zhyd.oauth.utils.AuthStateUtils
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
...
@@ -83,9 +84,9 @@ public class RestAuthController {
}
@RequestMapping
(
"/callback"
)
public
Object
login
(
String
code
)
{
public
Object
login
(
AuthCallback
callback
)
{
AuthRequest
authRequest
=
getAuthRequest
();
return
authRequest
.
login
(
c
ode
);
return
authRequest
.
login
(
c
allback
);
}
private
AuthRequest
getAuthRequest
()
{
...
...
docs/oauth/kujiale.md
浏览文件 @
6439058b
...
...
@@ -81,6 +81,7 @@ String authorizeUrl = authRequest.authorize(String state, String scopeStr);
```
java
import
me.zhyd.oauth.config.AuthConfig
;
import
me.zhyd.oauth.request.AuthKujialeRequest
;
import
me.zhyd.oauth.model.AuthCallback
;
import
me.zhyd.oauth.request.AuthRequest
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
@@ -101,10 +102,10 @@ public class RestAuthController {
}
@RequestMapping
(
"/callback"
)
public
Object
login
(
String
code
,
String
state
)
{
public
Object
login
(
AuthCallback
callback
)
{
AuthRequest
authRequest
=
getAuthRequest
();
//此处如果对安全性有要求,请校验state参数
return
authRequest
.
login
(
c
ode
);
return
authRequest
.
login
(
c
allback
);
}
private
AuthRequest
getAuthRequest
()
{
...
...
docs/oauth/qq.md
浏览文件 @
6439058b
...
...
@@ -55,6 +55,7 @@ String authorizeUrl = authRequest.authorize(AuthStateUtils.createState());
```
java
import
me.zhyd.oauth.config.AuthConfig
;
import
me.zhyd.oauth.request.AuthQqRequest
;
import
me.zhyd.oauth.model.AuthCallback
;
import
me.zhyd.oauth.request.AuthRequest
;
import
me.zhyd.oauth.utils.AuthStateUtils
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
...
@@ -76,9 +77,9 @@ public class RestAuthController {
}
@RequestMapping
(
"/callback"
)
public
Object
login
(
String
code
)
{
public
Object
login
(
AuthCallback
callback
)
{
AuthRequest
authRequest
=
getAuthRequest
();
return
authRequest
.
login
(
c
ode
);
return
authRequest
.
login
(
c
allback
);
}
private
AuthRequest
getAuthRequest
()
{
...
...
docs/oauth/wechat_open.md
浏览文件 @
6439058b
...
...
@@ -80,6 +80,7 @@ String authorizeUrl = authRequest.authorize(AuthStateUtils.createState());
```
java
import
me.zhyd.oauth.config.AuthConfig
;
import
me.zhyd.oauth.request.AuthWeChatOpenRequest
;
import
me.zhyd.oauth.model.AuthCallback
;
import
me.zhyd.oauth.request.AuthRequest
;
import
me.zhyd.oauth.utils.AuthStateUtils
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
...
@@ -101,9 +102,9 @@ public class RestAuthController {
}
@RequestMapping
(
"/callback"
)
public
Object
login
(
String
code
)
{
public
Object
login
(
AuthCallback
callback
)
{
AuthRequest
authRequest
=
getAuthRequest
();
return
authRequest
.
login
(
c
ode
);
return
authRequest
.
login
(
c
allback
);
}
private
AuthRequest
getAuthRequest
()
{
...
...
docs/oauth/weibo.md
浏览文件 @
6439058b
...
...
@@ -64,6 +64,8 @@ String authorizeUrl = authRequest.authorize(AuthStateUtils.createState());
```
java
import
me.zhyd.oauth.config.AuthConfig
;
import
me.zhyd.oauth.request.AuthWeiboRequest
;
import
me.zhyd.oauth.model.AuthCallback
;
import
me.zhyd.oauth.model.AuthToken
;
import
me.zhyd.oauth.request.AuthRequest
;
import
me.zhyd.oauth.utils.AuthStateUtils
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
...
@@ -85,9 +87,9 @@ public class RestAuthController {
}
@RequestMapping
(
"/callback"
)
public
Object
login
(
String
code
)
{
public
Object
login
(
AuthCallback
callback
)
{
AuthRequest
authRequest
=
getAuthRequest
();
return
authRequest
.
login
(
c
ode
);
return
authRequest
.
login
(
c
allback
);
}
@RequestMapping
(
"/revoke/{token}"
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录