Tyk v2.2 Documentation Components

HomeTyk v2.2 Documentation ComponentsEnable basic auth in your API Definition (file)

Enable basic auth in your API Definition (file)

To enable basic auth, the API Definition file needs to be set up to allow basic auth and not a standard access token:

    "name": "Tyk Test API",
    "use_basic_auth": true,

As you can see in the above example, enabling basic auth is as simple as setting a flag for the feature in your API Definition object. Since BA is a standard, tyk will always look for the credentials as part of the Authorization header.

Was this article helpful to you? Yes No