Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MaxKey单点登录官方(MaxKeyTop)
MaxKey
提交
af887484
MaxKey
项目概览
MaxKey单点登录官方(MaxKeyTop)
/
MaxKey
9 个月 前同步成功
通知
75
Star
3
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
MaxKey
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
af887484
编写于
2月 14, 2022
作者:
M
MaxKey
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
jwk Pretty
上级
ade64192
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
9 addition
and
7 deletion
+9
-7
maxkey-protocols/maxkey-protocol-jwt/src/main/java/org/maxkey/authz/token/endpoint/JwtAuthorizeEndpoint.java
...org/maxkey/authz/token/endpoint/JwtAuthorizeEndpoint.java
+4
-1
maxkey-protocols/maxkey-protocol-oauth-2.0/src/main/java/org/maxkey/authz/oauth2/provider/endpoint/AuthorizationEndpoint.java
...authz/oauth2/provider/endpoint/AuthorizationEndpoint.java
+3
-1
maxkey-protocols/maxkey-protocol-oauth-2.0/src/main/java/org/maxkey/authz/oauth2/provider/userinfo/endpoint/UserInfoOIDCEndpoint.java
...uth2/provider/userinfo/endpoint/UserInfoOIDCEndpoint.java
+0
-3
maxkey-webs/maxkey-web-mgt/src/main/resources/templates/views/accounts/accountsList.ftl
.../main/resources/templates/views/accounts/accountsList.ftl
+2
-2
未找到文件。
maxkey-protocols/maxkey-protocol-jwt/src/main/java/org/maxkey/authz/token/endpoint/JwtAuthorizeEndpoint.java
浏览文件 @
af887484
...
...
@@ -38,6 +38,7 @@ import org.maxkey.crypto.jose.keystore.JWKSetKeyStore;
import
org.maxkey.entity.apps.Apps
;
import
org.maxkey.entity.apps.AppsJwtDetails
;
import
org.maxkey.persistence.service.AppsJwtDetailsService
;
import
org.maxkey.pretty.PrettyFactory
;
import
org.maxkey.util.Instance
;
import
org.maxkey.web.WebConstants
;
import
org.maxkey.web.WebContext
;
...
...
@@ -154,8 +155,10 @@ public class JwtAuthorizeEndpoint extends AuthorizeBaseEndpoint{
jwkSetString
=
jwkSetString
+
","
+
jwtDetails
.
getAlgorithmKey
();
}
}
JWKSetKeyStore
jwkSetKeyStore
=
new
JWKSetKeyStore
(
"{\"keys\": ["
+
jwkSetString
+
"]}"
);
return
jwkSetKeyStore
.
getJwkSet
().
toPublicJWKSet
().
toString
();
return
PrettyFactory
.
getJsonPretty
().
format
(
jwkSetKeyStore
.
getJwkSet
().
toPublicJWKSet
().
toString
());
}
}
maxkey-protocols/maxkey-protocol-oauth-2.0/src/main/java/org/maxkey/authz/oauth2/provider/endpoint/AuthorizationEndpoint.java
浏览文件 @
af887484
...
...
@@ -46,6 +46,7 @@ import org.maxkey.crypto.jose.keystore.JWKSetKeyStore;
import
org.maxkey.util.HttpEncoder
;
import
org.maxkey.entity.apps.Apps
;
import
org.maxkey.entity.apps.oauth2.provider.ClientDetails
;
import
org.maxkey.pretty.PrettyFactory
;
import
org.maxkey.web.WebConstants
;
import
org.maxkey.web.WebContext
;
import
org.slf4j.Logger
;
...
...
@@ -309,7 +310,8 @@ public class AuthorizationEndpoint extends AbstractEndpoint {
}
JWKSetKeyStore
jwkSetKeyStore
=
new
JWKSetKeyStore
(
"{\"keys\": ["
+
jwkSetString
+
"]}"
);
return
jwkSetKeyStore
.
getJwkSet
().
toPublicJWKSet
().
toString
();
return
PrettyFactory
.
getJsonPretty
().
format
(
jwkSetKeyStore
.
getJwkSet
().
toPublicJWKSet
().
toString
());
}
// We need explicit approval from the user.
...
...
maxkey-protocols/maxkey-protocol-oauth-2.0/src/main/java/org/maxkey/authz/oauth2/provider/userinfo/endpoint/UserInfoOIDCEndpoint.java
浏览文件 @
af887484
...
...
@@ -36,7 +36,6 @@ import org.maxkey.authz.oauth2.provider.ClientDetailsService;
import
org.maxkey.authz.oauth2.provider.OAuth2Authentication
;
import
org.maxkey.authz.oauth2.provider.token.DefaultTokenServices
;
import
org.maxkey.constants.ContentType
;
import
org.maxkey.crypto.jose.keystore.JWKSetKeyStore
;
import
org.maxkey.crypto.jwt.encryption.service.impl.DefaultJwtEncryptionAndDecryptionService
;
import
org.maxkey.crypto.jwt.signer.service.impl.DefaultJwtSigningAndValidationService
;
import
org.maxkey.entity.UserInfo
;
...
...
@@ -56,9 +55,7 @@ import org.springframework.web.bind.annotation.RequestHeader;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
com.nimbusds.jose.EncryptionMethod
;
import
com.nimbusds.jose.JOSEException
;
import
com.nimbusds.jose.JWEAlgorithm
;
import
com.nimbusds.jose.JWEHeader
;
import
com.nimbusds.jose.JWEObject
;
import
com.nimbusds.jose.JWSAlgorithm
;
...
...
maxkey-webs/maxkey-web-mgt/src/main/resources/templates/views/accounts/accountsList.ftl
浏览文件 @
af887484
...
...
@@ -96,14 +96,14 @@
<tr>
<td
width=
"120px"
><
@
locale
code=
"apps.name"
/></td>
<td
width=
"360px"
>
<div
class=
"input-group
mb-3
"
style=
"float: left;vertical-align: middle;"
>
<div
class=
"input-group"
style=
"float: left;vertical-align: middle;"
>
<input
class=
"form-control d-none appId"
id=
"appId"
name=
"appId"
value=
""
type=
"text"
>
<input
class=
"form-control d-none"
id=
"parentId"
name=
"parentId"
value=
""
type=
"text"
>
<input
class=
"form-control appName"
value=
""
id=
"appName"
name=
"appName"
type=
"text"
>
<input
class=
"button btn btn-primary mr-3 window"
id=
"selectBtn"
type=
"button"
value=
"<@locale code="
button.text.select
"
/>
"
wurl="
<
@
base
/>
/apps/select"
wwidth="700"
wheight="5
0
0"
wheight="5
5
0"
target="window">
</div>
</td>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录