DAmn/Authtokens

deviantART uses authtokens to validate your login when you log into the website. This authtoken is required for you to be able to interact with the website as a logged in user, and as such must be provided in order to log into the dAmn Server. Authtokens used to be given as part of a cookie called userinfo which you receive when you log in, but this was changed February 2011 and it is now a separate cookie altogether called auth. Examples for fetching the authtoken under the old system can be found here.

Bots

Older bots such as dAmnBot required you to manually find and enter your bot's authtoken. This usually involves searching through the source code of the page at http://chat.deviantart.com/chat/channel, where channel is the name of the channel you want to join. These days, as a part of making things easier to use, most bots have a class or function dedicated to fetching your bot's authtoken for you. People tend to refer to these functions or classes as the "authtoken grabber", as it grabs the authtoken from a header returned by deviantART.com. Some grabbers return the whole cookie given by deviantART.com, and some only give the authtoken itself.

Grabbers

Here, you can see examples of authtoken grabbers written in different languages.

C#

dAmnStorm

This is a very poorly done authtoken grabber for the latest change in the deviantart login system.
<csharp>
using System;
using System.Net;
using System.Web;
using System.IO;

dAmnStorm update by plaguethenet

This is a minor modification to the dAmnStorm grabber, It cleans up the IndexOf use with regular expressions, and secures the post request against a malicious user and/or special characters in the password. This is the production code now used for cheddar, Thank you to whoever wrote dAmnStorm.

Python

dAmn Viper

The authtoken grabber in dAmn Viper involves more than one file, to achieve compatibility with multiple versions of Python. Terra, however, is built for Python3.1, so the code listed here is only compatible with Python 3. So, the first module, which should be used by other applications if the authtoken is required, is <python-inline>dAmnViper.deviantART</python-inline>, and the code we're interested in from this module is shown below.
<python>
dAmn Viper - A Python API for dAmn.