{"action":"closed","number":548,"pull_request":{"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/pulls/548","id":63153582,"html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-android/pull/548","diff_url":"https://github.com/AzureAD/azure-activedirectory-library-for-android/pull/548.diff","patch_url":"https://github.com/AzureAD/azure-activedirectory-library-for-android/pull/548.patch","issue_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/issues/548","number":548,"state":"closed","locked":false,"title":"Don't crash if keystore reset current records","user":{"login":"imakhalova","id":15003397,"avatar_url":"https://avatars.githubusercontent.com/u/15003397?v=3","gravatar_id":"","url":"https://api.github.com/users/imakhalova","html_url":"https://github.com/imakhalova","followers_url":"https://api.github.com/users/imakhalova/followers","following_url":"https://api.github.com/users/imakhalova/following{/other_user}","gists_url":"https://api.github.com/users/imakhalova/gists{/gist_id}","starred_url":"https://api.github.com/users/imakhalova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imakhalova/subscriptions","organizations_url":"https://api.github.com/users/imakhalova/orgs","repos_url":"https://api.github.com/users/imakhalova/repos","events_url":"https://api.github.com/users/imakhalova/events{/privacy}","received_events_url":"https://api.github.com/users/imakhalova/received_events","type":"User","site_admin":false},"body":"There is an issue in android keystore that resets keystore\r\nIssue 61989:  AndroidKeyStore deleted after changing screen lock type\r\nhttps://code.google.com/p/android/issues/detail?id=61989\r\n\r\nWe don't really have anything left as just claim that key for encryption got lost and token can't be decrypted. Force user to sign out.\r\n\r\nStack trace:\r\nFatal Exception: java.lang.RuntimeException: error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long\r\n       at com.android.org.conscrypt.NativeCrypto.ENGINE_load_private_key(NativeCrypto.java)\r\n       at com.android.org.conscrypt.OpenSSLEngine.getPrivateKeyById(OpenSSLEngine.java:66)\r\n       at android.security.AndroidKeyStore.engineGetKey(AndroidKeyStore.java:86)\r\n       at java.security.KeyStoreSpi.engineGetEntry(KeyStoreSpi.java:372)\r\n       at java.security.KeyStore.getEntry(KeyStore.java:645)\r\n       at com.microsoft.aad.adal.StorageHelper.getKeyPairFromAndroidKeyStore(Unknown Source)\r\n       at com.microsoft.aad.adal.StorageHelper.getSecretKeyFromAndroidKeyStore(Unknown Source)\r\n       at com.microsoft.aad.adal.StorageHelper.getKeyForVersion(Unknown Source)\r\n       at com.microsoft.aad.adal.StorageHelper.decrypt(Unknown Source)\r\n       at com.microsoft.aad.adal.DefaultTokenCacheStore.decrypt(Unknown Source)\r\n       at com.microsoft.aad.adal.DefaultTokenCacheStore.getItem(Unknown Source)\r\n       at com.microsoft.aad.adal.AuthenticationContext.getItemFromCache(Unknown Source)\r\n       at com.microsoft.aad.adal.AuthenticationContext.localFlow(Unknown Source)\r\n       at com.microsoft.aad.adal.AuthenticationContext.acquireTokenAfterValidation(Unknown Source)\r\n       at com.microsoft.aad.adal.AuthenticationContext.acquireTokenLocalCall(Unknown Source)\r\n       at com.microsoft.aad.adal.AuthenticationContext.access$600(Unknown Source)\r\n       at com.microsoft.aad.adal.AuthenticationContext$6.run(Unknown Source)\r\n       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)\r\n       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)\r\n       at java.lang.Thread.run(Thread.java:818)","created_at":"2016-03-16T23:42:56Z","updated_at":"2016-03-17T19:08:10Z","closed_at":"2016-03-17T19:08:10Z","merged_at":"2016-03-17T19:08:10Z","merge_commit_sha":"33b9f050717692bcaef0967eb399e852a6c9df63","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/pulls/548/commits","review_comments_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/pulls/548/comments","review_comment_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/issues/548/comments","statuses_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/statuses/34500056882b59ea7744d0a525a8d687ccdd1369","head":{"label":"imakhalova:reset","ref":"reset","sha":"34500056882b59ea7744d0a525a8d687ccdd1369","user":{"login":"imakhalova","id":15003397,"avatar_url":"https://avatars.githubusercontent.com/u/15003397?v=3","gravatar_id":"","url":"https://api.github.com/users/imakhalova","html_url":"https://github.com/imakhalova","followers_url":"https://api.github.com/users/imakhalova/followers","following_url":"https://api.github.com/users/imakhalova/following{/other_user}","gists_url":"https://api.github.com/users/imakhalova/gists{/gist_id}","starred_url":"https://api.github.com/users/imakhalova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imakhalova/subscriptions","organizations_url":"https://api.github.com/users/imakhalova/orgs","repos_url":"https://api.github.com/users/imakhalova/repos","events_url":"https://api.github.com/users/imakhalova/events{/privacy}","received_events_url":"https://api.github.com/users/imakhalova/received_events","type":"User","site_admin":false},"repo":{"id":51237079,"name":"azure-activedirectory-library-for-android","full_name":"imakhalova/azure-activedirectory-library-for-android","owner":{"login":"imakhalova","id":15003397,"avatar_url":"https://avatars.githubusercontent.com/u/15003397?v=3","gravatar_id":"","url":"https://api.github.com/users/imakhalova","html_url":"https://github.com/imakhalova","followers_url":"https://api.github.com/users/imakhalova/followers","following_url":"https://api.github.com/users/imakhalova/following{/other_user}","gists_url":"https://api.github.com/users/imakhalova/gists{/gist_id}","starred_url":"https://api.github.com/users/imakhalova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imakhalova/subscriptions","organizations_url":"https://api.github.com/users/imakhalova/orgs","repos_url":"https://api.github.com/users/imakhalova/repos","events_url":"https://api.github.com/users/imakhalova/events{/privacy}","received_events_url":"https://api.github.com/users/imakhalova/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/imakhalova/azure-activedirectory-library-for-android","description":"The ADAL SDK for Android gives you the ability to add support for Work Accounts to your application with just a few lines of additional code. This SDK gives your application the full functionality of Microsoft Azure AD, including industry standard protocol support for OAuth2, Web API integration with user level consent, and two factor authentication support.","fork":true,"url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android","forks_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/forks","keys_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/teams","hooks_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/hooks","issue_events_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/issues/events{/number}","events_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/events","assignees_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/assignees{/user}","branches_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/branches{/branch}","tags_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/tags","blobs_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/statuses/{sha}","languages_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/languages","stargazers_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/stargazers","contributors_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/contributors","subscribers_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/subscribers","subscription_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/subscription","commits_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/contents/{+path}","compare_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/merges","archive_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/downloads","issues_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/issues{/number}","pulls_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/pulls{/number}","milestones_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/milestones{/number}","notifications_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/labels{/name}","releases_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/releases{/id}","deployments_url":"https://api.github.com/repos/imakhalova/azure-activedirectory-library-for-android/deployments","created_at":"2016-02-07T05:42:06Z","updated_at":"2016-02-07T05:42:07Z","pushed_at":"2016-03-17T17:40:54Z","git_url":"git://github.com/imakhalova/azure-activedirectory-library-for-android.git","ssh_url":"git@github.com:imakhalova/azure-activedirectory-library-for-android.git","clone_url":"https://github.com/imakhalova/azure-activedirectory-library-for-android.git","svn_url":"https://github.com/imakhalova/azure-activedirectory-library-for-android","homepage":"http://www.windowsazure.com/en-us/services/active-directory/","size":9691,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"AzureAD:dev","ref":"dev","sha":"96cd347e6329fc666db85b349c2e626163e10da2","user":{"login":"AzureAD","id":2966316,"avatar_url":"https://avatars.githubusercontent.com/u/2966316?v=3","gravatar_id":"","url":"https://api.github.com/users/AzureAD","html_url":"https://github.com/AzureAD","followers_url":"https://api.github.com/users/AzureAD/followers","following_url":"https://api.github.com/users/AzureAD/following{/other_user}","gists_url":"https://api.github.com/users/AzureAD/gists{/gist_id}","starred_url":"https://api.github.com/users/AzureAD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AzureAD/subscriptions","organizations_url":"https://api.github.com/users/AzureAD/orgs","repos_url":"https://api.github.com/users/AzureAD/repos","events_url":"https://api.github.com/users/AzureAD/events{/privacy}","received_events_url":"https://api.github.com/users/AzureAD/received_events","type":"Organization","site_admin":false},"repo":{"id":14703238,"name":"azure-activedirectory-library-for-android","full_name":"AzureAD/azure-activedirectory-library-for-android","owner":{"login":"AzureAD","id":2966316,"avatar_url":"https://avatars.githubusercontent.com/u/2966316?v=3","gravatar_id":"","url":"https://api.github.com/users/AzureAD","html_url":"https://github.com/AzureAD","followers_url":"https://api.github.com/users/AzureAD/followers","following_url":"https://api.github.com/users/AzureAD/following{/other_user}","gists_url":"https://api.github.com/users/AzureAD/gists{/gist_id}","starred_url":"https://api.github.com/users/AzureAD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AzureAD/subscriptions","organizations_url":"https://api.github.com/users/AzureAD/orgs","repos_url":"https://api.github.com/users/AzureAD/repos","events_url":"https://api.github.com/users/AzureAD/events{/privacy}","received_events_url":"https://api.github.com/users/AzureAD/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-android","description":"The ADAL SDK for Android gives you the ability to add support for Work Accounts to your application with just a few lines of additional code. This SDK gives your application the full functionality of Microsoft Azure AD, including industry standard protocol support for OAuth2, Web API integration with user level consent, and two factor authentication support.","fork":false,"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android","forks_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/forks","keys_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/teams","hooks_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/hooks","issue_events_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/issues/events{/number}","events_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/events","assignees_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/assignees{/user}","branches_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/branches{/branch}","tags_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/tags","blobs_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/statuses/{sha}","languages_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/languages","stargazers_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/stargazers","contributors_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/contributors","subscribers_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/subscribers","subscription_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/subscription","commits_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/contents/{+path}","compare_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/merges","archive_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/downloads","issues_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/issues{/number}","pulls_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/pulls{/number}","milestones_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/milestones{/number}","notifications_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/labels{/name}","releases_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/releases{/id}","deployments_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/deployments","created_at":"2013-11-26T00:59:05Z","updated_at":"2016-03-16T17:57:04Z","pushed_at":"2016-03-17T19:08:10Z","git_url":"git://github.com/AzureAD/azure-activedirectory-library-for-android.git","ssh_url":"git@github.com:AzureAD/azure-activedirectory-library-for-android.git","clone_url":"https://github.com/AzureAD/azure-activedirectory-library-for-android.git","svn_url":"https://github.com/AzureAD/azure-activedirectory-library-for-android","homepage":"http://www.windowsazure.com/en-us/services/active-directory/","size":23575,"stargazers_count":59,"watchers_count":59,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":60,"forks":49,"open_issues":60,"watchers":59,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/pulls/548"},"html":{"href":"https://github.com/AzureAD/azure-activedirectory-library-for-android/pull/548"},"issue":{"href":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/issues/548"},"comments":{"href":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/issues/548/comments"},"review_comments":{"href":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/pulls/548/comments"},"review_comment":{"href":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/pulls/548/commits"},"statuses":{"href":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-android/statuses/34500056882b59ea7744d0a525a8d687ccdd1369"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"weijjia","id":1166233,"avatar_url":"https://avatars.githubusercontent.com/u/1166233?v=3","gravatar_id":"","url":"https://api.github.com/users/weijjia","html_url":"https://github.com/weijjia","followers_url":"https://api.github.com/users/weijjia/followers","following_url":"https://api.github.com/users/weijjia/following{/other_user}","gists_url":"https://api.github.com/users/weijjia/gists{/gist_id}","starred_url":"https://api.github.com/users/weijjia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weijjia/subscriptions","organizations_url":"https://api.github.com/users/weijjia/orgs","repos_url":"https://api.github.com/users/weijjia/repos","events_url":"https://api.github.com/users/weijjia/events{/privacy}","received_events_url":"https://api.github.com/users/weijjia/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":1,"additions":13,"deletions":3,"changed_files":1}}