Hi, we are trying to authenticate users that login using Google Identity Platform. GIP uses oAuth2 and returns an ID token (JWT) with a that we want to validate. The algorithm that it uses is RS256 with a public key that you have to fetch from XXX. We don’t know how to fetch the public key from that URL, but to make progress we downloaded it manually and we are trying to put the public key directly in the configuration.
We are using OAuthV2.VerifyJWTAccessToken with this configuration:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<OAuthV2 name="OAuthV2-verify-gip">
<Operation>VerifyJWTAccessToken</Operation>
<Algorithm>RS256</Algorithm>
<Scope>flaticon/svg</Scope>
<PublicKey>
<Value>-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAu1SU1LfVLPHCozMxH2Mo
4lgOEePzNm0tRgeLezV6ffAt0gunVTLw7onLRnrq0/IzW7yWR7QkrmBL7jTKEn5u
+qKhbwKfBstIs+bMY2Zkp18gnTxKLxoS2tFczGkPLPgizskuemMghRniWaoLcyeh
kd3qqGElvW/VDL5AaWTg0nLVkjRo9z+40RQzuVaE8AkAFmxZzow3x+VJYKdjykkJ
0iT9wCS0DRTXu269V264Vf/3jvredZiKRkgwlL9xNAwxXFg0x/XFw005UWVRIkdg
cKWTjpBP2dPwVZ4WWC+9aGVd+Gyn1o0CLelf4rEjGoXbAAEgAqeGUxrcIlbjXfbc
mwIDAQAB
-----END PUBLIC KEY-----</Value>
</PublicKey>
</OAuthV2>
When we try to save this configuration, it gives us an error:
bundle contains errors
Violation details:
apiproxy/policies/OAuthV2-verify-gip.xml The PublicKey element contains an RSA key, which is not valid for the Algorithm "".
Do you what are we doing wrong?
Thank you!