You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jwtAuth:= kong.JWTAuth {
Key: "http://hoge.fuga.com",
Algorithm: "RS256",
RSAPublicKey: url.QueryEscape("------BEGIN PUBLIC KEY-----\r\n%s\r\n-----END PUBLIC KEY-----", pubKey)
}
client.JWTAuth.Create(ctx, consumer.ID, jwtAuth) // failed
error message is
2 schema violations (failed conditional validation given value of field 'algorithm'; rsa_public_key: invalid key)
in Kong docs, jwt plugin needs Content-Type: application/x-www-form-urlencoded.
but Content-Type: application/json was given to httpclient in go-kong, I think this is the cause of the problem.
any way can I set Public key to consumer by go-kong?
thank you.
The text was updated successfully, but these errors were encountered:
Issue Descript
using: kong/go-kong v0.59.1
error message is
in Kong docs, jwt plugin needs
Content-Type: application/x-www-form-urlencoded
.but
Content-Type: application/json
was given to httpclient in go-kong, I think this is the cause of the problem.any way can I set Public key to consumer by go-kong?
thank you.
The text was updated successfully, but these errors were encountered: