kyma-incubator / varkes

A mocking toolkit for Kyma
Apache License 2.0
12 stars 13 forks source link

Support basic authentication for APIs & assure validation #153

Closed a-thaler closed 5 years ago

a-thaler commented 5 years ago

Besides OAUth2 we need to support basic auth as well. So introduce an attribute like "auth":"none|basic|oauth2" and then register either client secrets or basic auth secrets for the API or no secrets at all. Furthermore, assure that the mocks are respecting that setting and validate the hardcoded secrets at API requests

a-thaler commented 5 years ago

The credentials section should look like this:

        "credentials": {
            "basic": {
                "username": "admin",
                "password": "nimda"
            }
        },
obadrawi commented 5 years ago

added "auth" element to apis in config that has one of three values : ["oauth" , "basic", "none"]