When setting up Client Credentials inside Kong Gateway’s OpenID Connect plugin we are receiving the following debug statement:
[debug] 2149#0: *3771675 [lua] debug.lua:28: debug(): {"error":"invalid_scope","error_description":"Cannot request 'openid' scopes using client credentials."}Our curl command results in:
{"message":"Unauthorized"}Our IDP is Okta in this test case and we can confirm that Authorization flow works as expected so we know the connectivity is successful.