-
Notifications
You must be signed in to change notification settings - Fork 19
Can't access the API with Basic Auth #14
Comments
afaik, the response for the password authorizer is correct, it should return the token id as principal id... |
Sorry, I meant The output is actually correct, the fact that you get a You can check if this is not a problem with your backend through the "Test" feature in api gateway, there you can see if the problem is still there when access the backend directly, as this bypasses the custom authorizer. |
Interestingly enough, the API gateway and the application work correctly (minus auth of course) when i remove the serverless-basic-authentication plugin. I also tested using the "Test" feature and serverless-basic-authentication enabled, the API Gateway response is the one i'm expecting from my backend Also, even with serverless-basic-authentication enabled the backend does produce the expected result when using the x-api-key header.
The issue only happens with 'Basic Auth' |
i am having similar issue. with plugin attached, all existing endpoints that have
i have decrypted this base64 string |
I'm trying to use the plugin for some simple auth in a quick flask project. However for some reason i can't get the basic auth to work. For now it's only working when using the
x-api-key
headerInterestingly seems like there is a change when using a wrong password, meaning the plugin is indeed checking for the password
In the case i use a correct password the response changes from "Unauthorized" to "Forbidden"
This are the logs i'm getting from the basic_auth lambda
And this is the result i get when using
x-api-key
With the corresponding logs:
The only difference i can find is the
principalId
valueFor reference here's my serverless.yml
The text was updated successfully, but these errors were encountered: