Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
My_csdo
JustAuth
提交
cd324cc7
J
JustAuth
项目概览
My_csdo
/
JustAuth
与 Fork 源项目一致
Fork自
justauth / JustAuth
通知
1
Star
0
Fork
0
代码
文件
提交
分支
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,发现更多精彩内容 >>
提交
cd324cc7
编写于
3月 13, 2021
作者:
智布道
👁
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
🔖
Release version 1.16.0
上级
3e890f2c
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
29 addition
and
21 deletion
+29
-21
CHANGELOGS.md
CHANGELOGS.md
+7
-0
README.en-US.md
README.en-US.md
+3
-3
README.md
README.md
+3
-3
bin/version.txt
bin/version.txt
+1
-1
pom.xml
pom.xml
+1
-1
src/main/java/me/zhyd/oauth/config/JustAuthLogConfig.java
src/main/java/me/zhyd/oauth/config/JustAuthLogConfig.java
+5
-4
src/main/java/me/zhyd/oauth/enums/AuthResponseStatus.java
src/main/java/me/zhyd/oauth/enums/AuthResponseStatus.java
+3
-2
src/main/java/me/zhyd/oauth/request/AuthAliyunRequest.java
src/main/java/me/zhyd/oauth/request/AuthAliyunRequest.java
+6
-7
未找到文件。
CHANGELOGS.md
浏览文件 @
cd324cc7
## 1.15.9
### 2021/3/13
-
集成 Amazon 平台(
[
www.amazon.com
](
https://www.amazon.com
)
)的登录
-
修改
`AuthFacebookScope`
中的默认 scope,解决 justauth-demo 项目中使用 facebook 报错的问题
-
升级 facebook 的 api 到 v10.0 版本
-
优化部分代码
### 2021/1/1
-
发布 v1.15.9
...
...
README.en-US.md
浏览文件 @
cd324cc7
...
...
@@ -6,7 +6,7 @@
</p>
<p
align=
"center"
>
<a
target=
"_blank"
href=
"https://search.maven.org/search?q=JustAuth"
>
<img
src=
"https://img.shields.io/badge/Maven%20Central-1.1
5.9
-blue"
></img>
<img
src=
"https://img.shields.io/badge/Maven%20Central-1.1
6.0
-blue"
></img>
</a>
<a
target=
"_blank"
href=
"https://gitee.com/yadong.zhang/JustAuth/blob/master/LICENSE"
>
<img
src=
"https://img.shields.io/apm/l/vim-mode.svg?color=yellow"
></img>
...
...
@@ -15,7 +15,7 @@
<img
src=
"https://img.shields.io/badge/JDK-1.8+-green.svg"
></img>
</a>
<a
target=
"_blank"
href=
"https://apidoc.gitee.com/yadong.zhang/JustAuth/"
title=
"API文档"
>
<img
src=
"https://img.shields.io/badge/Api%20Docs-1.1
5.9
-orange"
></img>
<img
src=
"https://img.shields.io/badge/Api%20Docs-1.1
6.0
-orange"
></img>
</a>
<a
target=
"_blank"
href=
"https://justauth.wiki"
title=
"参考文档"
>
<img
src=
"https://img.shields.io/badge/Docs-latest-blueviolet.svg"
></img>
...
...
@@ -97,7 +97,7 @@ These artifacts are available from Maven Central:
<dependency>
<groupId>
me.zhyd.oauth
</groupId>
<artifactId>
JustAuth
</artifactId>
<version>
1.1
5.9
</version>
<version>
1.1
6.0
</version>
</dependency>
```
-
Using JustAuth
...
...
README.md
浏览文件 @
cd324cc7
...
...
@@ -6,7 +6,7 @@
</p>
<p
align=
"center"
>
<a
target=
"_blank"
href=
"https://search.maven.org/search?q=JustAuth"
>
<img
src=
"https://img.shields.io/badge/Maven%20Central-1.1
5.9
-blue"
></img>
<img
src=
"https://img.shields.io/badge/Maven%20Central-1.1
6.0
-blue"
></img>
</a>
<a
target=
"_blank"
href=
"https://gitee.com/yadong.zhang/JustAuth/blob/master/LICENSE"
>
<img
src=
"https://img.shields.io/apm/l/vim-mode.svg?color=yellow"
></img>
...
...
@@ -15,7 +15,7 @@
<img
src=
"https://img.shields.io/badge/JDK-1.8+-green.svg"
></img>
</a>
<a
target=
"_blank"
href=
"https://apidoc.gitee.com/yadong.zhang/JustAuth/"
title=
"API文档"
>
<img
src=
"https://img.shields.io/badge/Api%20Docs-1.1
5.9
-orange"
></img>
<img
src=
"https://img.shields.io/badge/Api%20Docs-1.1
6.0
-orange"
></img>
</a>
<a
target=
"_blank"
href=
"https://justauth.wiki"
title=
"参考文档"
>
<img
src=
"https://img.shields.io/badge/Docs-latest-blueviolet.svg"
></img>
...
...
@@ -107,7 +107,7 @@ JustAuth 集成了诸如:Github、Gitee、支付宝、新浪微博、微信、
<dependency>
<groupId>
me.zhyd.oauth
</groupId>
<artifactId>
JustAuth
</artifactId>
<version>
1.1
5.9
</version>
<version>
1.1
6.0
</version>
</dependency>
```
-
调用api
...
...
bin/version.txt
浏览文件 @
cd324cc7
1.1
5.9
1.1
6.0
pom.xml
浏览文件 @
cd324cc7
...
...
@@ -6,7 +6,7 @@
<groupId>
me.zhyd.oauth
</groupId>
<artifactId>
JustAuth
</artifactId>
<version>
1.1
5.9
</version>
<version>
1.1
6.0
</version>
<name>
JustAuth
</name>
<url>
https://gitee.com/yadong.zhang/JustAuth
</url>
...
...
src/main/java/me/zhyd/oauth/config/JustAuthLogConfig.java
浏览文件 @
cd324cc7
...
...
@@ -4,30 +4,31 @@ import me.zhyd.oauth.log.Log;
/**
* JustAuth 日志配置类
*
* @author HeJin
* @date 2021/1/9 20:28
*/
public
class
JustAuthLogConfig
{
/**
* 设置日志级别
*
* @param level 日志级别
*/
public
static
void
setLevel
(
Log
.
Level
level
){
public
static
void
setLevel
(
Log
.
Level
level
)
{
Log
.
Config
.
level
=
level
;
}
/**
* 关闭日志
*/
public
static
void
disable
(){
public
static
void
disable
()
{
Log
.
Config
.
enable
=
false
;
}
/**
* 开启日志
*/
public
static
void
enable
(){
public
static
void
enable
()
{
Log
.
Config
.
enable
=
true
;
}
}
src/main/java/me/zhyd/oauth/enums/AuthResponseStatus.java
浏览文件 @
cd324cc7
...
...
@@ -28,9 +28,10 @@ public enum AuthResponseStatus {
ILLEGAL_CODE
(
5008
,
"Illegal code"
),
ILLEGAL_STATUS
(
5009
,
"Illegal state"
),
REQUIRED_REFRESH_TOKEN
(
5010
,
"The refresh token is required; it must not be null"
),
ILLEGAL_TOKEN
(
5011
,
"Invalid token"
),
;
private
int
code
;
private
String
msg
;
private
final
int
code
;
private
final
String
msg
;
}
src/main/java/me/zhyd/oauth/request/AuthAliyunRequest.java
浏览文件 @
cd324cc7
...
...
@@ -8,7 +8,6 @@ import me.zhyd.oauth.enums.AuthUserGender;
import
me.zhyd.oauth.model.AuthCallback
;
import
me.zhyd.oauth.model.AuthToken
;
import
me.zhyd.oauth.model.AuthUser
;
import
me.zhyd.oauth.utils.UrlBuilder
;
/**
* 阿里云登录
...
...
@@ -31,12 +30,12 @@ public class AuthAliyunRequest extends AuthDefaultRequest {
String
response
=
doPostAuthorizationCode
(
authCallback
.
getCode
());
JSONObject
accessTokenObject
=
JSONObject
.
parseObject
(
response
);
return
AuthToken
.
builder
()
.
accessToken
(
accessTokenObject
.
getString
(
"access_token"
))
.
expireIn
(
accessTokenObject
.
getIntValue
(
"expires_in"
))
.
tokenType
(
accessTokenObject
.
getString
(
"token_type"
))
.
idToken
(
accessTokenObject
.
getString
(
"id_token"
))
.
refreshToken
(
accessTokenObject
.
getString
(
"refresh_token"
))
.
build
();
.
accessToken
(
accessTokenObject
.
getString
(
"access_token"
))
.
expireIn
(
accessTokenObject
.
getIntValue
(
"expires_in"
))
.
tokenType
(
accessTokenObject
.
getString
(
"token_type"
))
.
idToken
(
accessTokenObject
.
getString
(
"id_token"
))
.
refreshToken
(
accessTokenObject
.
getString
(
"refresh_token"
))
.
build
();
}
@Override
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录