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

com.haoxuer.discover.user.oauth.api.OauthHandler Maven / Gradle / Ivy

There is a newer version: 3.3.18-20230117
Show newest version
package com.haoxuer.discover.user.oauth.api;

import com.haoxuer.discover.user.oauth.domain.OauthResponse;
import com.haoxuer.discover.user.oauth.domain.TokenResponse;

/**
 * oauth登陆处理类
 * 

* Created by ada on 2017/7/20. */ public interface OauthHandler { void setKey(String key); void setSecret(String secret); /** * 通过token获取用户资料 * * @param access_token * @param openid * @return */ OauthResponse login(String access_token, String openid); /** * 通过code换取令牌 * * @param code * @return */ TokenResponse getToken(String code); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy