---
title: Auto-Login with Encoded Credential
slug: singleconnect-reference-guide-3-3-0/auto-login-with-encoded-credential
description: Learn about HTTP basic authentication and how it works for server authentication. Discover the process of requesting user ID and password information from the client, which is then sent to the server in base-64 encoding format. Explore the auto-login feat
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, the **http.auto.login.username.matcher.template** an&#x64;**&#x20;http.auto.login.password.matcher.template** must have the same value as **CastleAuthorization=Basic%20$$value$$(&|$).** 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/AJYMCW8UAWsfg5I7MNUMX_image.png" size="66" width="750" height="502" position="center" showCaption="false"}

