Forum Discussion

binarygiant's avatar
binarygiant
Reel Rookie
2 years ago

Public Key Endpoint only Exposes 1 Public Key [ROKU-PARTNER-SERVICE-2021-08-05-10-20]

Hey Roku community, I'm trying to decode webhook messages, but I'm running into a problem where the name of the key "kid" in the message payload is "ROKU-PARTNER-SERVICE-TEST-2023-09-29-17-16", but the link for Roku's public keys doe NOT contain this value, only "ROKU-PARTNER-SERVICE-2021-08-05-10-20".

How am I supposed to decode the message if there is no public key available at the specified endpoint (https://assets.cs.roku.com/keys/partner-jwks.json).

Documents used to come to this conclusion:
https://developer.roku.com/docs/developer-program/roku-pay/implementation/push-notifications.md#sale
https://developer.roku.com/docs/developer-program/roku-pay/implementation/push-notifications-jwt.md
https://developer.roku.com/docs/developer-program/roku-pay/implementation/push-notifications-jwt.md#public-keys

 



Result: {"keys":[{"kty":"RSA","alg":"RS256","kid":"ROKU-PARTNER-SERVICE-2021-08-05-10-20","n":"tGgfIclcR9fLoz0w3yXOJytTMKI5zht9i2utQnllirQvXVc-tH8y9LVVdMNzsHZWm-aTUeTwV2hzXvP7FnuBMaMXe5ZkGXbY8f-VmPTWFZCyKUVV4gZaxt3SArpKBpM2jOqveljyiHNxc6cXHmIY-cr6uXn7je-S9BygPNr7oTCDb0GGw-Y7uWCPi5ZMY91q57exSxN1TtjbGI1Af2-voFMBA6UMIfbkERPmxhYNSvPqLyF3QEYhpAn5LC10pDxNC0JGo5giheL0Nlp4mNlaoVJ6bdcr1hCJrsoT-pYPBv9T8G5T2YoO20egPbAtjIelMiJOUbp3gi32YgcpYl8G8w","e":"AQAB"}]}