Vonage / vonage-ruby-code-snippets

Ruby code examples for working with Vonage
MIT License
8 stars 9 forks source link

DEVX-3061 add incoming jwt decode snippet #82

Closed hummusonrails closed 3 years ago

hummusonrails commented 3 years ago

DEVX-3061 Add Incoming JWT Snippet

This adds a snippet to decode an incoming JWT using the standard Ruby JWT library

hummusonrails commented 3 years ago

Ultimately this needs to live on https://github.com/Nexmo/nexmo-developer/blob/main/_documentation/en/concepts/guides/webhooks.md, not as a discreet snippet.

Can we also show where the signature is coming from, and pulling in a secret to help decode it?

This code snippet will be referenced here: https://github.com/Nexmo/nexmo-developer/pull/3562

Is that sufficient, or is there something specific for this snippet that needs to be added?

dragonmantank commented 3 years ago

Is that sufficient, or is there something specific for this snippet that needs to be added?

Ah, didn't see that other PR, so since we're pulling it in nevermind! That will be good enough to reference.

hummusonrails commented 3 years ago

Is that sufficient, or is there something specific for this snippet that needs to be added?

Ah, didn't see that other PR, so since we're pulling it in nevermind! That will be good enough to reference.

No worries, lots of PRs everywhere. :) Are we good to go on this one then? It'll unblock the NDP one after.