♻️ CAS协议完善

pull/12/MERGE
smallbun 2023-02-08 15:37:30 +08:00
parent fb1b5f9b13
commit 7e1b737473
5 changed files with 20 additions and 5 deletions

View File

@ -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();
}

View File

@ -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 {

View File

@ -66,4 +66,10 @@ public class AppCasStandardSaveConfigParam implements Serializable {
*/
@Schema(name = "客户端服务URL")
private String clientServerUrl;
/**
* serviceTicket
*/
@Schema(name = "serviceTicket过期时间")
private Integer serviceTicketExpireTime;
}

View File

@ -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;
}

View File

@ -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)">