kakao-android-sdk-rx / com.kakao.sdk.auth / RxAuthCodeClient

RxAuthCodeClient

class RxAuthCodeClient

OAuth 2.0 Spec 의 authorization code 를 발급받기 위해 사용되는 클라이언트. (for Reactive-X)

Constructors

<init>

OAuth 2.0 Spec 의 authorization code 를 발급받기 위해 사용되는 클라이언트. (for Reactive-X)

RxAuthCodeClient(authApiClient: RxAuthApiClient = AuthApiClient.rx, intentResolveClient: IntentResolveClient = IntentResolveClient.instance)

Functions

authorizeWithKakaoAccount

웹 브라우저(CustomTabs)에 있는 카카오계 cookie 로 인증하여 authorization code 를 발급 받습니다.

fun authorizeWithKakaoAccount(context: Context, channelPublicIds: List<String>? = null, serviceTerms: List<String>? = null, autoLogin: Boolean? = null, clientId: String = KakaoSdk.applicationContextInfo.appKey, redirectUri: String = "kakao${KakaoSdk.applicationContextInfo.appKey}://oauth", kaHeader: String = KakaoSdk.applicationContextInfo.kaHeader): Single<String>

authorizeWithKakaoTalk

카카오톡 간편로그인으로 사용자를 인증하고 authorization code 를 발급 받습니다.

fun authorizeWithKakaoTalk(context: Context, requestCode: Int = AuthCodeClient.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): Single<String>

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): Single<String>