mirror of https://gitee.com/topiam/eiam
♻️ CAS协议完善
parent
fb1b5f9b13
commit
7e1b737473
|
@ -116,6 +116,7 @@ public class CasStandardApplicationServiceImpl extends AbstractCasApplicationSer
|
|||
AppCasConfigEntity entity = cas.get();
|
||||
entity.setClientServiceUrl(model.getClientServerUrl());
|
||||
entity.setUserIdentityType(model.getUserIdentityType());
|
||||
entity.setServiceTicketExpireTime(model.getServiceTicketExpireTime());
|
||||
appCasConfigRepository.save(entity);
|
||||
|
||||
}
|
||||
|
@ -229,6 +230,7 @@ public class CasStandardApplicationServiceImpl extends AbstractCasApplicationSer
|
|||
AppCasConfigEntity casEntity = new AppCasConfigEntity();
|
||||
casEntity.setAppId(appEntity.getId());
|
||||
casEntity.setUserIdentityType(CasUserIdentityType.USER_USERNAME);
|
||||
casEntity.setServiceTicketExpireTime(30);
|
||||
appCasConfigRepository.save(casEntity);
|
||||
return appEntity.getId().toString();
|
||||
}
|
||||
|
|
|
@ -25,11 +25,11 @@ import lombok.Data;
|
|||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
/**
|
||||
* 协议端点域
|
||||
*
|
||||
* @author TopIAM
|
||||
* Created by support@topiam.cn on 2022/6/4 23:37
|
||||
*/
|
||||
* 协议端点域
|
||||
*
|
||||
* @author TopIAM
|
||||
* Created by support@topiam.cn on 2022/6/4 23:37
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "协议端点")
|
||||
public class AppCasProtocolEndpoint implements Serializable {
|
||||
|
|
|
@ -66,4 +66,10 @@ public class AppCasStandardSaveConfigParam implements Serializable {
|
|||
*/
|
||||
@Schema(name = "客户端服务URL")
|
||||
private String clientServerUrl;
|
||||
|
||||
/**
|
||||
* serviceTicket过期时间
|
||||
*/
|
||||
@Schema(name = "serviceTicket过期时间")
|
||||
private Integer serviceTicketExpireTime;
|
||||
}
|
||||
|
|
|
@ -65,4 +65,10 @@ public class AppCasConfigEntity extends BaseEntity<Long> {
|
|||
@Column(name = "client_service_url")
|
||||
private String clientServiceUrl;
|
||||
|
||||
/**
|
||||
* serviceTicket 过期时间(秒)
|
||||
*/
|
||||
@Column(name = "service_ticket_expire_time")
|
||||
private Integer serviceTicketExpireTime;
|
||||
|
||||
}
|
||||
|
|
|
@ -479,6 +479,7 @@
|
|||
</column>
|
||||
<column name="user_identity_type" remarks="CAS用户身份标识" type="VARCHAR(20)"/>
|
||||
<column name="client_service_url" remarks="客户端服务URL地址" type="TEXT"/>
|
||||
<column name="service_ticket_expire_time" remarks="serviceTicket 过期时间(秒)" type="int"/>
|
||||
<column name="custom_response_attribute" remarks="CAS自定义校验响应" type="JSON"/>
|
||||
<column name="additional_config" remarks="额外配置" type="JSON"/>
|
||||
<column name="create_by" remarks="创建者" type="VARCHAR(64)">
|
||||
|
|
Loading…
Reference in New Issue