ios - RestKit 0.2 Digest basic auth -
i'm in process of upgrading restkit in our ios app 0.2, i'm attempting integrate api service uses digest basic auth. working before migration, 401.
previously did following set auth data:
[rkobjectmanager sharedmanager].client.authenticationtype = rkrequestauthenticationtypehttpbasic; [rkobjectmanager sharedmanager].client.username = @"un"; [rkobjectmanager sharedmanager].client.password = @"pw";
now understand should this
rkobjectmanager *manager = [rkobjectmanager managerwithbaseurl:url]; [manager.httpclient setauthorizationheaderwithusername:@"un" password:@"pw"];
is there i'm missing?
Comments
Post a Comment