The numbering in the diagram below corresponds to the order of operations.Documentation Index
Fetch the complete documentation index at: https://docs.apinizer.com/llms.txt
Use this file to discover all available pages before exploring further.
- Security Manager in Apinizer requests Basic (Base64) type authentication information from API Client. If this authentication is correct, the flow continues.
- Apinizer makes a request to Backend API.
- Backend API responds to Apinizer.
- Apinizer responds to API Client.

Creating API Proxy

Since no proxy definition has been made before on the opened page, the text No records found! appears.



- The Usage field specifies who will use the created API Proxy. Options such as publisher, consumer, publisher and consumer are available here.
- The Sharing Type field specifies the sharing type of the created API Proxy. Options such as external, internal, external and internal are available here.
- One or both of the two API addresses under the Addresses tab can be selected. If both addresses are selected, Apinizer will perform the Load Balance operation itself.
- Relative Path is the address where the created API Proxy will be opened for access.
- The Category List field also allows categorization of the created API Proxy.


Policies to be added with the All expression above these endpoints can be applied to all endpoints.

Creating Credentials
The information for the Credential to be added will be username = apinizer, password = 123123aA. Go to the Identity Management menu. Here, click the Credentials menu under the Credential Management menu.






Variable Definition
The definition of the variable to be used in the policy must be made. Click the Add button.
- Enter the name of the variable to be created in the Name input field.
- The Type field specifies the type of variable to be used.
- The Header Name field expresses what name the variable to be used will be named in the Header.

Adding Authentication Policy
The Basic (Base64) Authentication policy can now be added. Go to the page where API Proxies are listed and select the proxy named Swagger Petstore from here. Then go to the Develop tab and click the Add Policy button. On the opened page, the Basic Authentication policy is selected.
- The value to be selected in the Identity/Role/Group Service field is the Security Manager value. Because credentials control will be performed by Security Manager.
- In the Variable for authorization field, since the authentication type used is Basic (Base64) and in this authentication type the username-password information used is encrypted, this expression is used. In this scenario, this value will be retrieved from header.
- The Add Client Info To Header option specifies whether client information will be present in the Header going to the backend API.
- If this option becomes active, another parameter named Authenticated User Header Name appears.
- The X-Authenticated-UserId expression here specifies the header name with which the client information going to the backend API will go.

The relevant icon is seen when the policy is registered.

Testing the API Proxy
After selecting the “/pet/” endpoint, click the Test Endpoint button.

Performing Base64 Type Encryption
Select the Toolbox menu under the Test menu. Here, there is a tool that can perform encode and decode in Base64 encryption format. This tool is selected.



