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

Accessing Windows identity information from ServiceStack for an intranet application


Within corporate environments, its commonplace to have an intranet that only staff have access to while using the internal network, be it locally or via VPN. Though a lot of authentication providers built into ServiceStack are focused on Internet services, you still have access to Windows authentication information when hosted on IIS.

Getting ready

This recipe requires the use of an IIS host that can enable Windows authentication. If you are on a PC that doesn't enable Windows authentication on IIS and try to turn it on, your options will probably look something like this:

If you are running a version of Windows that supports Windows authentication in IIS, you will be able to add it via Programs and Features for Windows 7/8 or through Server Management if you are working on Windows Server, as shown in the following screenshot:

Once the preceding instructions have been followed, we can enable Windows Authentication...