How to create oauth2 provider for authentication

coder
coder used Ask the Experts™
on
Hi Experts,

         I want to create web-API's(REST) project, and this api's required to be authenticated.  Please tell the best way to authenticate? is Oauth2 is good for authentication? if so you how to create a oauth2 - provider project.   is there any sample code?, I am using sql server database.   Can we use this database to store the consumer keys.  

consumer application which is using can be asp.net web application or it can be mobile application.  Please help

Thanks in Advance,
Bharath AK
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
I have not worked with .net & sql server. I used to setup for customers vs web services calls through oauth2. We need to setup server with database data to access by client.

Please go through this link, http://oauth.net/2/  It has clear documents to implement oauth2 server.
coderdeveloper

Author

Commented:
Hi Loganathan Natarajan,

      Thanks for your reply,  I need one clarification, does the keys and webservices server reside on the same server to serve customers?   or in different servers.  Do we need to store keys and secret in database? Please revert back to me.

With Many Thanks,
Bharath AK
coderdeveloper

Author

Commented:
Hi Loganathan Natarajan,

     Do you have any sample code, irrespective of any technology(.net,java)?  Please get back to me.

Thank you,
Bharath AK

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial