Partner Public Key to validate JWT
The Partner Site requires a public key to validate the JWT token sent from Cisco DNA Spaces dashboard to provision seamless login. The Partner Site must call the partnerPublicKey API to retrieve the public key from the Cisco Spaces - Partner Dashboard to validate the JWT.
Method: GET
API Endpoint: <baseUrl>/client/v1/partner/partnerPublicKey/<<version>>
Note | The domain will vary based on the environment such as Sandbox, Pre-Production, and Production. The <baseUrl> must be taken from the JWT token. |
Content-Type: application/json
Response Format:
{
"status": true,
"message": "Successfully fetched partner keys.",
"data": [
{
"version": "v1",
"publicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCk94vw9OPYkuv8ZQOqGCZ0mZ9
cCFTKBbDeGX8akpFFmPJ3QK2beUY+lXqe2Rdu35RtUrWOwKyy6riCUDQpql8lg8R
PrWP6MrWrX5kZ+Adb9cLc0mBW92Rvm+qxjHHRHSSop4uGIDpq2P9RKurNMTl9SX1q
kPfjpYw9d8GdEYh+gQIDAQAB"
},
{
"version": "v2",
"publicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCpeGHWXyhj/ZdEOWesPk3z7oDbN+V
PTTeA43cbruL8X8JSRbb+hJO60867gbPMC+odTEqYEutkabaBeUFH0pbmXACGUq/maWaR
j23UedljdXcGKtwwQmzbAMJbHWSAXUlEGApYwzAO9qbz6SDiDqq/9vo4LVLYQ1ChRN82W
KawXwIDAQAB"
}
]
}
Note | As per the .pem file format, use the following code block:
|