Things I learned today:
a. This allows you to see how the
dynos are running and if the system is down.
2. Authentication Headers: Authentication headers are used in Devise for authenticate
current_user. In order to pass this from the authentication you need to pass an
HTTP header as well as the url in a NSURLConnection call.
- NSString *userToken = [NSString stringWithFormat:@"Bearer %@", [[JFCurrentUser shared] authenticationToken]];
- NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:kJFWebViewURL]];
- [request setValue:userToken forHTTPHeaderField:@"Authorization"];
- [webView loadRequest:request];
No comments:
Post a Comment