Book Image

ServiceStack 4 Cookbook

Book Image

ServiceStack 4 Cookbook

Overview of this book

Table of Contents (18 chapters)
ServiceStack 4 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Getting started with Twitter authentication


ServiceStack has great support for integration with OAuth providers like Twitter. In this recipe, we will have a look at setting up an application so that Twitter users can easily sign in to your application.

Getting ready

First, we are going to need an application to integrate. We will start with a template from the ServiceStackVS Visual Studio extension. If you are using Visual Studio Express or a version prior to 2012, please see the Creating your ServiceStack solution with Visual Studio and NuGet section in Appendix A, Getting Started, and continue from the second instruction in the How to do it… section.

We will also need to register an application with Twitter. This will give us unique application keys so that users can be told which application they are registering their Twitter account with.

Note

Please note that these instructions are valid at the time of writing; however, changes to how Twitter allows the registration of applications might...