在soft Apereo中-CAS(版本5.3.8)服务器在身份验证后返回空用户的配置文件。授予类型-密码
来自服务器的按摩
{
"attributes": {},
"id": "clientid"
}
服务配置
{
"@class" : "org.apereo.cas.support.oauth.services.OAuthRegisteredService",
"clientId": "xxx",
"clientSecret": "xxx",
"name" : "OAuthService",
"generateRefreshToken" : true,
"jsonFormat" : true,
"id" : 100,
"attributeReleasePolicy" : {
"@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy"
}
}
MongoDB中的属性:
名字
姓氏
电子邮件
日志文件中的条目
WHO: audit:unknown
WHAT: [id=clientid,client_id=<null>,service=<null>,scopes=[],attributes={}]
ACTION: OAUTH2_USER_PROFILE_DATA_CREATED
APPLICATION: CAS
WHEN: Thu Apr 25 12:02:29 GMT 2019
CLIENT IP ADDRESS: 172.17.0.1
SERVER IP ADDRESS: 172.17.0.2
=============================================================
>
2019-04-25 12:02:30,065 DEBUG [org.apereo.cas.support.oauth.web.views.OAuth20DefaultUserProfileViewRenderer] - <Final user profile is [
{
"attributes":{},
"id": "clientid"
}]>