Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8852575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:26:07+00:00 2026-06-14T13:26:07+00:00

I am using RestKit with an own OAuth2 Provider. I try to authenticate via

  • 0

I am using RestKit with an own OAuth2 Provider. I try to authenticate via Resource Owner Password Credentials.

Could anyone provide some example code and best practices for requesting protected resources via RestKit in general and authenticating via credentials to get an access token in specific?

Probably ResKit itself is not the best choice?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T13:26:08+00:00Added an answer on June 14, 2026 at 1:26 pm

    You should check out this link: https://github.com/RestKit/RestKit/wiki/OAuth-Support-on-RestKit

    You can try something like this (I do it in my app delegate):

    RKObjectManager *manager = [RKObjectManager objectManagerWithBaseURLString:@"http://www.yourdomain.com"];
    [manager setSerializationMIMEType:RKMIMETypeJSON];
    
    [[RKClient sharedClient] setAuthenticationType:RKRequestAuthenticationTypeOAuth2];
    [[RKClient sharedClient] setUsername:@"username"];
    [[RKClient sharedClient] setPassword:@"password"];
    

    Note: I haven’t tested it because I use AuthenticationTypeHTTPBasic instead

    Hope this helps!

    Edit:

    I found this code example that can help you more: https://github.com/rodchile/RestKit-OAuth2-Client-Example

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using JSON to communicate between my rails app and iOS via RestKit (Thanks
I am using RestKit for webservice calls, caching, and etags. I implemented my own
When I try to post an object using RestKit I get the following error.
Im using restkit and push notifications and I have also built the interface, so
I'm using RestKit to load a gzipped JSON with RKRequest: RKRequest* request = [[RKClient
I have been trying to post using RestKit after I have successfully used it
I'm trying to get access to the Google Drive API using RestKit on iOS
I am trying to use RestKit on my app, and currently using master on
Using RestKit 0.10.1, I have objects served similar to this json format: {objects: [
I am using restkit and I have problems parsing an xml: Unable to find

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.