SSO callback response DTO with login or bind token for Feishu integration.
// Source: https://github.com/mateaix/mateclaw | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package vip.mate.auth.sso;
import lombok.AllArgsConstructor;
import lombok.Data;
import vip.mate.auth.model.LoginResponse;
/**
* SSO 回调响应。两种互斥形态由 {@code bindRequired} 区分:
* <ul>
* <li>{@code bindRequired=false}: 登录成功, {@code loginResponse} 携带 JWT</li>
* <li>{@code bindRequired=true}: link-only 模式未绑定, {@code bindToken} 供前端引导绑定</li>
* </ul>
*
* <p>替代了原先用 {@code R.fail(200, Map.toString())} 传递绑定信号的 hack。
*
* @author MateClaw Team
*/
@Data
@AllArgsConstructor
public class SsoCallbackResponse {
/** link-only 模式下未绑定时为 true */
private boolean bindRequired;
/** 登录成功
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key