3.5.6 How to get access token through Basic Authentication

Mandatory CSF Key

Table 3-6 Mandatory CSF Key

CSF Map name Key
ofsll.int.common ofsll.jwt.JwtSecretKey

The Ofsll.jwt.JwtSecretKey refers to the secret that must be associated at the time of token generation. This is the key would be used to validate the token.

Mandatory Request headers

Table 3-7 Mandatory Request headers

Headers Expected Value
Content-Type application/json
Authorization Bearer <Base64encoded value of resource owner credentials>

Request JSON payload

{ "AuthRequest": {
"GrantType" : "PASSWORD"
}}

Response JSON payload

{
"AuthResponse": {
"Token":
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJPRlNMTFNVUFIiLCJpc3MiOiJ
PRlNMTF9SRVNUX0FQSSIsImV4cCI6MTU0NTY3MjEyMSwiaWF0IjoxNTQ1NjcxMjIxfQ.
tM5JB4h6VjJ59dXteth9ZY4b0ayz9XpT5J2jYu8zIHr4uvkKanyvRgU1OSXhovdyw8zMl_
ajqDLdESc_lZv3w",
"Result": {
"Status": "SUCCESS",
"StatusDetails": "Token Generated Successfully"
}
}
}