Hi All,
I’m trying to publish an API to the developer’s portal, however, I’m not able authenticate.
My API uses oauth2. In my spec, I have the following security setting:
security:
- bearerAuth: []
...
securitySchemes:
bearerAuth:
type: oauth2
flows:
clientCredentials:
tokenUrl: [https://tui-prod-prod.apigee.net/oauth/client_credential/accesstoken?grant_type=client_credentials](https://tui-prod-prod.apigee.net/oauth/client_credential/accesstoken?grant_type=client_credentials)
scopes: {}
I’ve created an app but, when I try to authenticate through the portal, I get an “Authorization failed” message.
The URL I’m using in tokenURL is the same I use to authenticate via Postman, and I’m able to retrieve access_token that way. It’s only in the portal that it doesn’t work. I’ve tried the URL both with ‘?grant_type=client_credentials’ suffix and without.
Any suggestions on what I’m doing wrong or how to debug this?
Thanks.
Pedro
