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

authorizeWithNewScopes

@JvmOverloads 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>

현재 로그인된 사용자에게 아직 동의받지 못한 개인정보,접근권한 동의항목에 대하여 동의를 요청하고 authorization code 를 발급 받습니다.

Parameters

context - Custom Tabs start를 수행하기 위한 현재 Activity context

scopes - 추가로 동의 받고자 하는 동의항목 ID 목록. 개발자사이트 동의항목 설정 화면에서 확인하실 수 있습니다.

Return
authorization code 를 방출하는 Single 을 반환합니다. 발급 받은 authorization code 는 AuthApiClient.issueAccessToken 파라미터로 사용합니다.