Hi.

I think about to integrate the "l8w8jwt_decode(...)" into HAProxy.
https://github.com/GlitchedPolygons/l8w8jwt

The RS* methods requires some "RSA_PRIVATE_KEY[] = ..." and I'm not sure
what's the best method for a sample to read such a key in HAProxy converters.

My suggestion for the converter name.

jwt_verify(alg,key) : boolean

Example call:
http-request set-var(txn.jwt_verified) 
req.hdr(Authorization),ub64dec,jwt_verify(alg,HSKEY)
http-request set-var(txn.jwt_verified) 
req.hdr(Authorization),ub64dec,jwt_verify(alg,"path_to_RS_PEM")

Any opinions?

Regards
Alex

Reply via email to