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

RxAuthCodeClient

class RxAuthCodeClient

OAuth 2.0 Spec 의 authorization code 를 발급받기 위해 사용되는 클라이언트.

Author
kevin.kang. Created on 2018. 3. 20..

Constructors

<init>

OAuth 2.0 Spec 의 authorization code 를 발급받기 위해 사용되는 클라이언트.

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

Functions

authorize

Custom Tabs (기본 브라우저) 를 사용하여 authorization code 를 발급 받는다.

fun authorize(context: Context, plusFriendPublicIds: List<String>? = null, serviceTerms: List<String>? = null, autoLogin: Boolean? = null, clientId: String = KakaoSdk.applicationContextInfo.appKey, redirectUri: String = "kakao${KakaoSdk.applicationContextInfo.appKey}://oauth", approvalType: String = "individual"): Single<String!>!

authorizeWithNewScopes

유저의 동의항목을 업데이트할 수 있는 authorization code 를 발급받는다.

fun authorizeWithNewScopes(context: Context, scopes: List<String>, plusFriendPublicIds: List<String>? = null, serviceTerms: List<String>? = null, autoLogin: Boolean? = null, redirectUri: String = "kakao${KakaoSdk.applicationContextInfo.appKey}://oauth", clientId: String = KakaoSdk.applicationContextInfo.appKey, approvalType: String = "individual"): Single<String>

authorizeWithTalk

카카오톡 간편 로그인을 통하여 authorization code 를 발급 받는다.

fun authorizeWithTalk(context: Context, requestCode: Int, plusFriendPublicIds: List<String>? = null, serviceTerms: List<String>? = null, autoLogin: Boolean? = null, redirectUri: String = "kakao${KakaoSdk.applicationContextInfo.appKey}://oauth", clientId: String = KakaoSdk.applicationContextInfo.appKey, approvalType: String = "individual", kaHeader: String = KakaoSdk.applicationContextInfo.kaHeader): Single<String!>!