Note that there are some explanatory texts on larger screens.

plurals
  1. POBut Seriously.... Example of ASP.NET WebAPI implementation including OAuth
    primarykey
    data
    text
    <p>I'm really not interested in WCF samples. The DotNetOpenAuth implementations that I found are also <a href="https://github.com/DavidChristiansen/DotNetOpenAuth.WebAPI.40">incomplete</a> or <a href="https://github.com/DotNetOpenAuth/DotNetOpenAuth/tree/master/samples">assume WCF</a>. I've found <a href="https://github.com/thinktecture/Thinktecture.IdentityServer.45">Thinkitecture.IdentityServer.45</a> which is anything but lightweight and isn't really appropriate for building into my new WebAPI project. I even found the <a href="http://nuget.org/packages/OAuth2DotNet">Oauth2DotNet</a> project that has almost no real information.</p> <p>Microsoft has posted a <a href="http://nuget.org/packages/Microsoft.AspNet.WebPages.OAuth">few</a> Oauth/OpenID related projects, but I can't even find proper documentation for these either.</p> <p>My project: Create a new site to provide "REST-style" API services for authorized mobile applications using .NET 4.5 and ASP.NET WebAPI. Since these applications don't necessarily have to act on behalf of a user, we believe that "2-legged" Oauth will be acceptable because we would like the ability to shut down and deny access to our API if a specific application gets out of hand.</p> <p>Out of all of this, I've spent a week trying to get a basic implementation working, but haven't even been able to identify the various token types and what makes up the tokens themselves. This really shouldn't be so difficult and I find the lack of basic information on the topics involved quite frustrating. Yes, the specs are posted, but nowhere are they distilled and ready for implementation.</p> <p>I'd like the ideal solution to extend to integrate properly with the WepAPI's Authenticate attribute, probably as an ActionFilter/AuthorizationFilter so I can identify and authenticate the remote application before attempting to authorize access to one or more of my elegant REST-ful API methods.</p> <p>Where's the "getting started"?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload