¿Usar un fork de Restkit en github a través de CocoaPods?
Restkit está utilizando de forma diferente el protocolo oauth2, necesito cambiar el código para poder usarlo a mi manera:
Desde:
// OAuth 2 valid request
if (self.authenticationType == RKRequestAuthenticationTypeOAuth2) {
NSString *authorizationString = [NSString stringWithFormat:@"OAuth2 %@", self.OAuth2AccessToken];
[_URLRequest setValue:authorizationString forHTTPHeaderField:@"Authorization"];
}
a:
// OAuth 2 valid request
if (self.authenticationType == RKRequestAuthenticationTypeOAuth2) {
NSString *authorizationString = [NSString stringWithFormat:@"Bearer %@", self.OAuth2AccessToken];
[_URLRequest setValue:authorizationString forHTTPHeaderField:@"Authorization"];
}
Uso de "Portador" en lugar de "Oauth2" ....
Estoy usando CocoaPods para importar restkit en mi proyecto.
¿Puedo bifurcar el repositorio de Restkit en github y usar el fork a través de CocoaPod en lugar de la versión oficial?