Skip to content

Instantly share code, notes, and snippets.

@iperdomo
Created October 20, 2014 16:43
Show Gist options
  • Save iperdomo/45ce4045da1547a9675c to your computer and use it in GitHub Desktop.
Save iperdomo/45ce4045da1547a9675c to your computer and use it in GitHub Desktop.
adb.log using JBoss Keycloak and OIDC Android sample
D/Authenticator(22923): addAccount called with accountType com.lnikkila.oidcsample.account, authTokenType com.lnikkila.oidcsample.TOKEN_TYPE_ID.
D/Authenticator(22923): Created new intent with authorisation URL 'https://login.akvotest.org/auth/realms/akvo/tokens/login?client_id=foobar&redirect_uri=app://oidcsample.lnikkila.com&response_type=code&scope=openid%20profile%20offline_access&prompt=login&display=touch'.
I/ActivityManager( 2189): START u0 {cmp=com.lnikkila.oidcsample/.oidc.authenticator.AuthenticatorActivity (has extras)} from pid 22923
D/AuthenticatorActivity(22923): Initiated activity for getting authorisation with URL 'https://login.akvotest.org/auth/realms/akvo/tokens/login?client_id=foobar&redirect_uri=app://oidcsample.lnikkila.com&response_type=code&scope=openid%20profile%20offline_access&prompt=login&display=touch'.
I/ActivityManager( 2189): Displayed com.lnikkila.oidcsample/.oidc.authenticator.AuthenticatorActivity: +122ms
D/AuthenticatorActivity(22923): WebView loading URL 'https://login.akvotest.org/auth/realms/akvo/tokens/login?client_id=foobar&redirect_uri=app://oidcsample.lnikkila.com&response_type=code&scope=openid%20profile%20offline_access&prompt=login&display=touch'.
D/TilesManager(22923): Starting TG #0, 0x52e3c8c0
D/TilesManager(22923): new EGLContext from framework: 5238a030
D/GLWebViewState(22923): Reinit shader
D/GLWebViewState(22923): Reinit transferQueue
D/Yamaha-MC1N2-Audio( 1854): yamaha_mc1n2_audio_output_stop()
D/Yamaha-MC1N2-Audio( 1854): yamaha_mc1n2_audio_route_start()
W/SettingsValues( 2432): Cannot load auto correction threshold setting. currentAutoCorrectionSetting: 0, autoCorrectionThresholdValues: [, 0.185, 0.067, 0]
D/dalvikvm( 2432): GC_CONCURRENT freed 445K, 49% free 3928K/7588K, paused 3ms+7ms, total 40ms
D/dalvikvm( 2277): GC_CONCURRENT freed 294K, 42% free 6825K/11620K, paused 3ms+4ms, total 63ms
D/dalvikvm( 2189): GC_CONCURRENT freed 1805K, 28% free 11691K/16024K, paused 1ms+21ms, total 153ms
D/Yamaha-MC1N2-Audio( 1854): yamaha_mc1n2_audio_output_start()
D/Yamaha-MC1N2-Audio( 1854): yamaha_mc1n2_audio_route_start()
D/Yamaha-MC1N2-Audio( 1854): (yamaha_mc1n2_audio_params_route_find): device = 2, direction = 0
W/IInputConnectionWrapper(22923): getTextBeforeCursor on inactive InputConnection
W/IInputConnectionWrapper(22923): getTextAfterCursor on inactive InputConnection
W/InputEventReceiver(22923): Attempted to finish an input event but the input event receiver has already been disposed.
D/Yamaha-MC1N2-Audio( 1854): yamaha_mc1n2_audio_output_stop()
D/Yamaha-MC1N2-Audio( 1854): yamaha_mc1n2_audio_route_start()
W/SettingsValues( 2432): Cannot load auto correction threshold setting. currentAutoCorrectionSetting: 0, autoCorrectionThresholdValues: [, 0.185, 0.067, 0]
D/dalvikvm( 2432): GC_CONCURRENT freed 399K, 48% free 3982K/7588K, paused 2ms+14ms, total 67ms
D/AuthenticatorActivity(22923): WebView loading URL 'https://login.akvotest.org/auth/realms/akvo/tokens/auth/request/login?scope=openid+profile+offline_access&response_type=code&redirect_uri=app%3A%2F%2Foidcsample.lnikkila.com&display=touch&prompt=login&client_id=foobar'.
D/lights ( 2189): set_light_buttons off
D/lights ( 2189): set_light_buttons on=1
D/AuthenticatorActivity(22923): WebView loading URL 'https://login.akvotest.org/auth/realms/akvo/tokens/oauth/grant'.
D/AuthenticatorActivity(22923): WebView loading URL 'app://oidcsample.lnikkila.com?code=j5o1UFtooK1CTw5hCcZX-1srOyI.NGRmZmM5YzQtOTAzNS00ZmM4LTgzNGEtNjhlN2FlZTkxMTI3'.
D/AuthenticatorActivity(22923): Got Authorization Token 'j5o1UFtooK1CTw5hCcZX-1srOyI.NGRmZmM5YzQtOTAzNS00ZmM4LTgzNGEtNjhlN2FlZTkxMTI3'.
D/AuthenticatorActivity(22923): Requesting ID token.
D/OIDCUtils(22923): Got ID Token: eyJhbGciOiJSUzI1NiJ9.eyJuYW1lIjoiVXNlciBBa3ZvIiwiZW1haWwiOiJ1c2VyQGFrdm8ub3JnIiwianRpIjoiMGNiZTQ3NTctOTBmZS00NzBmLTliODYtMjliZmQ5NjQ2NDM3IiwiZXhwIjoxNDEzODIzNTk4LCJuYmYiOjAsImlhdCI6MTQxMzgyMzI5OCwiaXNzIjoiYWt2byIsImF1ZCI6ImFrdm8iLCJzdWIiOiIwOTU5YzI1ZC01MzViLTRhYjQtYjUzMy1kNzBkM2RiNWM3NTgiLCJhenAiOiJmb29iYXIiLCJnaXZlbl9uYW1lIjoiVXNlciIsImZhbWlseV9uYW1lIjoiQWt2byIsInByZWZlcnJlZF91c2VybmFtZSI6InVzZXIiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZX0.cJ3JbZzzegBH-G2Sl1aLDd9Q0zujRwmJGT7oMxr1qxKy9lwWhFSxX3Mm852i1KSP3uyewxn0KE55fItrxjzAD755558W7_Kvu-imQSq5OluM4ahVz4mzVgGcTsRpIrC0AFSsgK9n_DzZ_4tyN6SYgf-AYEz9yV10eHuuhrohfRo
D/OIDCUtils(22923): Got Access Token: eyJhbGciOiJSUzI1NiJ9.eyJuYW1lIjoiVXNlciBBa3ZvIiwiZW1haWwiOiJ1c2VyQGFrdm8ub3JnIiwianRpIjoiODc1Y2M4ODctMDdmZS00NGYzLThjYTYtNjRjOWMwMzg1YTBlIiwiZXhwIjoxNDEzODIzNTk4LCJuYmYiOjAsImlhdCI6MTQxMzgyMzI5OCwiaXNzIjoiYWt2byIsImF1ZCI6ImFrdm8iLCJzdWIiOiIwOTU5YzI1ZC01MzViLTRhYjQtYjUzMy1kNzBkM2RiNWM3NTgiLCJhenAiOiJmb29iYXIiLCJnaXZlbl9uYW1lIjoiVXNlciIsImZhbWlseV9uYW1lIjoiQWt2byIsInByZWZlcnJlZF91c2V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OuAdymY70GLb-FjH5Yi6aiNWob5WoKXM46HcZgv_E0G64S587-glICRo2PfVobWGrHMBuow4
D/OIDCUtils(22923): clientId: foobar
D/OIDCUtils(22923): tokenString: eyJhbGciOiJSUzI1NiJ9.eyJuYW1lIjoiVXNlciBBa3ZvIiwiZW1haWwiOiJ1c2VyQGFrdm8ub3JnIiwianRpIjoiMGNiZTQ3NTctOTBmZS00NzBmLTliODYtMjliZmQ5NjQ2NDM3IiwiZXhwIjoxNDEzODIzNTk4LCJuYmYiOjAsImlhdCI6MTQxMzgyMzI5OCwiaXNzIjoiYWt2byIsImF1ZCI6ImFrdm8iLCJzdWIiOiIwOTU5YzI1ZC01MzViLTRhYjQtYjUzMy1kNzBkM2RiNWM3NTgiLCJhenAiOiJmb29iYXIiLCJnaXZlbl9uYW1lIjoiVXNlciIsImZhbWlseV9uYW1lIjoiQWt2byIsInByZWZlcnJlZF91c2VybmFtZSI6InVzZXIiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZX0.cJ3JbZzzegBH-G2Sl1aLDd9Q0zujRwmJGT7oMxr1qxKy9lwWhFSxX3Mm852i1KSP3uyewxn0KE55fItrxjzAD755558W7_Kvu-imQSq5OluM4ahVz4mzVgGcTsRpIrC0AFSsgK9n_DzZ_4tyN6SYgf-AYEz9yV10eHuuhrohfRo
D/OIDCUtils(22923): idToken: IdToken{header={"alg":"RS256"}, payload={"aud":"akvo","azp":"foobar","exp":1413823598,"iat":1413823298,"iss":"akvo","jti":"0cbe4757-90fe-470f-9b86-29bfd9646437","nbf":0,"sub":"0959c25d-535b-4ab4-b533-d70d3db5c758","name":"User Akvo","email":"[email protected]","given_name":"User","family_name":"Akvo","preferred_username":"user","email_verified":true}}
E/AuthenticatorActivity(22923): Could not get response.
W/System.err(22923): java.io.IOException: Invalid ID token returned.
W/System.err(22923): at com.lnikkila.oidcsample.oidc.OIDCUtils.requestTokens(OIDCUtils.java:123)
W/System.err(22923): at com.lnikkila.oidcsample.oidc.authenticator.AuthenticatorActivity$RequestIdTokenTask.doInBackground(AuthenticatorActivity.java:141)
W/System.err(22923): at com.lnikkila.oidcsample.oidc.authenticator.AuthenticatorActivity$RequestIdTokenTask.doInBackground(AuthenticatorActivity.java:132)
W/System.err(22923): at android.os.AsyncTask$2.call(AsyncTask.java:287)
W/System.err(22923): at java.util.concurrent.FutureTask.run(FutureTask.java:234)
W/System.err(22923): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
W/System.err(22923): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
W/System.err(22923): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
W/System.err(22923): at java.lang.Thread.run(Thread.java:856)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment