Deploy api with basic auth in Wso2 apim

60 Views Asked by At

I have python api that used basic auth for successfull response. Here I'm passing username and password of my application

Now I am looking for deploy this api in Wso2 apim with basic auth policy. Here passing username and password wso2 apim

How I can manage this scenario in Wso2.

1

There are 1 best solutions below

0
ycr On

One way to do this is by disabling security at the APIM layer and letting your Python service validate the Basic Auth header. You can pass the Authorization header and WSO2 will pass it through to your Python API where the actual validation happens.

If you want to do Basic Auth header validation in APIM you can connect APIM to a userstore and enable Basic Auth for the API. If you want to pass the same header to the backend as well you can enable this config.