c# - Create Access Token using Dotnet Open Auth -
i have website contains lot of user informations. want share client website through proper authentication. going develop api using asp.net mvc 4, selected dotnetoauth providing authentication. if website want access data website, have register developer website, after registration website generate consumer key , secret key. after registration, each api request client pass these keys. done.
using consumer key , secret key, client send api request , if valid token not available in request, redirect login page. after successful login, token generate , client can use token furthor request expiry.
anybody have idea creating token based on consumer key , secret key of dotnetoauth. iam using asp.net mvc
thanks
in order create access token using dnoa, should implement interface iauthorizationserverhost. method createaccesstoken responsible of creating token.
i recommend download dotnetopenauth samples, , have 'oauthauthorizationserver' project.
hope help.
Comments
Post a Comment