{"action":"created","issue":{"url":"https://api.github.com/repos/kylebrowning/drupal-ios-sdk/issues/119","labels_url":"https://api.github.com/repos/kylebrowning/drupal-ios-sdk/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/kylebrowning/drupal-ios-sdk/issues/119/comments","events_url":"https://api.github.com/repos/kylebrowning/drupal-ios-sdk/issues/119/events","html_url":"https://github.com/kylebrowning/drupal-ios-sdk/issues/119","id":108609204,"number":119,"title":"signRequset in drupal-ios-sdk is not working properly","user":{"login":"vivekvpandya","id":5086212,"avatar_url":"https://avatars.githubusercontent.com/u/5086212?v=3","gravatar_id":"","url":"https://api.github.com/users/vivekvpandya","html_url":"https://github.com/vivekvpandya","followers_url":"https://api.github.com/users/vivekvpandya/followers","following_url":"https://api.github.com/users/vivekvpandya/following{/other_user}","gists_url":"https://api.github.com/users/vivekvpandya/gists{/gist_id}","starred_url":"https://api.github.com/users/vivekvpandya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vivekvpandya/subscriptions","organizations_url":"https://api.github.com/users/vivekvpandya/orgs","repos_url":"https://api.github.com/users/vivekvpandya/repos","events_url":"https://api.github.com/users/vivekvpandya/events{/privacy}","received_events_url":"https://api.github.com/users/vivekvpandya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-28T08:18:17Z","updated_at":"2015-10-07T19:42:57Z","closed_at":null,"body":"Hello Kyle,\r\n\r\nAs per my understanding the variable signRequest in DIOSSession class allows developer to specify whether to pass credential details with request or not.\r\n\r\nSo following code will add Authorization header with request is signRequest is YES.\r\n```objectivec\r\n if (self.signRequests) {\r\n        \r\n        [self.requestSerializer setAuthorizationHeaderFieldWithUsername:_basicAuthUsername password:_basicAuthPassword];\r\n    }\r\n```\r\nbut what if developer wants to disable sending credential temporarily for one request ? by setting signRequest to NO does not remove Authorization header. Or if user has changed the password from website and it has not provide new password in app.\r\nSo following code fix it for me :\r\n```objectivec\r\n    if (self.signRequests) {\r\n        \r\n        [self.requestSerializer setAuthorizationHeaderFieldWithUsername:_basicAuthUsername password:_basicAuthPassword];\r\n    }\r\n    else{\r\n        // If previously signRequest is set to YES then if temparoraly it has been set to NO then authorization header should be cleared\r\n        [self.requestSerializer clearAuthorizationHeader];\r\n\r\n    }\r\n```\r\nSo kindly review this and give your valuable input to this issue.\r\n\r\nThanks !\r\n"},"comment":{"url":"https://api.github.com/repos/kylebrowning/drupal-ios-sdk/issues/comments/146307255","html_url":"https://github.com/kylebrowning/drupal-ios-sdk/issues/119#issuecomment-146307255","issue_url":"https://api.github.com/repos/kylebrowning/drupal-ios-sdk/issues/119","id":146307255,"user":{"login":"kylebrowning","id":113023,"avatar_url":"https://avatars.githubusercontent.com/u/113023?v=3","gravatar_id":"","url":"https://api.github.com/users/kylebrowning","html_url":"https://github.com/kylebrowning","followers_url":"https://api.github.com/users/kylebrowning/followers","following_url":"https://api.github.com/users/kylebrowning/following{/other_user}","gists_url":"https://api.github.com/users/kylebrowning/gists{/gist_id}","starred_url":"https://api.github.com/users/kylebrowning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylebrowning/subscriptions","organizations_url":"https://api.github.com/users/kylebrowning/orgs","repos_url":"https://api.github.com/users/kylebrowning/repos","events_url":"https://api.github.com/users/kylebrowning/events{/privacy}","received_events_url":"https://api.github.com/users/kylebrowning/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T19:42:57Z","updated_at":"2015-10-07T19:42:57Z","body":"Hey @vivekvpandya Very interesting use case.\r\n\r\nCan you show me how you are making your calls just so I can show you how to cancel the request for a specific request."}}