Skip to content

Commit

Permalink
Log header in trace
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamDenniss committed Sep 27, 2018
1 parent eb74fed commit da38348
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/OIDAuthorizationService.m
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,9 @@ + (void)performTokenRequest:(OIDTokenRequest *)request

NSURLRequest *URLRequest = [request URLRequest];

AppAuthRequestTrace(@"Token Request: %@\nHTTPBody: %@",
AppAuthRequestTrace(@"Token Request: %@\nHeaders:%@\nHTTPBody: %@",
URLRequest.URL,
URLRequest.allHTTPHeaderFields,
[[NSString alloc] initWithData:URLRequest.HTTPBody
encoding:NSUTF8StringEncoding]);

Expand Down

0 comments on commit da38348

Please sign in to comment.