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 9163119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:22:08+00:00 2026-06-17T14:22:08+00:00

I need to know how to handle protected resources with OAuth 1.0a. I have

  • 0

I need to know how to handle protected resources with OAuth 1.0a.
I have read the official documentation and seen some implementations but there some points I need to clarify.

1) At this point the Consumer has an approved Access Token linked to a user and the Provider server validates it.

  • What would happen if the Access Token is invalid?
  • What kind of status code would the Provider server issue?
  • If this happens should the Consumer server redirect the user to screen where he can authorize another Token?

2) If the validation of the Access Token is correct, the Consumer and the Provider will exchange information. For example the Consumer will ask the email address of the user and the Provider will provide it.

  • What protocol should be used to exchange this information? (Json?)
  • Should this information go in the body of the response or in another place?

3) Following the standard should the Access Tokens and the protected information provided be persisted by Consumer server.

Thanks

  • 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-17T14:22:09+00:00Added an answer on June 17, 2026 at 2:22 pm

    You probably should have linked the official documentation. But in any case, here are quick answers to your questions.

    1. At this point the Consumer has an approved Access Token linked to a user and the Provider server validates it.

    What would happen if the Access Token is invalid? What kind of status
    code would the Provider server issue? If this happens should the
    Consumer server redirect the user to screen where he can authorize
    another Token?

    As per RFC 5849, a Provider should return a 401 (Unauthorized) status code in cases where any of the supplied tokens are invalid.

    The server SHOULD return a 401 (Unauthorized) status code when
    receiving a request with invalid client credentials, an invalid or
    expired token, an invalid signature, or an invalid or used nonce.


    1. If the validation of the Access Token is correct, the Consumer and
      the Provider will exchange information. For example the Consumer will
      ask the email address of the user and the Provider will provide it.

    What protocol should be used to exchange this information? (Json?)
    Should this information go in the body of the response or in another
    place?

    The term their should have been can, and not will. The spec does not mandate any particular information that is required to be transmitted between Provider and Requestor once authentication is complete. This determination is entirely up to the application provider


    1. Following the standard should the Access Tokens and the protected
      information provided be persisted by Consumer server.

    Once again, there is no requirement mandated by the specification. However it is common practice to store the access tokens retrieved from the Provider. I am not a lawyer (IANAL), but note that saving data retrieved from the Provider, into a third party system, may violate the law.

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

Sidebar

Related Questions

I need to know if any JSON implementations can handle sparse arrays to my
I need to know, if there is any library that can handle this features:
I know that HideSelection property is missing in CF. But i still need to
I would need to know how to handle the intent between tabs. For example,
I would like to know how to access a protected method. I have a
I need some help with some advanced file include code.. I googled around, but
Need to know this so that i could send DTMF and that is going
Need to know which event triggered after text selection done in Apple iPad. It
I need to know how to change background of expanded list item when it
I need to know how to exclude files/folders from php generated zip. Here is

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.