Gatling and JWT

829 views
Skip to first unread message

Robin Fernandes

unread,
Feb 26, 2014, 4:57:49 PM2/26/14
to gat...@googlegroups.com
Hi all,

I recently needed to write a load test that sends requests with a JWT token for authentication. I thought others might run into this too, so I started to put the glue-code to generate the JWT signature from a Gatling Scenario in a separate module: https://bitbucket.org/atlassianlabs/gatling-jwt

It's essentially just a wrapper around http() called httpWithJwt() that sports an extra method sign(), which appends an extra query param holding the JWT token.  The token is derived from the request's path, method and other query params, plus some extra info about the principal.

It's in very early stages (for example, it only supports GET for now), and has only been tested/used in my specific Scenario, but I thought it might be useful to get it out there nonetheless. 

Cheers,
Robin

Nicolas Rémond

unread,
Feb 26, 2014, 6:18:04 PM2/26/14
to gat...@googlegroups.com
Hi,

Thanks a lot for sharing this with us. 

Cheers
Nicolas


--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Alan Alfredo Rojas Marroquin

unread,
Feb 12, 2015, 11:24:02 AM2/12/15
to gat...@googlegroups.com
Hi
I need to do Post Request to with JWT. Your code was very helpful.  Maybe you can help to implement the post request with Body. Any help will be apreciatte.

Stéphane LANDELLE

unread,
Feb 12, 2015, 11:26:57 AM2/12/15
to gat...@googlegroups.com
Helping with implementing has a name: consulting :)

Stéphane Landelle
Lead developer


--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alan Alfredo Rojas Marroquin

unread,
Feb 12, 2015, 11:44:50 AM2/12/15
to gat...@googlegroups.com
That's helpful :)


El miércoles, 26 de febrero de 2014, 16:57:49 (UTC-5), Robin Fernandes escribió:
Reply all
Reply to author
Forward
0 new messages