Rather than generate a token, pass claims directly through query strings. Passing
/?claims[sub]=User:1&claims[foo]=bar
is equivalent to signing in with
%{"sub" => "User:1", "foo" => "bar"} = claims
This allows claims to be tailored exactly to testing needs, and avoids side effects from having to generate a token from MyApp.Guardian.encode_and_sign(resource).
Rather than generate a token, pass claims directly through query strings. Passing
is equivalent to signing in with
This allows claims to be tailored exactly to testing needs, and avoids side effects from having to generate a token from
MyApp.Guardian.encode_and_sign(resource)
.