class AuthCodeClient
OAuth 2.0 Spec 의 authorization code 를 발급받기 위해 사용되는 클라이언트.
<init> |
OAuth 2.0 Spec 의 authorization code 를 발급받기 위해 사용되는 클라이언트. AuthCodeClient(authApiClient: AuthApiClient = AuthApiClient.instance, intentResolveClient: IntentResolveClient = IntentResolveClient.instance) |
authorizeWithKakaoAccount |
웹 브라우저(CustomTabs)에 있는 카카오계 cookie 로 인증하여 authorization code 를 발급 받습니다. fun authorizeWithKakaoAccount(context: Context, channelPublicIds: List<String>? = null, serviceTerms: List<String>? = null, autoLogin: Boolean? = null, redirectUri: String = "kakao${KakaoSdk.applicationContextInfo.appKey}://oauth", clientId: String = KakaoSdk.applicationContextInfo.appKey, kaHeader: String = KakaoSdk.applicationContextInfo.kaHeader, callback: (code: String?, error: Throwable?) -> Unit): Unit |
authorizeWithKakaoTalk |
카카오톡 간편로그인으로 사용자를 인증하고 authorization code 를 발급 받습니다. fun authorizeWithKakaoTalk(context: Context, requestCode: Int = DEFAULT_REQUEST_CODE, channelPublicIds: List<String>? = null, serviceTerms: List<String>? = null, autoLogin: Boolean? = null, redirectUri: String = "kakao${KakaoSdk.applicationContextInfo.appKey}://oauth", clientId: String = KakaoSdk.applicationContextInfo.appKey, kaHeader: String = KakaoSdk.applicationContextInfo.kaHeader, callback: (code: String?, error: Throwable?) -> Unit): Unit |
authorizeWithNewScopes |
현재 로그인된 사용자에게 아직 동의받지 못한 개인정보,접근권한 동의항목에 대하여 동의를 요청하고 authorization code 를 발급 받습니다. fun authorizeWithNewScopes(context: Context, scopes: List<String>, channelPublicIds: List<String>? = null, serviceTerms: List<String>? = null, autoLogin: Boolean? = null, redirectUri: String = "kakao${KakaoSdk.applicationContextInfo.appKey}://oauth", clientId: String = KakaoSdk.applicationContextInfo.appKey, kaHeader: String = KakaoSdk.applicationContextInfo.kaHeader, callback: (code: String?, error: Throwable?) -> Unit): Unit |
isKakaoTalkLoginAvailable |
카카오톡 간편로그인 가능 여부(설치 여부)를 검사합니다. fun isKakaoTalkLoginAvailable(context: Context): Boolean |
DEFAULT_REQUEST_CODE |
카카오톡 간편로그인 startActivity 에서 사용되는 requestCode 기본 값 const val DEFAULT_REQUEST_CODE: Int |
instance |
간편한 API 호출을 위해 기본 제공되는 singleton 객체 val instance: AuthCodeClient |
rx |
Reactive-X 를 위한 AuthCodeClient singleton 객체 val AuthCodeClient.Companion.rx: RxAuthCodeClient |