New question to keep this question specific and to the point.
I have a JWT from Azure and now I need verify the signature in my application.
The public keys from Microsoft can be found here:
https://login.windows.net/common/discovery/keys
How do I use these keys to verify a signature? I can tell these these are the public keys I need as the X5T header in the JWT matches those on this public key list.
I am using the JWT PHP library but everything I enter as the public key seems to fail.
supplied key param cannot be coerced into a public key
So using the link above, that goes from there into the PHP openssl_verify function as parameter three ($key in the example below)?
$success = openssl_verify($msg, $signature, $key, 'SHA256')
Everything I enter causes an error in one way or another.
Thanks,