﻿namespace Dike.Web.Runtime.Security.AntiForgery
{
    /// <summary>
    /// Implement this interface to configure the anti forgery token names.
    /// </summary>
    public interface IAntiForgeryConfiguration
    {
        #region Properties

        /// <summary>
        /// Gets or sets the cookie name to transfer the anti forgery token between server and client.
        /// </summary>
        /// <value>The cookie name to transfer the anti forgery token between server and client.</value>
        /// <remarks>The default value is <b>XSRF-TOKEN</b>.</remarks>
        string TokenCookieName
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the header name to transfer the anti forgery token form client to the server.
        /// </summary>
        /// <value>The header name to transfer the anti forgery token form client to the server.</value>
        /// <remarks>The default value is <b>X-XSRF-TOKEN</b>.</remarks>
        string TokenHeaderName
        {
            get;
            set;
        }

        #endregion Properties
    }
}