package com.tiesheng.login.config;

import com.tiesheng.login.config.token.bean.TokenBean;
import org.springframework.context.annotation.Configuration;

import javax.servlet.http.HttpServletResponse;

/**
 * @author hao
 */
@Configuration
public interface TieshengLoginConfigurer {

    /**
     * 执行登录
     *
     * @return
     */
    TokenBean doLogin(String appId, String uniqueId, String platfrom, String info);


    /**
     * 授权登录回调
     *
     * @param tokenBean
     */
    void onLoginRedirect(TokenBean bean, String extra, HttpServletResponse response);


}
