Avatar of coder
coder
Flag for Australia asked on

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
Web DevelopmentASP.NETWCFC#Web Applications

Avatar of undefined
Last Comment
Member_2_5194534

8/22/2022 - Mon
Loganathan Natarajan

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.
coder

ASKER
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
coder

ASKER
Hi Loganathan Natarajan,

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

Thank you,
Bharath AK
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
ASKER CERTIFIED SOLUTION
Member_2_5194534

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.