All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.feingto.cloud.dto.oauth.TokenRequest Maven / Gradle / Ivy

There is a newer version: 2.3.5.RELEASE
Show newest version
package com.feingto.cloud.dto.oauth;

import com.feingto.cloud.domain.enums.GrantType;
import com.feingto.cloud.domain.enums.RoleType;
import com.feingto.cloud.domain.enums.SignType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 令牌模型
 *
 * @author longfei
 */
@Data
@Accessors(fluent = true)
public class TokenRequest implements Serializable {
    private static final long serialVersionUID = 2567608763938668982L;

    /**
     * 第三方类型
     */
    private SignType signType;

    /**
     * 获取令牌请求Uri
     */
    private String accessTokenUri;

    /**
     * 获取用户信息请求Uri
     */
    private String userInfoUri;

    /**
     * 令牌Token
     */
    private String accessToken;

    /**
     * 授权类型
     */
    private GrantType grantType;

    /**
     * 应用Key
     */
    private String appKey;

    /**
     * 应用密钥
     */
    private String appSecret;

    /**
     * 回调Uri
     */
    private String redirectUri;

    /**
     * 授权码临时凭据
     */
    private String code;

    /**
     * 刷新Token
     */
    private String refreshToken;

    /**
     * 用户名
     */
    private String username;

    /**
     * 用户密码
     */
    private String password;

    /**
     * 用户角色,默认USER
     */
    private RoleType role = RoleType.USER;

    /**
     * 用户姓名
     */
    private String realName;

    /**
     * 用户图像
     */
    private String avatar;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy