Enterprise Developer Portal: OAuth 2 API Product Not Imported

Hi, I am having difficulty importing an API using the OAuth 2.0 authentication mode to the Enterprise Portal.

I have configured two policies, one which enforces only access rights (product) and another which implements only rate limit and quota, but does not enforce access rights (plan).

apiVersion: tyk.tyk.io/v1alpha1
kind: SecurityPolicy
metadata:
  name: api-product-policy
  namespace: tyk
spec:
  access_rights_array:
    - name: example-api
      namespace: tyk
      versions:
        - Default
  active: true
  name: api-product-policy
  state: active
  partitions:
    quota: false
    rate_limit: false
    acl: true
---
apiVersion: tyk.tyk.io/v1alpha1
kind: SecurityPolicy
metadata:
  name: api-plan-policy
  namespace: tyk
spec:
  access_rights_array:
    - name: example-api
      namespace: tyk
      versions:
        - Default
  active: true
  name: api-plan-policy
  state: active
  partitions:
    quota: true
    rate_limit: true
    acl: false
  quota_max: 10
  quota_renewal_rate: 60
  rate: 5
  per: 5
  throttle_interval: 2
  throttle_retry_limit: 2

When I synchronize the provider in the Enterprise Developer Portal Admin App, only the plan is imported. When using standard auth instead of OAuth 2.0, the product is imported successfully.

Is OAuth 2.0 not supported by the Enterprise Developer Portal?

Hello Bruno and welcome to the community :tada:

Apologies for the delay, in getting back to you on this. However, I believe you already have a commercial ticket addressing this same issue as well as another one.

So to answer the question you asked here to make sure it’s visible to other users

Unfortunately, Oauth 2.0-secured APIs are not supported by the Enterprise Developer Portal.

The fully supported native auth methods are:

Cheers,
Olu

1 Like