slim-jwt-auth
slim-jwt-auth copied to clipboard
Use against RS256
Can this library be used against RS256 encoded tokens and how?
Set RS256 as the algorithm and the public key as the secret.
$app = new Slim\App;
$app->add(new Tuupola\Middleware\JwtAuthentication([
"secret" => $publickey
"algorithm" => ["RS256"]
]));
You can find example of how to generate the token in firebase/php-jwt README. This middleware uses firebase/php-jwt for decoding the token.