Hello
I need to generate a jwk_uri JSON Web Key (JWK) which is a web page returning a JSON response (see below) as part of an OpenID connect project.
This Web Token is being generated using a secret key using Gaurav's code which will be different for each client accessing the system.
An example of the web token we are creating is as follows:
Key:
ThisIsMySecretKey
JwtHashAlgorithm:
RS256
Web token generated:
eyJhbGciOiJIUzM4NCIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwOi8vaXNpLXdlYi1zc28uY28udWsvYXBpL2xvZ2luLmFzcHgiLCJzdWIiOiJhYzc1YjYyODRkZWY0MjMyODFjYTdkOWUxMTRiYmRmYiIsImF1ZCI6IlVpNzFhT2xiczEiLCJleHAiOiIxNDYzODYwMTA0IiwiaWF0IjoiMTQ2Mzg1NjUwNCJ9.BeNeJfumi_3yXo8LOnBrL3Cn1wVkua5TL_41asHGxR0UOl4mmRS3MgEo98RMCN85
I can decode this Web Token fine using my code.
What we need to produce is the JSON response which is a JSON Web Key (JWK)
The JSON response this needs to be in the format (and examples)as detailed here:
[login to view URL]
Example JSON Web Key's can be generated here:
[login to view URL]
Thanks.