restkit está utilizando de una manera diferente el protocolo de oauth2, tengo que cambiar el código para poder utilizarlo en mi camino:Usa un tenedor de Restkit en github a través de cocoaPod?
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 coacoaPod para importar el kit de repuesto en mi proyecto.
¿Puedo bifurcar el repositorio Restkit en github y usar el tenedor a través de CocoaPod en lugar de la versión oficial?
Si cree que los cambios tienen sentido, intente realizar una solicitud de extracción al proyecto original. Como beneficio adicional, no tendrás que preocuparte por mantener tu tenedor en el futuro. – Rivera