サンプル・モバイル・アプリケーション・ログの表示
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が続きます。
SDK for Android Applicationsは、ユーザーのセッションを作成します。
"...
[AuthenticationServiceManager.AuthenticationAsyncTask] Authentication context status : SUCCESS
..."
アプリケーションは、SDK for Android Applicationsセッションに存在するトークンを使用して、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ボタンをクリックした場合にのみ表示されます。