샘플 모바일 애플리케이션 로그 보기
Android 샘플 응용 프로그램은 사용자 인증에 대한 정보를 기록합니다.
로그를 보려면 Android Studio에서 창 하단에 있는 실행 탭을 누릅니다. 다운로드 섹션에서 로그 예를 다운로드할 수 있습니다.
샘플 응용 프로그램 로그는 사용자 인증 프로세스의 다음 단계를 보여줍니다.
Oracle Identity Cloud Service에 처음 문의:
"...
[OMOICMobileSecurityConfiguration] Downloading openID well known configuration from URL:...
..."
Oracle Identity Cloud Service 인증 API를 호출합니다.
"...
[OMMobileSecurityService] Authenticate API called for first time after app launch -> Removing session cookies
...
[OAuthConnectionsUtil] This is openID Configuration Use case
...
[DefaultStateTransition] getInitialState authScheme : OPENIDCONNECT10 TYPE : OAUTH20_AC_SERVICE
..."
구성된 브라우저 모드를 확인합니다.
"...
[OAuthAuthorizationCodeService] Creating Challenge for browser mode: EMBEDDED
[OAuthAuthorizationCodeService] Challenge : type : EMBEDDED_WEBVIEW_REQUIRED
.."
브라우저가 Oracle Identity Cloud Service 권한 부여 끝점을 호출합니다.
"...
[oracle.idm.mobile.auth.webview.OAuthWebViewConfigurationHandler] Loading login load URL in the webview
..."
메시지 뒤에는 Oracle Identity Cloud Service의 권한 부여 끝점 URL이 옵니다.
Oracle Identity Cloud Service는 브라우저의 사인인 페이지를 제공합니다.
"...
[oracle.idm.mobile.auth.webview.OAuthWebViewConfigurationHandler] onPageStarted:
..."
메시지 뒤에는 Oracle Identity Cloud Service의 사인인 페이지 URL이 옵니다.
사인인이 성공하면 브라우저가 닫히고 컨트롤이 응용 프로그램으로 돌아갑니다.
애플리케이션은 Oracle Identity Cloud Service에서 전송한 권한 부여 코드를 교환하기 위해 Oracle Identity Cloud Service 토큰 끝점에 연결합니다.
"...
[OAuthAuthorizationCodeService] onAuthZCode
[OAuthConnectionsUtil] getBackChannelRequestForAccessToken : grantType : AUTHORIZATION_CODE
...
[OMConnectionHandler] http method : POST
[OMConnectionHandler] http request URL
..."
마지막 메시지 뒤에는 Oracle Identity Cloud Service의 토큰 끝점 URL이 옵니다.
Android 애플리케이션용 SDK는 사용자에 대한 세션을 생성합니다.
"...
[AuthenticationServiceManager.AuthenticationAsyncTask] Authentication context status : SUCCESS
..."
애플리케이션은 Android 애플리케이션용 SDK 세션에 있는 토큰을 사용하여 Oracle Identity Cloud Service 엔드포인트에 대한 다른 REST API 호출을 수행할 수 있습니다.
"...
[OpenIDConnect10AuthenticationService] Access token(s) valid : true
[OpenIDConnect10AuthenticationService] OpenId token not expired!
...
[OAuthAuthorizationService] Method: GETrequested on URL
..."
메시지 뒤에는 Oracle Identity Cloud Service MyApps 또는 MyGroups 끝점 URL이 옵니다. 이 메시지는 애플리케이션 UI에서 MyApps 또는 MyGroups 단추를 누를 경우에만 나타납니다.