Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes for Network Integration #185

Merged
merged 7 commits into from
Aug 3, 2018
Merged

Conversation

jasoncoolmax
Copy link
Member

@jasoncoolmax jasoncoolmax commented Jul 30, 2018

  • Add MSIDAADAuthorityValidationRequest
  • Pass context to network request (for Provide context to MSIDHttpRequest subclasses during initialization #178)
  • Fix a bug in MSIDAADResponseSerializer.m which causes nil result for json parsing
  • Fix a bug in function msidAddParameters which throws the existing parameters away
  • Stop setting Content-length for Post network request as it is set automatically

@@ -31,7 +31,7 @@ - (id)responseObjectForResponse:(NSHTTPURLResponse *)httpResponse data:(NSData *
{
NSMutableDictionary *jsonObject = [[super responseObjectForResponse:httpResponse data:data error:error] mutableCopy];

if (error) { return nil; }
if (error && *error) { return nil; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

technically, we shouldn't expect error to be not nil and change method's behavior based on it. So, it would be better, if we added a local error variable, check for that one to return nil and only check for argument error to assign it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree 👍

Copy link
Contributor

@unpluggedk unpluggedk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for removing the unnecessary dispatch main 👍

@jasoncoolmax jasoncoolmax merged commit 918a37e into dev Aug 3, 2018
@jasoncoolmax jasoncoolmax deleted the jason/passContextToNetwortRequest branch August 3, 2018 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants