@Operation(description = "Return openId configuration")
    @GetMapping(value = "/.well-known/openid-configuration", produces = MediaType.APPLICATION_JSON_VALUE)
    @ResponseBody
    public Map<String, Object> configuration() throws JsonProcessingException {
        return provider.metadata();
    }
@Test
    void configuration() throws JsonProcessingException {
        var response = controller.configuration();

        assertEquals(List.of("code"), response.get("response_types_supported"));
        assertEquals(List.of("authorization_code"), response.get("grant_types_supported"));
        assertEquals(List.of("openid"), response.get("scopes_supported"));
        assertEquals("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS", response.get("issuer"));
        assertEquals("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS", response.get("authorization_endpoint"));
        assertEquals(List.of("urn:nl-eid-gdi:1.0:id:legacy-BSN"), response.get("sub_id_types_supported"));
        assertEquals("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS", response.get("jwks_uri"));
        assertEquals(List.of("RS256"), response.get("id_token_signing_alg_values_supported"));
    }