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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:30:56+00:00 2026-05-23T11:30:56+00:00

I have been trying for hours now to get OAuth working on with an

  • 0

I have been trying for hours now to get OAuth working on with an API that I am working on, and obviously my approach must be wrong, because I constantly hit dead ends.

What I have got:
– An API that is implemented in .NET MVC, which returns a data result as either XML or JSON.
– It requires an API Key to be able to use the API.
– A website (X) as backend for managing the API keys.
– Another website (Y) with loads of data which this API extracts data from.

What I am supposed to get:
– The ability to let the API Keys access data on users from the website (Y), if they allow it themselves via OAuth (1.0A).

What I have tried:
– So far, my approach has been to use the DotNetOpenAuth library, but it is almost all about how to implement OpenId, and some classes in the OAuth namespace even seem hardcoded towards OpenId functionality. So I have been trying to see what is going on in the examples that are using OpenId, and see if I can use parts of that to implement OAuth without OpenId.
– Various approaches includes, on the server side, to read an “UnauthorizedTokenRequest” and return it via calling the ServiceProvider.Channel.PrepareResponse(unauthorizedTokenRequest).AsActionResult(), which for some reason tries to add two values of nonce and timestamp to the response which crashes, and skipping that, it still returns a response that I am not able to read on the client end.

So I guess, my question really is:

  1. Is there a guide/documentation that tells you what parts of the DotNetOpenAuth library I should be using on the server side, and when in the process they should be used, in order to implement OAuth on a MVC server that is not hardcoded to OpenId, as neither of the websites (X nor Y) supports OpenId?
  2. Should I rather use another library if I am not going to use OpenId as DotNetOpenAuth seems to be focusing the most on?
  3. Any other approaches that would fit my need better are very welcome.

Thank you in advance!
– Johny, Denmark

  • 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-23T11:30:56+00:00Added an answer on May 23, 2026 at 11:30 am

    DotNetOpenAuth supports OpenID, OAuth, and InfoCard when used together and separately. It sounds like what you’re building fits what the DotNetOpenAuth sample “OAuthServiceProvider” is demonstrating. True, that sample uses OpenID to log users in, but you can ignore the login.aspx page in the sample completely and thus be completely separated from OpenID. Using OAuth without OpenID is totally supported.

    The couple of OpenID related methods in the OAuth classes is merely to support the “OpenID+OAuth” extension of OpenID, which doesn’t apply to your situation so you can ignore them.

    Regarding your twice added nonce issue that you saw, sometimes it happens that the Service Provider inappropriately has two modules validating incoming OAuth requests, each validating the nonce and thus the second module always rejects every request. You might check if that is causing your problem. Otherwise see if the unchanged sample works for you, and if so, compare what it does against what you’re doing to see what might be going wrong. Activating logging also frequently helps.

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

Sidebar

Related Questions

I have been trying for several hours now to get sorl-thumbnail working, but it
I've been trying to get this working for a few hours now. I have
I have been working on this for 24 hours now, trying to optimize it.
I have been trying to get this effect for a couple of hours now
I've been trying for a few hours now to get it working. So far
I have been trying for too many hours now myself and can't get the
I've been trying to get this working for a couple of hours now but
So I have been trying and battling with this for a few hours now.
This is crazy, I have been trying for hours to get this to work.
So I have been working and trying for a couple of hours. I am

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.