Authenticating Against Atlassian Crowd from A .NET App

Authenticating Against Atlassian Crowd from A .NET App

Just about every freelance developer or a development firm have a set of tools they use for their work. At Atmist, one of the most important tools is Atlassian’s Crowd. We use this identity management system to log into a variety of applications that we have either purchased or built. The beauty of this tool is that we only need one company username and password for just about everything. One password to rule them all! Today, I will show you simple way of authenticating against Atlassian Crowd from a .NET application.

Lets begin by first navigating to your Crowd homepage and creating an Application. Set the Application Type as Generic and enter in any Application Name and Password. Click Next and set your connection settings then move on to the next step. Continue on with the process and once you are finished, confirm everything. That is it for Crowd. Pretty simple right?

Note that I assume that you have a basic .NET MVC application created or that you are using a template. With that said, open your solution and include the dotNetCrowdAuthentication.cs from here in your project. Next, open your Account Controller and instantiate Crowd Authentication Service with your Crowd’s URL, the application name and password that you had set earlier.

In your Login method, call the service with a username and password. That is it! You will now be authenticated. To log off, simply call DeleteInformation() in Crowd Authentication Service.

Using the Rest API provided by Atlassian Crowd, it is very easy to use the already existing and implemented identity system at your work environment.

Sahir Memon

Sahir is the creator of Write Often, an app for writers. As a developer and tech enthusiast he spends his time either creating apps or playing around with the latest toys.

Share this article On

One Response to “Authenticating Against Atlassian Crowd from A .NET App”

  1. Ryan McDonough -

    Perfect, thanks for creating this – great starting place for using Crowd in my .net apps.

Reply to Ryan McDonough Reply to Comment