How to create oauth2 provider for authentication

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
LVL 1
Bharath A.KAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Loganathan NatarajanLAMP DeveloperCommented:
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.
0
Bharath A.KAuthor 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
0
Bharath A.KAuthor 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
0
rotem156Commented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.