This repository has been archived by the owner on May 19, 2023. It is now read-only.
Parameters are not accessible from within keyauth #93
Labels
🤔 Question
Further information is requested
While preparing the tests for #90 , I found that the
c.AllParams()
orc.Params(param)
do not return any values from within keyauth.To replicate this issue, consider this example
When accessing the app with
curl http://localhost:3000/password1
it returns200 - missing or malformed API Key
(not expected as theaccess_token
is given the correct key).When I remove the keyauth part and query the API again with the above command, I receive
Found Parameters: map[access_token:password1]
(expected).While debugging this, I injected the following print statement in
func keyFromParam
and for the above request, it printed:
Found Parameters: 'map[]'
, meaning there is no key found when extracting the password, hence this issue.The text was updated successfully, but these errors were encountered: