1、新增IAM对接

This commit is contained in:
2026-07-14 11:54:56 +08:00
parent 23e5e4f57c
commit 5949b9c88c
4 changed files with 435 additions and 0 deletions
@@ -0,0 +1,75 @@
/**
* BladeX Commercial License Agreement
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
* <p>
* Use of this software is governed by the Commercial License Agreement
* obtained after purchasing a license from BladeX.
* <p>
* 1. This software is for development use only under a valid license
* from BladeX.
* <p>
* 2. Redistribution of this software's source code to any third party
* without a commercial license is strictly prohibited.
* <p>
* 3. Licensees may copyright their own code but cannot use segments
* from this software for such purposes. Copyright of this software
* remains with BladeX.
* <p>
* Using this software signifies agreement to this License, and the software
* must not be used for illegal purposes.
* <p>
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
* not liable for any claims arising from secondary or illegal development.
* <p>
* Author: Chill Zhuang (bladejava@qq.com)
*/
package org.springblade.auth.props;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* IAM统一身份认证配置
*
* @author Chill
*/
@Data
@ConfigurationProperties(prefix = "iam.sso")
public class IamSsoProperties {
/**
* IAM换取Token接口地址
*/
private String tokenUrl;
/**
* IAM获取用户信息接口地址
*/
private String profileUrl;
/**
* IAM客户端ID
*/
private String clientId;
/**
* IAM客户端密钥
*/
private String clientSecret;
/**
* IAM回调地址
*/
private String redirectUri;
/**
* IAM认证头。为空时默认使用 Basic Base64(clientId:clientSecret)
*/
private String authorization;
/**
* IAM用户信息认证头。为空时默认使用 Bearer accessToken
*/
private String profileAuthorization;
}