Skip to main content

BSA-JS

Introducing the BSA-JS, a JavaScript library built for an easy authentication on the web.

Load BSA-JS#

Latest version of BSA-JS is now available.

<script type="text/javascript" src="https://developers.fnsvalue.co.kr/bsa-js/bsa.js"></script>

Specify the version#

If necessary, specify the version on the BSA-JS URL as below.

<script type="text/javascript" src="https://developers.fnsvalue.co.kr/bsa-js/{VERSION}/bsa.js"></script>
  • Example
<script type="text/javascript" src="https://developers.fnsvalue.co.kr/bsa-js/1.0.12/bsa.js"></script>

Methods provided#

Below are the methods provided by the BSA-JS

NameDescription
constructorConstructor of the BSA-JS
requestAuthHandles the BSA authentication request, and redirect to the setup URL after authentication
requestAuthCallbackHandles the BSA authentication request, and returns the result to the setup callback function after authentication
onCancelCancels the BSA authentication request
setAuthTimerProvides remaining time for authentication
setAuthMessageProvides authentication process message
requestQrHandles the BSA QR authentication request, and redirect to the setup URL after authentication
requestQrCallbackHandles the BSA QR authentication request, and returns the result to the setup callback function after authentication
onQrCancelCancels the Guardian CCS QR authentication request
setQrTimerProvides remaining time for QR authentication
setQrMessageProvides QR authentication process message
requestOtpHandles the BSA OTP authentication request, and redirect to the setup URL after authentication
requestOtpCallbackHandles the BSA OTP authentication request, and returns the result to the setup callback function after authentication
onOtpCancelCancels the BSA OTP authentication request
setOtpTimerProvides remaining time for OTP authentication
setOtpMessageProvides OTP authentication process message
requestTotpCallbackHandles the BSA TOTP authentication request, and returns the result to the setup callback function after authentication

Function Description and Example#

Constructor#

A constructor is an essential element for the BSA-JS. The client key which is necessary to utilize the BSA-JS, can be confirmed by inquiring the person in charge or directly at the BSA Portal.

constructor(clientKey)

Parameter#

NameTypeDescription
clientKeyStringClient key generated to utilize the BSA

Example#

const bsa = new BSA("{Client Key}");