I have an ASP.NET MVC app. I want link a Twitter user's account to a user account in my app. Previously, I was using Twitterizer. However, from my understanding, that library will no longer work because Twitter changed their authorization approach. With that in mind, what library is a C# developer recommended to use?
Does anyone know of a library that a C# developer can use to get a Twitter users access secret and access token?
Thank you
In new ASP MVC 4 template you have all work done and ready to use:
http://blogs.msdn.com/b/webdev/archive/2012/08/15/oauth-openid-support-for-webforms-mvc-and-webpages.aspx
You'd be hooking into their authentication system using OAuth. There are some pretty effective libraries for this kind of thing for .NET, check out twitter's dev site for the most up to date ones:
https://dev.twitter.com/docs/twitter-libraries
Related
I am trying to implement a QR code based login mechanism.
Currently, I have a username/password based authentication setup(using ASP.Net Identity). I am also creating a QR-scanner mobile app to interact with the backend.
Currently I am trying the steps from here and here for a QR code scan based authentication system.
Are there some solutions available to extend Asp.net Identity better than implementing a custom solution as suggested in the links?
What would be considered a good practice for this?
Appreciate your time for some suggestions.
I'm trying to implement GoogleDrive into my .net application
but on the tutorial i'm using from http://www.daimto.com/google-drive-authentication-c/ it says that it simply send the user to a login page of GoogleDrive but the question is where ? i don't see any code that sends the user to a login page.
so my question is how can i let the user authenticate before starting of?
Trying several days now and i don't have a clue how to do it.
hope someone can point me to the right direction.
What you are looking for is called External Authentication Services with ASP.NET Web API. MVC supports many external providers and is reasonably easy to implemented them within Visual Studio and a MVC project.
For implementing a login from ASP.NET have a look at the OAuth 2.0 Web applications (ASP.NET MVC). You can also have a look at this MVC tutorial MVC 5 App with Facebook, Twitter, LinkedIn and Google OAuth2 Sign-on C# - it contains exactly what you ask for - a redirect to the Google login page.
The Access-URL's are embedded into the Nuget-Package Google.Drive.API.v2/Auth/Client - when you use the assembly/the classes the url's are internally known:
A thorough explanation (and also the URL's when using pure REST to access the service) could be found here GDrive .NET Quickstart and here Using OAuth 2.0 for Server to Server Applications
Can someone please provide me with the workflow required to be able to simply post a message to my Facebook page? From what I have read, DotNetOpenAuth 4.1 does not support Facebook's OAuth 2.0 protocol? If someone has a better suggestion for an OAuth2 library, I'd like to hear it and if you can provide an example of how to post a message to a Facebook page, that'd be great!
Also, this is a Winforms application, not a Web Application.
OAuth2 clients are simple enough to write that you almost don't need a library. Try following the Facebook documentation yourself using HTTP calls in your winforms app and see if you can get it to work.
For client apps like winforms, the trickiest part can sometimes be that there isn't an obvious redirect URL.
DotNetOpenAuth 4.x does support Facebook (by implementing workarounds for FB's non-compliance with the spec).
I generally use ComputerBeacon Libarary. It is quite fluent
http://computerbeacon.net/library/facebookgraphtoolkit
I am currently working on a project and in this I have to implement login using Vimeo account. Furthermore I get application key and other information by registering my application on Vimeo. But on the Vimeo site there is no help how to implement the login functionality, and I am new to it. Can anyone help?
Vimeo uses OAuth, so you should be able to find an OAuth library for .NET and start working pretty quickly. This blog post looks like a good starting point and covers authentication as well as searching.
Does anyone have any examples or advice for how to go about using oAuth to provide the authentication mechanism for an API that should be publicly exposed?
Specifically I'm talking about being an oAuth provider for my own API, not integrating or authenticating with anyone else's API.
For example, I wish to be able to issue API keys to developers that they can use to authenticate and access my API, much in the same way Flickr does, and as far as I believe oAuth can support this, but I'm not sure how the solution would be structured?
It appears that DotNetOpenAuth has an example by the way of the OAuthSeviceProvider project in the Samples folder included in the distribution. It's written in WinForms and isn't cleanly written but definitely serves as a good starting point.