package cn.reghao.tnb.auth.app.model.po.oauth;

import cn.reghao.jutil.jdk.web.db.BaseObject;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * OAuth 客户端信息
 *
 * @author reghao
 * @date 2023-02-20 14:59:53
 */
@NoArgsConstructor
@Setter
@Getter
public class ClientDetails extends BaseObject<Integer> {
    private String clientId;
    private String clientSecret;
    private String resourceIds;
    private String scope;
    private String authorizedGrantTypes;
    private String webServerRedirectUri;
    private String authorities;
    private String accessTokenValidity;
    private String refreshTokenValidity;
    private String additionalInformation;
    private String autoapprove;

    public ClientDetails(String clientId, String clientSecret, String resourceIds, String scope,
                         String authorizedGrantTypes, String webServerRedirectUri, String autoapprove) {
        this.clientId = clientId;
        this.clientSecret = clientSecret;
        this.resourceIds = resourceIds;
        this.scope = scope;
        this.authorizedGrantTypes = authorizedGrantTypes;
        this.webServerRedirectUri = webServerRedirectUri;
        this.autoapprove = autoapprove;
    }
}
