---
title: Auto-Login with Encoded Credential
slug: kronpam-reference-guide-3-9-0/auto-login-with-encoded-credential
description: Learn the basics of HTTP basic authentication and how servers can request authentication information from clients. Find out how the information is encoded in base-64 format and discover the auto-login feature that allows for replacing patterns with encode
docTags: 
createdAt: 2022-07-28T11:43:29.000Z
---

The HTTP basic authentication is a simple challenge and response mechanism with which a server can request authentication information (a user ID and password) from a client. The client passes the authentication information to the server in an Authorization header. The authentication information is sent in base-64 encoding format.

::Image[]{src="https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/hh6YEPkmVSqO2qL_85kWJ_image.png" size="80" width="750" height="67" position="center" showCaption="false"}

To use the auto-login feature in this scenario, the **Login Username Matcher Template&#x20;**&#x61;nd **Auto Login Password Matcher Template&#x20;**&#x6D;ust have the same value as **CastleAuthorization=Basic%20$$value$$(&|$).&#x20;**

The **username: password** content will be encoded with Base64 and the matched pattern within the request body will be replaced with the encoded content.

::Image[]{src="https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/AxFKIjbw6JLJaCkA-AT18_image.png" size="62" width="785" height="1176" position="center" caption="Auto-Login Properties Definition" showCaption="true"}

