Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
yujianwangzivayy
MaxKey
提交
bcbd926b
MaxKey
项目概览
yujianwangzivayy
/
MaxKey
与 Fork 源项目一致
Fork自
MaxKey单点登录官方(MaxKeyTop) / MaxKey
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
MaxKey
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
bcbd926b
编写于
5月 23, 2020
作者:
MaxKey单点登录官方
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
v2.0.0RC1
v2.0.0RC1
上级
239573cd
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
10 addition
and
22 deletion
+10
-22
ReleaseNotes.txt
ReleaseNotes.txt
+1
-1
gradle.properties
gradle.properties
+1
-1
maxkey-protocols/maxkey-protocol-cas/src/main/java/org/maxkey/authz/cas/endpoint/CasAuthorizeEndpoint.java
...a/org/maxkey/authz/cas/endpoint/CasAuthorizeEndpoint.java
+1
-0
maxkey-web-manage/src/main/java/org/maxkey/web/endpoint/LoginEndpoint.java
.../src/main/java/org/maxkey/web/endpoint/LoginEndpoint.java
+1
-15
maxkey-web-manage/src/main/resources/application.properties
maxkey-web-manage/src/main/resources/application.properties
+1
-1
maxkey-web-maxkey/src/main/resources/application.properties
maxkey-web-maxkey/src/main/resources/application.properties
+1
-1
maxkey-web-maxkey/src/main/resources/spring/maxkey.xml
maxkey-web-maxkey/src/main/resources/spring/maxkey.xml
+4
-3
未找到文件。
ReleaseNotes.txt
浏览文件 @
bcbd926b
MaxKey v 1.5.0 GA
2020/**/**
MaxKey v 2.0.0 RC1
2020/**/**
*(MAXKEY-200601) RBAC 基于角色的访问控制(Role-Based Access Control )支持
*(MAXKEY-200602) 主题切换支持 黑色经典|薄荷清新|激情紫荆
*(MAXKEY-200603) 修复用户组访问权限删除问题
...
...
gradle.properties
浏览文件 @
bcbd926b
group
=
org.maxkey
version
=
1.5
.0.RELEASE
version
=
2.0
.0.RELEASE
vendor
=
https://github.com/shimingxy/MaxKey
author
=
shimingxy
#Version For use jar
...
...
maxkey-protocols/maxkey-protocol-cas/src/main/java/org/maxkey/authz/cas/endpoint/CasAuthorizeEndpoint.java
浏览文件 @
bcbd926b
...
...
@@ -80,6 +80,7 @@ public class CasAuthorizeEndpoint extends AuthorizeBaseEndpoint{
WebContext
.
setAttribute
(
CasConstants
.
PARAMETER
.
ENDPOINT_CAS_DETAILS
,
casDetails
);
WebContext
.
setAttribute
(
WebConstants
.
SINGLE_SIGN_ON_APP_ID
,
casDetails
.
getId
());
WebContext
.
setAttribute
(
AuthorizeBaseEndpoint
.
class
.
getName
(),
casDetails
);
return
WebContext
.
redirect
(
"/authz/cas/granting"
);
}
...
...
maxkey-web-manage/src/main/java/org/maxkey/web/endpoint/LoginEndpoint.java
浏览文件 @
bcbd926b
...
...
@@ -14,9 +14,6 @@ import org.slf4j.Logger;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.security.web.savedrequest.HttpSessionRequestCache
;
import
org.springframework.security.web.savedrequest.RequestCache
;
import
org.springframework.security.web.savedrequest.SavedRequest
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.CookieValue
;
import
org.springframework.web.bind.annotation.ModelAttribute
;
...
...
@@ -87,18 +84,7 @@ public class LoginEndpoint {
modelAndView
.
addObject
(
"isCaptcha"
,
applicationConfig
.
getLoginConfig
().
isCaptcha
());
modelAndView
.
addObject
(
"sessionid"
,
WebContext
.
getSession
().
getId
());
}
//save first protected url
SavedRequest
firstSavedRequest
=
(
SavedRequest
)
WebContext
.
getAttribute
(
WebConstants
.
FIRST_SAVED_REQUEST_PARAMETER
);
if
(
firstSavedRequest
==
null
){
RequestCache
requestCache
=
new
HttpSessionRequestCache
();
SavedRequest
savedRequest
=
requestCache
.
getRequest
(
request
,
response
);
if
(
savedRequest
!=
null
){
_logger
.
debug
(
"first request parameter "
+
savedRequest
.
getRedirectUrl
());
WebContext
.
setAttribute
(
WebConstants
.
FIRST_SAVED_REQUEST_PARAMETER
,
savedRequest
);
}
}
else
{
WebContext
.
setAttribute
(
WebConstants
.
SPRING_PROCESS_SAVED_REQUEST
,
firstSavedRequest
);
}
if
(
WebContext
.
isAuthenticated
()){
return
WebContext
.
redirect
(
"/main"
);
}
...
...
maxkey-web-manage/src/main/resources/application.properties
浏览文件 @
bcbd926b
...
...
@@ -2,7 +2,7 @@
#application
application.title
=
MaxKey
application.name
=
MaxKey-Mgt
application.formatted-version
=
v
1.5.0 GA
application.formatted-version
=
v
2.0.0 RC1
#server config
#server port
server.port
=
9521
...
...
maxkey-web-maxkey/src/main/resources/application.properties
浏览文件 @
bcbd926b
...
...
@@ -2,7 +2,7 @@
#application
application.title
=
MaxKey
application.name
=
MaxKey
application.formatted-version
=
v
1.5.0 GA
application.formatted-version
=
v
2.0.0 RC1
#server config
#spring.profiles.active=dev
#server port
...
...
maxkey-web-maxkey/src/main/resources/spring/maxkey.xml
浏览文件 @
bcbd926b
...
...
@@ -193,9 +193,10 @@
<mvc:mapping
path=
"/authz/tokenbased/*"
/>
<mvc:mapping
path=
"/authz/saml20/idpinit/*"
/>
<mvc:mapping
path=
"/authz/saml20/assertion"
/>
<mvc:mapping
path=
"/authz/cas/login"
/>
<mvc:mapping
path=
"/authz/cas/granting"
/>
<mvc:mapping
path=
"/oauth/v20/authorize"
/>
<mvc:mapping
path=
"/authz/cas/*"
/>
<mvc:mapping
path=
"/authz/cas/*/*"
/>
<mvc:mapping
path=
"/authz/cas/granting/*"
/>
<mvc:mapping
path=
"/oauth/v20/authorize/*"
/>
<bean
class=
"org.maxkey.web.interceptor.PermissionAdapter"
/>
</mvc:interceptor>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录