{"action":"created","issue":{"url":"https://api.github.com/repos/applivery/applivery-android-sdk/issues/13","repository_url":"https://api.github.com/repos/applivery/applivery-android-sdk","labels_url":"https://api.github.com/repos/applivery/applivery-android-sdk/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/applivery/applivery-android-sdk/issues/13/comments","events_url":"https://api.github.com/repos/applivery/applivery-android-sdk/issues/13/events","html_url":"https://github.com/applivery/applivery-android-sdk/issues/13","id":302211733,"number":13,"title":"Display Applivery User Authentication after installing new versions","user":{"login":"CesarTrigo","id":453657,"avatar_url":"https://avatars0.githubusercontent.com/u/453657?v=4","gravatar_id":"","url":"https://api.github.com/users/CesarTrigo","html_url":"https://github.com/CesarTrigo","followers_url":"https://api.github.com/users/CesarTrigo/followers","following_url":"https://api.github.com/users/CesarTrigo/following{/other_user}","gists_url":"https://api.github.com/users/CesarTrigo/gists{/gist_id}","starred_url":"https://api.github.com/users/CesarTrigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CesarTrigo/subscriptions","organizations_url":"https://api.github.com/users/CesarTrigo/orgs","repos_url":"https://api.github.com/users/CesarTrigo/repos","events_url":"https://api.github.com/users/CesarTrigo/events{/privacy}","received_events_url":"https://api.github.com/users/CesarTrigo/received_events","type":"User","site_admin":false},"labels":[{"id":245868852,"url":"https://api.github.com/repos/applivery/applivery-android-sdk/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"mrebollob","id":7646370,"avatar_url":"https://avatars1.githubusercontent.com/u/7646370?v=4","gravatar_id":"","url":"https://api.github.com/users/mrebollob","html_url":"https://github.com/mrebollob","followers_url":"https://api.github.com/users/mrebollob/followers","following_url":"https://api.github.com/users/mrebollob/following{/other_user}","gists_url":"https://api.github.com/users/mrebollob/gists{/gist_id}","starred_url":"https://api.github.com/users/mrebollob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrebollob/subscriptions","organizations_url":"https://api.github.com/users/mrebollob/orgs","repos_url":"https://api.github.com/users/mrebollob/repos","events_url":"https://api.github.com/users/mrebollob/events{/privacy}","received_events_url":"https://api.github.com/users/mrebollob/received_events","type":"User","site_admin":false},"assignees":[{"login":"mrebollob","id":7646370,"avatar_url":"https://avatars1.githubusercontent.com/u/7646370?v=4","gravatar_id":"","url":"https://api.github.com/users/mrebollob","html_url":"https://github.com/mrebollob","followers_url":"https://api.github.com/users/mrebollob/followers","following_url":"https://api.github.com/users/mrebollob/following{/other_user}","gists_url":"https://api.github.com/users/mrebollob/gists{/gist_id}","starred_url":"https://api.github.com/users/mrebollob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrebollob/subscriptions","organizations_url":"https://api.github.com/users/mrebollob/orgs","repos_url":"https://api.github.com/users/mrebollob/repos","events_url":"https://api.github.com/users/mrebollob/events{/privacy}","received_events_url":"https://api.github.com/users/mrebollob/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/applivery/applivery-android-sdk/milestones/2","html_url":"https://github.com/applivery/applivery-android-sdk/milestone/2","labels_url":"https://api.github.com/repos/applivery/applivery-android-sdk/milestones/2/labels","id":3163141,"number":2,"title":"v2.6","description":"","creator":{"login":"CesarTrigo","id":453657,"avatar_url":"https://avatars0.githubusercontent.com/u/453657?v=4","gravatar_id":"","url":"https://api.github.com/users/CesarTrigo","html_url":"https://github.com/CesarTrigo","followers_url":"https://api.github.com/users/CesarTrigo/followers","following_url":"https://api.github.com/users/CesarTrigo/following{/other_user}","gists_url":"https://api.github.com/users/CesarTrigo/gists{/gist_id}","starred_url":"https://api.github.com/users/CesarTrigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CesarTrigo/subscriptions","organizations_url":"https://api.github.com/users/CesarTrigo/orgs","repos_url":"https://api.github.com/users/CesarTrigo/repos","events_url":"https://api.github.com/users/CesarTrigo/events{/privacy}","received_events_url":"https://api.github.com/users/CesarTrigo/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2018-03-05T19:12:25Z","updated_at":"2018-03-05T19:13:09Z","due_on":"2018-03-13T07:00:00Z","closed_at":null},"comments":0,"created_at":"2018-03-05T08:38:03Z","updated_at":"2018-03-12T15:39:22Z","closed_at":null,"author_association":"OWNER","body":"Store and always use the new API Key after a successful login. Do not ask again for a login once the user is authenticated and the new token is available.\r\nDo not allow new installations if authentication fails.\r\n\r\n**Workflow:** \r\n1. User opens the app\r\n2. SDK checks for new versions and displays Update prompt / Force Update screen\r\n3. Display User login if a new version is available and the field `sdk.android.updateAuth` = `true`\r\n3.1. If authentication is OK: store new token and flag to not ask again\r\n3.2. If authentication fails: display error message `Invalid credentials` (translated)\r\n4. If the flag = `true`, use the new token to download new versions\r\n4.1. If token expires or 401/402 responses are received: clean and show login again\r\n\r\nAuthentication endpoint available in POSTMAN: https://www.applivery.com/docs/rest-api/postman\r\n"},"comment":{"url":"https://api.github.com/repos/applivery/applivery-android-sdk/issues/comments/372354593","html_url":"https://github.com/applivery/applivery-android-sdk/issues/13#issuecomment-372354593","issue_url":"https://api.github.com/repos/applivery/applivery-android-sdk/issues/13","id":372354593,"user":{"login":"CesarTrigo","id":453657,"avatar_url":"https://avatars0.githubusercontent.com/u/453657?v=4","gravatar_id":"","url":"https://api.github.com/users/CesarTrigo","html_url":"https://github.com/CesarTrigo","followers_url":"https://api.github.com/users/CesarTrigo/followers","following_url":"https://api.github.com/users/CesarTrigo/following{/other_user}","gists_url":"https://api.github.com/users/CesarTrigo/gists{/gist_id}","starred_url":"https://api.github.com/users/CesarTrigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CesarTrigo/subscriptions","organizations_url":"https://api.github.com/users/CesarTrigo/orgs","repos_url":"https://api.github.com/users/CesarTrigo/repos","events_url":"https://api.github.com/users/CesarTrigo/events{/privacy}","received_events_url":"https://api.github.com/users/CesarTrigo/received_events","type":"User","site_admin":false},"created_at":"2018-03-12T15:39:22Z","updated_at":"2018-03-12T15:39:22Z","author_association":"OWNER","body":"Authentication Headers summary:\r\n\r\n* `/auth` -> No tokens needed\r\n* `/app/{{app_id}}`\r\n   * Authentication: `{{sdk_api_key}}`\r\n   * x_account_token:  `{{sdk_api_key}}`\r\n* `/builds/{{build_id}}/token` ->\r\n   * Authorization: `{{user_access_token}}`. If not available use `{{sdk_api_key}}`\r\n   * x_account_token:  `{{sdk_api_key}}`\r\n* `/download/{{build_id}}/manifest/{{download_token}}` -> \r\n   * Authorization: `{{user_access_token}}`.  If not available use `{{sdk_api_key}}`\r\n   * x_account_token: `{{sdk_api_key}}`"}}
{"actor":{"display_login":"CesarTrigo"}}