Hi, I’m using the Upstream OAuth2 Plug-in after OpenId Connect but as a test by itself and Its not generating a Token for me and not passing any Authorization header to upstream API. I’m trying to generate a password resource token that works fine in our org, and Postman - I read somewhere that only grant supported it client/secret? I’m trying to use user, passwork.
The plugin allows Kong to consume a 3rd party API that is protected by OAuth client credentials flow. You can turn debug on with the following
debug level, KONG_LOG_LEVEL=debug kong restart
As Veena advised, in order to help you we need some more info:
What’s your setup? Are you running in db-less? Can you share a minimal config with us?
Are there any errors in the logs? For example, if the plugin fails to obtain a token from the IdP, there will be errors logged. To find those, you can grep the Kong log file (it’s in <kong_prefix>/logs/error.log) looking for the pattern [upstream-oauth]