TYK + Auth0 (Machine to Machine App)

Ok finally I have few issues at once but mainly with referencing the policies and syntax of the policies file.

my working setup looks like that

   {
        "admin": {
            "access_rights": {
                "1": {
                    "api_name": "OpsAPI",
                    "api_id": "1",
                    "versions": [
                        "Default"
                    ]
                }
            },
            "org_id": "tech",
            "active": true,
            "name": "Operations API",
            "rate": 100,
            "per": 1,
            "quota_max": 10000,
            "quota_renewal_rate": 3600,
            "tags": ["admin"]
        },
        "default": {
            "rate": 1000,
            "per": 1,
            "quota_max": 100,
            "quota_renewal_rate": 60,
            "access_rights": {
                "41433797848f41a558c1573d3e55a410": {
                    "api_name": "OpsAPI",
                    "api_id": "1",
                    "versions": [
                        "Default"
                    ]
                }
            },
        "org_id": "tech",
        "hmac_enabled": false
        }
    }

Referencing OIDC from app definition

        "use_openid": true,
        "openid_options": {
            "providers": [
                {
                    "issuer": "https://lstech.eu.auth0.com/",
                    "client_ids": {
                        "aHR0cHM6Ly9hcGkua3ViZXRlY2gxLmxza3ViZS5ldQ==": "admin"
                    }
                }
            ],
        "segregate_by_client": false
        },

Really missing policies endpoint on the gateway API, to be able to check how gateway see the policies.

1 Like