Error with mod_auth_openidc when kid is set in JWKS
When kid is set, mod_auth_openidc check also the kty, and it fails:
==> /var/log/apache2/error.log <==
[Sat May 19 15:47:10.388791 2018] [auth_openidc:debug] [pid 3516] src/util.c(670): [client 127.0.0.1:58352] oidc_util_http_call: HTTP response code=200, referer: http://auth.example.com/oauth2/authorize?response_type=code&scope=openid&client_id=openidc&state=O8n91Fyu7qwtyGyuq0mUFhmgpBE&redirect_uri=http%3A%2F%2Fopenidc.example.com%2Fredirect_uri&nonce=OC3B2ihHYwMrqglt8-8eG903LdchKU0uy6tDFu9FJh8&prompt=login
[Sat May 19 15:47:10.388804 2018] [auth_openidc:debug] [pid 3516] src/util.c(675): [client 127.0.0.1:58352] oidc_util_http_call: response={\n "keys" : [\n {\n "e" : "AQAB",\n "use" : "sig",\n "kty" : "RSA",\n "n" : "44hKjc-9ghBJ9Ul3iSC4RTlmCzSLfVxytfRDTAInfA2FHhpPpMlqMkX3KG5BB0kfwQgXbAZ0SIOWiAvaPc79k39ynbXcAnRfn-iBBmKwULmqr-q4RAJDKa8_jOlDSAjjk5J3Yvi0mcnVQDbCeJbRw1eku8jkVZz7unEVwEmIavdF1rv7ulTQUxvgeLyUbuErhVGCXd5cq3oCCsHfptbQQznixv4p4pAUv3_vOrvO3tFAculszi5JFm1KFqG10Uid-6e0Na1PSKomoacHwf7PBHw0oMZXevlhLjEQDlqwgVK6RTki-ZzUgGBcC-7_XA_HlviyhtzWsVKrUl7ObSU4vw",\n "kid" : "secret"\n }\n ]\n}\n, referer: http://auth.example.com/oauth2/authorize?response_type=code&scope=openid&client_id=openidc&state=O8n91Fyu7qwtyGyuq0mUFhmgpBE&redirect_uri=http%3A%2F%2Fopenidc.example.com%2Fredirect_uri&nonce=OC3B2ihHYwMrqglt8-8eG903LdchKU0uy6tDFu9FJh8&prompt=login
[Sat May 19 15:47:10.388917 2018] [auth_openidc:debug] [pid 3516] src/cache/shm.c(215): [client 127.0.0.1:58352] oidc_cache_shm_set: enter, section="jwks", key="http://auth.example.com/oauth2/jwks", value size=%lu, referer: http://auth.example.com/oauth2/authorize?response_type=code&scope=openid&client_id=openidc&state=O8n91Fyu7qwtyGyuq0mUFhmgpBE&redirect_uri=http%3A%2F%2Fopenidc.example.com%2Fredirect_uri&nonce=OC3B2ihHYwMrqglt8-8eG903LdchKU0uy6tDFu9FJh8&prompt=login
[Sat May 19 15:47:10.388929 2018] [auth_openidc:debug] [pid 3516] src/proto.c(876): [client 127.0.0.1:58352] oidc_proto_get_key_from_jwks: search for kid "secret" or thumbprint x5t "(null)", referer: http://auth.example.com/oauth2/authorize?response_type=code&scope=openid&client_id=openidc&state=O8n91Fyu7qwtyGyuq0mUFhmgpBE&redirect_uri=http%3A%2F%2Fopenidc.example.com%2Fredirect_uri&nonce=OC3B2ihHYwMrqglt8-8eG903LdchKU0uy6tDFu9FJh8&prompt=login
[Sat May 19 15:47:10.389016 2018] [auth_openidc:debug] [pid 3516] src/proto.c(901): [client 127.0.0.1:58352] oidc_proto_get_key_from_jwks: skipping non matching kty=1 for kid=secret because it doesn't match requested kty=3, kid=secret, referer: http://auth.example.com/oauth2/authorize?response_type=code&scope=openid&client_id=openidc&state=O8n91Fyu7qwtyGyuq0mUFhmgpBE&redirect_uri=http%3A%2F%2Fopenidc.example.com%2Fredirect_uri&nonce=OC3B2ihHYwMrqglt8-8eG903LdchKU0uy6tDFu9FJh8&prompt=login
[Sat May 19 15:47:10.389024 2018] [auth_openidc:debug] [pid 3516] src/proto.c(1002): [client 127.0.0.1:58352] oidc_proto_get_keys_from_jwks_uri: returning 0 key(s) obtained from the (possibly cached) JWKs URI, referer: http://auth.example.com/oauth2/authorize?response_type=code&scope=openid&client_id=openidc&state=O8n91Fyu7qwtyGyuq0mUFhmgpBE&redirect_uri=http%3A%2F%2Fopenidc.example.com%2Fredirect_uri&nonce=OC3B2ihHYwMrqglt8-8eG903LdchKU0uy6tDFu9FJh8&prompt=login
[Sat May 19 15:47:10.389032 2018] [auth_openidc:error] [pid 3516] [client 127.0.0.1:58352] oidc_proto_jwt_verify: JWT signature verification failed: [src/jose.c:887: oidc_jwt_verify]: could not find key with kid: secret\n, referer: http://auth.example.com/oauth2/authorize?response_type=code&scope=openid&client_id=openidc&state=O8n91Fyu7qwtyGyuq0mUFhmgpBE&redirect_uri=http%3A%2F%2Fopenidc.example.com%2Fredirect_uri&nonce=OC3B2ihHYwMrqglt8-8eG903LdchKU0uy6tDFu9FJh8&prompt=login
[Sat May 19 15:47:10.389053 2018] [auth_openidc:error] [pid 3516] [client 127.0.0.1:58352] oidc_proto_parse_idtoken: id_token signature could not be validated, aborting, referer: http://auth.example.com/oauth2/authorize?response_type=code&scope=openid&client_id=openidc&state=O8n91Fyu7qwtyGyuq0mUFhmgpBE&redirect_uri=http%3A%2F%2Fopenidc.example.com%2Fredirect_uri&nonce=OC3B2ihHYwMrqglt8-8eG903LdchKU0uy6tDFu9FJh8&prompt=login