# API AUTHENTICATION & SECURITY

## Sacombank-SBR build API system with 4 security methods:

<table data-header-hidden><thead><tr><th width="150"></th><th></th><th width="150"></th><th></th></tr></thead><tbody><tr><td><strong>STT</strong></td><td><strong>Security METHOD</strong></td><td><strong>Requirement</strong></td><td><strong>Description</strong></td></tr><tr><td>1</td><td>Trust IP</td><td>Required</td><td> Whitelist public IP (only Production env)</td></tr><tr><td>2</td><td>Authentication</td><td>Required</td><td>Ask Sacombank-SBR for UserID &#x26; Password</td></tr><tr><td>3</td><td>HTTPS Protocol</td><td>Required</td><td> </td></tr><tr><td>4</td><td>Digital Signature certificate</td><td>Required</td><td>Encrypted/decrypted the body content</td></tr></tbody></table>

* The Partner have to send us a IP of the machine that connect API to our System.
* We will create UserID & Password and provide The partner for Authentication.
* The system will be deploy on **HTTPS** protocol, means that all incoming and outgoing request messages will be encrypted/decrypted and sent by way of HTTPS for efficiency.
* Digital Signature certificate: Sacombank-SBR partner will create a private key and a public key by using **SHA256WITHRSA**  algorithm to check signature and auth digital contents

## Request Require

Each request send to Sacombank-SBR include:

<table><thead><tr><th width="150">Category</th><th width="228.98360655737702">Parameter</th><th width="424.38382694376804">Description</th></tr></thead><tbody><tr><td><strong>Header</strong></td><td>Authorization</td><td><ul><li>UserID: &#x3C;by SBR></li><li>Password: &#x3C;by SBR></li><li>Method: Basic Authentication</li></ul></td></tr><tr><td></td><td>Signature</td><td><ul><li>Signature certificate received packet match with each request through the Private key.</li><li>Signature content is the body of request.</li><li>Algorithm: <strong>SHA256WITHRSA</strong></li></ul></td></tr><tr><td></td><td>Content-Type</td><td>Application/json</td></tr><tr><td></td><td>Method</td><td>POST</td></tr><tr><td><strong>Body</strong></td><td></td><td>String JSON</td></tr></tbody></table>

## API DESCRIPTION

API Url: **https\://{SERVER}/{APP NAME}/Api/SBR/Function**

Method: **POST**

Dat&#x61;**:** JSON

Url description:

<table data-header-hidden><thead><tr><th width="163"></th><th></th></tr></thead><tbody><tr><td><strong>Key</strong></td><td><strong>Description</strong></td></tr><tr><td>SERVER</td><td>Public IP of SBR</td></tr><tr><td>APP NAME</td><td>Application name (IIS pool)</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sacombank-sbr.com.vn/api-authentication-and-security.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
