-
Notifications
You must be signed in to change notification settings - Fork 9
weblivz/OAuthWebApi
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The first release of the code. It has been tested in the lab but not in production yet, so consider is a preview release (and something to learn from). Couple of isses I could do with some help/fresh set of eyes on (you can find these issues by searching for ### in the source): 1. In the DatabaseKeyNonceStore class if i don't check for an existing context/nonce/timestamp combination and return true if one already exists, when a duplicate is inserted, the app throws an exception. What should be the behaviour of adding an existing nonce - do i need to delete the original one? 2. If i don't call "TaskContinuationOptions.ExecuteSynchronously" to make the API handler tasks execute synchronously the app just hangs on subsequent requests. Sychronous has no issues at all but i'd like to understand what is going on. Sample Instructions =================== 1. Create a database called OAuthWebAPI 2. Run the SQL Script in the Model folder. 3. Add a user: Username=steven Password=pwd 4. Add a client: ClientIdentifier=samplewebapiconsumer ClientSecret=samplesecret Callback=http://localhost:40551/ Name=web api sample ClientType=0 Thanks to Andrew Arnott and David Christiansen at http://www.dotnetopenauth.net as well as http://zamd.net/ for sample code, pointers and insight.
About
Working example using OAuth2 and WebAPI
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published