Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MaxKey单点登录官方(MaxKeyTop)
MaxKey
提交
fdfcf44c
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 搜索 >>
提交
fdfcf44c
编写于
2月 16, 2022
作者:
M
MaxKey
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Metadatas
上级
370bb8b2
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
51 addition
and
3 deletion
+51
-3
maxkey-core/src/main/java/org/maxkey/web/MetadataEndpoint.java
...y-core/src/main/java/org/maxkey/web/MetadataEndpoint.java
+48
-0
maxkey-protocols/maxkey-protocol-jwt/src/main/java/org/maxkey/authz/token/endpoint/JwtAuthorizeEndpoint.java
...org/maxkey/authz/token/endpoint/JwtAuthorizeEndpoint.java
+1
-1
maxkey-protocols/maxkey-protocol-saml-2.0/src/main/java/org/maxkey/authz/saml20/metadata/endpoint/SamlMetadataEndpoint.java
.../authz/saml20/metadata/endpoint/SamlMetadataEndpoint.java
+2
-2
未找到文件。
maxkey-core/src/main/java/org/maxkey/web/MetadataEndpoint.java
0 → 100644
浏览文件 @
fdfcf44c
package
org.maxkey.web
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
org.apache.commons.lang.SystemUtils
;
import
org.joda.time.DateTime
;
import
org.maxkey.constants.ContentType
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.ResponseBody
;
@Controller
public
class
MetadataEndpoint
{
@RequestMapping
(
value
=
"/metadata/version"
,
produces
=
ContentType
.
TEXT_PLAIN_UTF8
,
method
={
RequestMethod
.
GET
})
@ResponseBody
public
String
metadata
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
StringBuffer
version
=
new
StringBuffer
(
"---------------------------------------------------------------------------------\n"
);
version
.
append
(
"+ MaxKey \n"
);
version
.
append
(
"+ Single Sign On ( SSO ) \n"
);
version
.
append
(
"+ Version "
);
version
.
append
(
WebContext
.
properties
.
getProperty
(
"application.formatted-version"
)+
"\n"
);
version
.
append
(
"+\n"
);
version
.
append
(
String
.
format
(
"+ %sCopyright 2018 - %s https://www.maxkey.top/\n"
,
(
char
)
0xA9
,
new
DateTime
().
getYear
()
));
version
.
append
(
"+ Licensed under the Apache License, Version 2.0 \n"
);
version
.
append
(
"---------------------------------------------------------------------------------\n"
);
version
.
append
(
"+ JAVA \n"
);
version
.
append
(
String
.
format
(
"+ %s java version %s, class %s\n"
,
SystemUtils
.
JAVA_VENDOR
,
SystemUtils
.
JAVA_VERSION
,
SystemUtils
.
JAVA_CLASS_VERSION
));
version
.
append
(
String
.
format
(
"+ %s (build %s, %s)\n"
,
SystemUtils
.
JAVA_VM_NAME
,
SystemUtils
.
JAVA_VM_VERSION
,
SystemUtils
.
JAVA_VM_INFO
));
version
.
append
(
"---------------------------------------------------------------------------------\n"
);
return
version
.
toString
();
}
}
maxkey-protocols/maxkey-protocol-jwt/src/main/java/org/maxkey/authz/token/endpoint/JwtAuthorizeEndpoint.java
浏览文件 @
fdfcf44c
...
...
@@ -155,7 +155,7 @@ public class JwtAuthorizeEndpoint extends AuthorizeBaseEndpoint{
jwkSetString
=
jwkSetString
+
","
+
jwtDetails
.
getAlgorithmKey
();
}
}
JWKSetKeyStore
jwkSetKeyStore
=
new
JWKSetKeyStore
(
"{\"keys\": ["
+
jwkSetString
+
"]}"
);
return
PrettyFactory
.
getJsonPretty
().
format
(
...
...
maxkey-protocols/maxkey-protocol-saml-2.0/src/main/java/org/maxkey/authz/saml20/metadata/endpoint/MetadataEndpoint.java
→
maxkey-protocols/maxkey-protocol-saml-2.0/src/main/java/org/maxkey/authz/saml20/metadata/endpoint/
Saml
MetadataEndpoint.java
浏览文件 @
fdfcf44c
...
...
@@ -57,9 +57,9 @@ import io.swagger.v3.oas.annotations.tags.Tag;
@Tag
(
name
=
"2-2-SAML v2.0 API文档模块"
)
@Controller
@RequestMapping
(
value
=
{
"/metadata/saml20/"
})
public
class
MetadataEndpoint
{
public
class
Saml
MetadataEndpoint
{
private
final
static
Logger
logger
=
LoggerFactory
.
getLogger
(
MetadataEndpoint
.
class
);
.
getLogger
(
Saml
MetadataEndpoint
.
class
);
@Autowired
@Qualifier
(
"keyStoreLoader"
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录