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

  • Home
  • SEARCH
  • 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 578495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:15:59+00:00 2026-05-13T14:15:59+00:00

there is no practical way that i can see or have read about that

  • 0

there is no practical way that i can see or have read about that lets you authenticate using oauth without making the user leave the app or have to write the pin down before they can post an update….. is there maybe another Rest API that i missed?


Here is my code…. am i doing something wrong?


NSURL *requestTokenURL = [NSURL URLWithString:@"http://twitter.com/oauth/request_token"];

OAMutableURLRequest *request = [[OAMutableURLRequest alloc] 
initWithURL:requestTokenURL 
consumer:_consumer 
token:nil 
realm:nil 
signatureProvider:nil];

[request setHTTPMethod:@"POST"];
[request setOAuthParameterName:@"oauth_callback" withValue:@"myApp:"];
[request prepare];


OADataFetcher *fetcher = [[OADataFetcher alloc] init];

[fetcher fetchDataWithRequest:request
                     delegate:self
            didFinishSelector:@selector(requestTokenTicket:didFinishWithData:)
              didFailSelector:@selector(requestDidFail)];

}

  • 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-05-13T14:15:59+00:00Added an answer on May 13, 2026 at 2:15 pm

    Yup. What you can do is register a custom URI scheme with your application and use it in the oauth_callback parameter. This saves you from having to use out-of-band callback configuration, which requires the user to manually enter a verifier, as you describe.

    Details on registering a custom URI scheme for your app here:

    http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html

    Edited – Elaborating

    Using a custom URI scheme, you can instruct an OAuth Service Provider to ‘call back’ to your iPhone application when a user authorizes a Request Token. This is an alternative to the cumbersome “out-of-band callback” workflow that requires a user to authorize a Request Token, and then be given a verifier code that they manually enter via your application. It is also more analogous to how Web Applications that use OAuth behave.

    The steps involved in using a URI scheme would be the following:

    1. Using the above link as a guide, bind a custom URI scheme to your iPhone application (i.e. “myapp://”).
    2. When requesting a Request Token from the OAuth Service Provider, provide a URI that uses your custom scheme as the value of the ‘oauth_callback’ parameter. For example, oauth_callback=myapp://oauth/callback
    3. When you get a Request Token, direct the user to the Service Providers authorization endpoint URL via the browser (launch Safari, send the user to http://example.com/oauth/authorize?oauth_token=token).
    4. If the user chooses to authorize the Request Token, the Service Provider will redirect them (usually via a 301 HTTP Status header) to the URI you provided in step # 2.
    5. Safari will recognize that the URI uses a scheme that is bound to your application and launch your app.
    6. When the callback is called (again, see the above linked guide for details) you will be able to exchange the authorized OAuth Request Token for an Access Token.
    7. Finally, with an Access Token you will be able to access Protected Resources from the OAuth Service Provider.

    Does that make more sense?

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

Sidebar

Related Questions

I know that there are more practical ways of going about what I'm trying
OK, let me see if I can explain. I have some code that wraps
In the same way we have coding standards, can there be things such as
I have read about how to implement security into a website using hashing, and
I'm using a Java class library that is in many ways incomplete: there are
Is there a (practical) way to by-pass the normal (virtual) constructor calling order? Example:
For my app, I have about 15Mb (which can be compressed with some processing
is there any best practice way to replace a part of the default template.
Is there such a thing? It is the first time I encountered a practical
Can you help me understand the practical differences between these two; IList<int> myList =

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.