2.4.1 Token Generation

This topic provides information on Token Generation.

The Token Generation API is used to check user access.

curl --location
        '<protocol>://<ip>:<port>/api-gateway/platojwtauth' \--header 'appId: SECSRV001'
        \--header 'Content-Type: application/json'
        \--data '{"username": "<user>","password": "<password>"
    }'

protocol : http/https check in Eureka for service api-gateway-router

ip : api-gateway-router ip

port : api-gateway-router port

user : encrypted user

password : encrypted password

Note:

Use user/password in Base64 or PLATO encryption.

To find the encryption type, use the following query:

SELECT * FROM digx_fw_config_all_b WHERE CATEGORY_ID = 'authenticationConfig';

Response : The token returned by this API will be used in the subsequent API.