20 points
You'll need to write a simple app capable of receiving POST
requests, validating JWT tokens and storing some trivial data between requests.
Grab a jwt_secret
from the problem endpoint. Configure your app to use it for validating all incoming JWTs. POST
your app_url
to the solution endpoint.
What happens now is as follows:
POST
requests with a JWT token as body (path will always be /
)append
set to a stringappend
key inside - when this happens, respond with a simple JSON object with the solution
key set to whatever you got after appending all the strings receivedOnce you grab a jwt_secret
, you have 5 seconds to submit an app_url
to the solution endpoint.
GET /challenges/jotting_jwts/problem?access_token=...
Problem JSON will be in the following format:
jwt_secret
: the JWT secret used to sign the tokens
POST /challenges/jotting_jwts/solve?access_token=...
Solution JSON structure:
app_url
: the URL of your app, which we will flood with JWTsWell, there's a certain beauty to JWTs, most of it thanks to their simplicity. But the idea came from an interview where the interviewee, despite quite a lot of experience had no intuitive understanding of that JWTs are and how they work. I figured this would make an interesting topic for a challenge and maybe give you an excuse to read more into these babies.
h^
by buying me a coffee. Cheers!h^
profile is here.