Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
yujianwangzivayy
MaxKey
提交
57c99080
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,发现更多精彩内容 >>
提交
57c99080
编写于
6月 13, 2020
作者:
MaxKey单点登录官方
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
SCIM Controllers
上级
439c8013
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
119 addition
and
0 deletion
+119
-0
maxkey-identitys/maxkey-identity-scim/src/main/java/org/maxkey/identity/scim/controller/GroupController.java
.../org/maxkey/identity/scim/controller/GroupController.java
+5
-0
maxkey-identitys/maxkey-identity-scim/src/main/java/org/maxkey/identity/scim/controller/ServiceProviderConfigController.java
...tity/scim/controller/ServiceProviderConfigController.java
+109
-0
maxkey-identitys/maxkey-identity-scim/src/main/java/org/maxkey/identity/scim/controller/UserController.java
...a/org/maxkey/identity/scim/controller/UserController.java
+5
-0
未找到文件。
maxkey-identitys/maxkey-identity-scim/src/main/java/org/maxkey/identity/scim/controller/GroupController.java
0 → 100644
浏览文件 @
57c99080
package
org.maxkey.identity.scim.controller
;
public
class
GroupController
{
}
maxkey-identitys/maxkey-identity-scim/src/main/java/org/maxkey/identity/scim/controller/ServiceProviderConfigController.java
0 → 100644
浏览文件 @
57c99080
package
org.maxkey.identity.scim.controller
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.HashSet
;
import
java.util.Set
;
@RestController
@RequestMapping
(
value
=
"/ServiceProviderConfig"
)
public
class
ServiceProviderConfigController
{
public
static
final
int
MAX_RESULTS
=
100
;
@RequestMapping
public
ServiceProviderConfig
getConfig
()
{
return
ServiceProviderConfig
.
INSTANCE
;
}
@JsonInclude
(
JsonInclude
.
Include
.
NON_EMPTY
)
public
static
final
class
ServiceProviderConfig
{
public
static
final
ServiceProviderConfig
INSTANCE
=
new
ServiceProviderConfig
();
public
static
final
String
SCHEMA
=
"urn:ietf:params:scim:schemas:core:2.0:ServiceProviderConfig"
;
public
final
Supported
patch
=
new
Supported
(
false
);
public
final
Supported
bulk
=
new
BulkSupported
(
false
);
public
final
Supported
filter
=
new
FilterSupported
(
true
,
MAX_RESULTS
);
public
final
Supported
changePassword
=
new
Supported
(
false
);
public
final
Supported
sort
=
new
Supported
(
true
);
public
final
Supported
etag
=
new
Supported
(
false
);
public
final
Supported
xmlDataFormat
=
new
Supported
(
false
);
public
final
AuthenticationSchemes
authenticationSchemes
=
new
AuthenticationSchemes
(
new
AuthenticationSchemes
.
AuthenticationScheme
(
"Oauth2 Bearer"
,
"OAuth2 Bearer access token is used for authorization."
,
"http://tools.ietf.org/html/rfc6749"
,
"http://oauth.net/2/"
));
public
Set
<
String
>
schemas
=
new
HashSet
<>();
private
ServiceProviderConfig
()
{
schemas
.
add
(
SCHEMA
);
}
@JsonInclude
(
JsonInclude
.
Include
.
NON_EMPTY
)
public
static
class
Schemas
{
public
final
Set
<
String
>
schemas
=
new
HashSet
<>();
public
Schemas
(
String
coreSchema
)
{
schemas
.
add
(
coreSchema
);
}
}
@JsonInclude
(
JsonInclude
.
Include
.
NON_EMPTY
)
public
static
class
Supported
{
public
final
boolean
supported
;
public
Supported
(
boolean
b
)
{
supported
=
b
;
}
}
@JsonInclude
(
JsonInclude
.
Include
.
NON_EMPTY
)
public
static
class
FilterSupported
extends
Supported
{
public
final
Integer
maxResults
;
public
FilterSupported
(
boolean
b
,
Integer
maxResults
)
{
super
(
b
);
this
.
maxResults
=
maxResults
;
}
}
@JsonInclude
(
JsonInclude
.
Include
.
NON_EMPTY
)
public
static
class
BulkSupported
extends
Supported
{
public
final
Integer
maxOperations
;
public
final
Integer
maxPayloadSize
;
public
BulkSupported
(
boolean
b
)
{
super
(
b
);
this
.
maxOperations
=
null
;
this
.
maxPayloadSize
=
null
;
}
}
@JsonInclude
(
JsonInclude
.
Include
.
NON_EMPTY
)
static
class
AuthenticationSchemes
{
public
AuthenticationScheme
[]
authenticationSchemes
;
public
AuthenticationSchemes
(
AuthenticationScheme
...
authenticationScheme
)
{
this
.
authenticationSchemes
=
authenticationScheme
;
}
@JsonInclude
(
JsonInclude
.
Include
.
NON_EMPTY
)
public
static
class
AuthenticationScheme
{
public
final
String
name
;
public
final
String
description
;
public
final
String
specUrl
;
public
final
String
documentationUrl
;
AuthenticationScheme
(
String
name
,
String
description
,
String
specUrl
,
String
documentationUrl
)
{
this
.
name
=
name
;
this
.
description
=
description
;
this
.
specUrl
=
specUrl
;
this
.
documentationUrl
=
documentationUrl
;
}
}
}
}
}
\ No newline at end of file
maxkey-identitys/maxkey-identity-scim/src/main/java/org/maxkey/identity/scim/controller/UserController.java
0 → 100644
浏览文件 @
57c99080
package
org.maxkey.identity.scim.controller
;
public
class
UserController
{
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录