-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for the /key/set request #48
Comments
I solved it by installing Configuring the service with : jose:
keys: # Configuration of the keys
public: # Unique key name
file: # Name of the method
path: '%kernel.project_dir%/config/jwt/public.key'
is_public: true
additional_values: # Optional values.
use: 'sig'
alg: 'RS256' And did a little symfony Controller like : namespace App\Controller;
use Jose\Component\Core\JWK;
use Jose\Component\Core\JWKSet;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\Routing\Annotation\Route;
class KeyController extends AbstractController
{
#[Route('/openid/key/set')]
public function decode(JWK $publicKey): JsonResponse
{
$keySet = new JWKSet([$publicKey]);
return new JsonResponse($keySet->jsonSerialize());
}
} My route was Anyway it would be good to have this directly in the symfony bundle. I'll try to take a look. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Relying parties who want to check the
id_token
validity against the public key issue aGET /ket/set
on the OpenId Authorization Server/Provider.We need a service to reply to this request with the public key.
The text was updated successfully, but these errors were encountered: