{"action":"created","comment":{"url":"https://api.github.com/repos/kaaproject/kaa/pulls/comments/68267884","id":68267884,"diff_hunk":"@@ -101,6 +101,50 @@ kaa_transport_channel_interface_t *kaa_channel_manager_get_transport_channel(kaa\n kaa_error_t kaa_channel_manager_remove_transport_channel(kaa_channel_manager_t *self\n                                                        , uint32_t channel_id);\n \n+\n+\n+/**\n+ * @brief Specifies authorization failure reason.\n+ *\n+ */\n+typedef enum {\n+    KAA_AUTH_STATUS_UNKNOWN, /**< Authorization failed for unknown reason. */\n+    KAA_AUTH_STATUS_BAD_CREDENTIALS, /**< Authorization failed because credentials are invalid. */\n+    KAA_AUTH_STATUS_VERIFICATION_FAILED /**< Authorization failed because of verification failure. */\n+} kaa_auth_failure_reason_t;\n+\n+\n+\n+/**\n+ * @brief Processes authorization failure.\n+ *\n+ * @param[in]  reason           Authorization failure reason.\n+ * @param[in]  context          Handler context.\n+ */\n+typedef void (*kaa_auth_failure_fn)(kaa_auth_failure_reason_t reason, void *context);\n+\n+\n+\n+/**\n+ * @brief Specify authorization failure handler\n+ *\n+ * @param[in]   self            Channel manager.\n+ * @param[in]   handler         Authorization failure handler.\n+ * @param[in]   context         Handler context.\n+ */\n+void kaa_channel_manager_set_auth_failure_handler(kaa_channel_manager_t *self\n+                                                , kaa_auth_failure_fn handler, void *context);","path":"client/client-multi/client-c/src/kaa/kaa_channel_manager.h","position":36,"original_position":36,"commit_id":"64e6220a38d5a975eaf6094adc8fca359a950f88","original_commit_id":"64e6220a38d5a975eaf6094adc8fca359a950f88","user":{"login":"forGGe","id":5261821,"avatar_url":"https://avatars.githubusercontent.com/u/5261821?v=3","gravatar_id":"","url":"https://api.github.com/users/forGGe","html_url":"https://github.com/forGGe","followers_url":"https://api.github.com/users/forGGe/followers","following_url":"https://api.github.com/users/forGGe/following{/other_user}","gists_url":"https://api.github.com/users/forGGe/gists{/gist_id}","starred_url":"https://api.github.com/users/forGGe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forGGe/subscriptions","organizations_url":"https://api.github.com/users/forGGe/orgs","repos_url":"https://api.github.com/users/forGGe/repos","events_url":"https://api.github.com/users/forGGe/events{/privacy}","received_events_url":"https://api.github.com/users/forGGe/received_events","type":"User","site_admin":false},"body":"Style","created_at":"2016-06-23T16:31:30Z","updated_at":"2016-06-23T16:31:30Z","html_url":"https://github.com/kaaproject/kaa/pull/799#discussion_r68267884","pull_request_url":"https://api.github.com/repos/kaaproject/kaa/pulls/799","_links":{"self":{"href":"https://api.github.com/repos/kaaproject/kaa/pulls/comments/68267884"},"html":{"href":"https://github.com/kaaproject/kaa/pull/799#discussion_r68267884"},"pull_request":{"href":"https://api.github.com/repos/kaaproject/kaa/pulls/799"}}},"pull_request":{"url":"https://api.github.com/repos/kaaproject/kaa/pulls/799","id":74962435,"html_url":"https://github.com/kaaproject/kaa/pull/799","diff_url":"https://github.com/kaaproject/kaa/pull/799.diff","patch_url":"https://github.com/kaaproject/kaa/pull/799.patch","issue_url":"https://api.github.com/repos/kaaproject/kaa/issues/799","number":799,"state":"open","locked":false,"title":"KAA-1203: Support failover when KAATCP_CONNACK_REFUSE_BAD_CREDENTIALS is received","user":{"login":"RostakaGmfun","id":5872727,"avatar_url":"https://avatars.githubusercontent.com/u/5872727?v=3","gravatar_id":"","url":"https://api.github.com/users/RostakaGmfun","html_url":"https://github.com/RostakaGmfun","followers_url":"https://api.github.com/users/RostakaGmfun/followers","following_url":"https://api.github.com/users/RostakaGmfun/following{/other_user}","gists_url":"https://api.github.com/users/RostakaGmfun/gists{/gist_id}","starred_url":"https://api.github.com/users/RostakaGmfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RostakaGmfun/subscriptions","organizations_url":"https://api.github.com/users/RostakaGmfun/orgs","repos_url":"https://api.github.com/users/RostakaGmfun/repos","events_url":"https://api.github.com/users/RostakaGmfun/events{/privacy}","received_events_url":"https://api.github.com/users/RostakaGmfun/received_events","type":"User","site_admin":false},"body":"/cc @forGGe @rasendubi ","created_at":"2016-06-23T14:15:55Z","updated_at":"2016-06-23T16:31:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5df71e9f7924f894af2fe25e026a759632eecac7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kaaproject/kaa/pulls/799/commits","review_comments_url":"https://api.github.com/repos/kaaproject/kaa/pulls/799/comments","review_comment_url":"https://api.github.com/repos/kaaproject/kaa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kaaproject/kaa/issues/799/comments","statuses_url":"https://api.github.com/repos/kaaproject/kaa/statuses/64e6220a38d5a975eaf6094adc8fca359a950f88","head":{"label":"RostakaGmfun:feature/KAA-1203","ref":"feature/KAA-1203","sha":"64e6220a38d5a975eaf6094adc8fca359a950f88","user":{"login":"RostakaGmfun","id":5872727,"avatar_url":"https://avatars.githubusercontent.com/u/5872727?v=3","gravatar_id":"","url":"https://api.github.com/users/RostakaGmfun","html_url":"https://github.com/RostakaGmfun","followers_url":"https://api.github.com/users/RostakaGmfun/followers","following_url":"https://api.github.com/users/RostakaGmfun/following{/other_user}","gists_url":"https://api.github.com/users/RostakaGmfun/gists{/gist_id}","starred_url":"https://api.github.com/users/RostakaGmfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RostakaGmfun/subscriptions","organizations_url":"https://api.github.com/users/RostakaGmfun/orgs","repos_url":"https://api.github.com/users/RostakaGmfun/repos","events_url":"https://api.github.com/users/RostakaGmfun/events{/privacy}","received_events_url":"https://api.github.com/users/RostakaGmfun/received_events","type":"User","site_admin":false},"repo":{"id":55242302,"name":"kaa","full_name":"RostakaGmfun/kaa","owner":{"login":"RostakaGmfun","id":5872727,"avatar_url":"https://avatars.githubusercontent.com/u/5872727?v=3","gravatar_id":"","url":"https://api.github.com/users/RostakaGmfun","html_url":"https://github.com/RostakaGmfun","followers_url":"https://api.github.com/users/RostakaGmfun/followers","following_url":"https://api.github.com/users/RostakaGmfun/following{/other_user}","gists_url":"https://api.github.com/users/RostakaGmfun/gists{/gist_id}","starred_url":"https://api.github.com/users/RostakaGmfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RostakaGmfun/subscriptions","organizations_url":"https://api.github.com/users/RostakaGmfun/orgs","repos_url":"https://api.github.com/users/RostakaGmfun/repos","events_url":"https://api.github.com/users/RostakaGmfun/events{/privacy}","received_events_url":"https://api.github.com/users/RostakaGmfun/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RostakaGmfun/kaa","description":"Kaa open-source middleware platform for building, managing, and integrating connected products with the Internet of Everything.","fork":true,"url":"https://api.github.com/repos/RostakaGmfun/kaa","forks_url":"https://api.github.com/repos/RostakaGmfun/kaa/forks","keys_url":"https://api.github.com/repos/RostakaGmfun/kaa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RostakaGmfun/kaa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RostakaGmfun/kaa/teams","hooks_url":"https://api.github.com/repos/RostakaGmfun/kaa/hooks","issue_events_url":"https://api.github.com/repos/RostakaGmfun/kaa/issues/events{/number}","events_url":"https://api.github.com/repos/RostakaGmfun/kaa/events","assignees_url":"https://api.github.com/repos/RostakaGmfun/kaa/assignees{/user}","branches_url":"https://api.github.com/repos/RostakaGmfun/kaa/branches{/branch}","tags_url":"https://api.github.com/repos/RostakaGmfun/kaa/tags","blobs_url":"https://api.github.com/repos/RostakaGmfun/kaa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RostakaGmfun/kaa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RostakaGmfun/kaa/git/refs{/sha}","trees_url":"https://api.github.com/repos/RostakaGmfun/kaa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RostakaGmfun/kaa/statuses/{sha}","languages_url":"https://api.github.com/repos/RostakaGmfun/kaa/languages","stargazers_url":"https://api.github.com/repos/RostakaGmfun/kaa/stargazers","contributors_url":"https://api.github.com/repos/RostakaGmfun/kaa/contributors","subscribers_url":"https://api.github.com/repos/RostakaGmfun/kaa/subscribers","subscription_url":"https://api.github.com/repos/RostakaGmfun/kaa/subscription","commits_url":"https://api.github.com/repos/RostakaGmfun/kaa/commits{/sha}","git_commits_url":"https://api.github.com/repos/RostakaGmfun/kaa/git/commits{/sha}","comments_url":"https://api.github.com/repos/RostakaGmfun/kaa/comments{/number}","issue_comment_url":"https://api.github.com/repos/RostakaGmfun/kaa/issues/comments{/number}","contents_url":"https://api.github.com/repos/RostakaGmfun/kaa/contents/{+path}","compare_url":"https://api.github.com/repos/RostakaGmfun/kaa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RostakaGmfun/kaa/merges","archive_url":"https://api.github.com/repos/RostakaGmfun/kaa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RostakaGmfun/kaa/downloads","issues_url":"https://api.github.com/repos/RostakaGmfun/kaa/issues{/number}","pulls_url":"https://api.github.com/repos/RostakaGmfun/kaa/pulls{/number}","milestones_url":"https://api.github.com/repos/RostakaGmfun/kaa/milestones{/number}","notifications_url":"https://api.github.com/repos/RostakaGmfun/kaa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RostakaGmfun/kaa/labels{/name}","releases_url":"https://api.github.com/repos/RostakaGmfun/kaa/releases{/id}","deployments_url":"https://api.github.com/repos/RostakaGmfun/kaa/deployments","created_at":"2016-04-01T15:28:29Z","updated_at":"2016-04-01T15:28:38Z","pushed_at":"2016-06-23T15:56:00Z","git_url":"git://github.com/RostakaGmfun/kaa.git","ssh_url":"git@github.com:RostakaGmfun/kaa.git","clone_url":"https://github.com/RostakaGmfun/kaa.git","svn_url":"https://github.com/RostakaGmfun/kaa","homepage":"http://www.kaaproject.org","size":129169,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"kaaproject:develop","ref":"develop","sha":"797fea780e502533dffa4828bb07c6dfe8c505f0","user":{"login":"kaaproject","id":6984613,"avatar_url":"https://avatars.githubusercontent.com/u/6984613?v=3","gravatar_id":"","url":"https://api.github.com/users/kaaproject","html_url":"https://github.com/kaaproject","followers_url":"https://api.github.com/users/kaaproject/followers","following_url":"https://api.github.com/users/kaaproject/following{/other_user}","gists_url":"https://api.github.com/users/kaaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/kaaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaaproject/subscriptions","organizations_url":"https://api.github.com/users/kaaproject/orgs","repos_url":"https://api.github.com/users/kaaproject/repos","events_url":"https://api.github.com/users/kaaproject/events{/privacy}","received_events_url":"https://api.github.com/users/kaaproject/received_events","type":"Organization","site_admin":false},"repo":{"id":17839346,"name":"kaa","full_name":"kaaproject/kaa","owner":{"login":"kaaproject","id":6984613,"avatar_url":"https://avatars.githubusercontent.com/u/6984613?v=3","gravatar_id":"","url":"https://api.github.com/users/kaaproject","html_url":"https://github.com/kaaproject","followers_url":"https://api.github.com/users/kaaproject/followers","following_url":"https://api.github.com/users/kaaproject/following{/other_user}","gists_url":"https://api.github.com/users/kaaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/kaaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaaproject/subscriptions","organizations_url":"https://api.github.com/users/kaaproject/orgs","repos_url":"https://api.github.com/users/kaaproject/repos","events_url":"https://api.github.com/users/kaaproject/events{/privacy}","received_events_url":"https://api.github.com/users/kaaproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kaaproject/kaa","description":"Kaa open-source middleware platform for building, managing, and integrating connected products with the Internet of Everything.","fork":false,"url":"https://api.github.com/repos/kaaproject/kaa","forks_url":"https://api.github.com/repos/kaaproject/kaa/forks","keys_url":"https://api.github.com/repos/kaaproject/kaa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaaproject/kaa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaaproject/kaa/teams","hooks_url":"https://api.github.com/repos/kaaproject/kaa/hooks","issue_events_url":"https://api.github.com/repos/kaaproject/kaa/issues/events{/number}","events_url":"https://api.github.com/repos/kaaproject/kaa/events","assignees_url":"https://api.github.com/repos/kaaproject/kaa/assignees{/user}","branches_url":"https://api.github.com/repos/kaaproject/kaa/branches{/branch}","tags_url":"https://api.github.com/repos/kaaproject/kaa/tags","blobs_url":"https://api.github.com/repos/kaaproject/kaa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaaproject/kaa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaaproject/kaa/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaaproject/kaa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaaproject/kaa/statuses/{sha}","languages_url":"https://api.github.com/repos/kaaproject/kaa/languages","stargazers_url":"https://api.github.com/repos/kaaproject/kaa/stargazers","contributors_url":"https://api.github.com/repos/kaaproject/kaa/contributors","subscribers_url":"https://api.github.com/repos/kaaproject/kaa/subscribers","subscription_url":"https://api.github.com/repos/kaaproject/kaa/subscription","commits_url":"https://api.github.com/repos/kaaproject/kaa/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaaproject/kaa/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaaproject/kaa/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaaproject/kaa/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaaproject/kaa/contents/{+path}","compare_url":"https://api.github.com/repos/kaaproject/kaa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaaproject/kaa/merges","archive_url":"https://api.github.com/repos/kaaproject/kaa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaaproject/kaa/downloads","issues_url":"https://api.github.com/repos/kaaproject/kaa/issues{/number}","pulls_url":"https://api.github.com/repos/kaaproject/kaa/pulls{/number}","milestones_url":"https://api.github.com/repos/kaaproject/kaa/milestones{/number}","notifications_url":"https://api.github.com/repos/kaaproject/kaa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaaproject/kaa/labels{/name}","releases_url":"https://api.github.com/repos/kaaproject/kaa/releases{/id}","deployments_url":"https://api.github.com/repos/kaaproject/kaa/deployments","created_at":"2014-03-17T18:48:31Z","updated_at":"2016-06-23T12:01:18Z","pushed_at":"2016-06-23T15:56:01Z","git_url":"git://github.com/kaaproject/kaa.git","ssh_url":"git@github.com:kaaproject/kaa.git","clone_url":"https://github.com/kaaproject/kaa.git","svn_url":"https://github.com/kaaproject/kaa","homepage":"http://www.kaaproject.org","size":144708,"stargazers_count":300,"watchers_count":300,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":117,"mirror_url":null,"open_issues_count":17,"forks":117,"open_issues":17,"watchers":300,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kaaproject/kaa/pulls/799"},"html":{"href":"https://github.com/kaaproject/kaa/pull/799"},"issue":{"href":"https://api.github.com/repos/kaaproject/kaa/issues/799"},"comments":{"href":"https://api.github.com/repos/kaaproject/kaa/issues/799/comments"},"review_comments":{"href":"https://api.github.com/repos/kaaproject/kaa/pulls/799/comments"},"review_comment":{"href":"https://api.github.com/repos/kaaproject/kaa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kaaproject/kaa/pulls/799/commits"},"statuses":{"href":"https://api.github.com/repos/kaaproject/kaa/statuses/64e6220a38d5a975eaf6094adc8fca359a950f88"}}}}
{"actor":{"display_login":"forGGe"}}