keepassnatmsg
keepassnatmsg copied to clipboard
Handle placeholders in URL
Keepass supports placeholders in the URL field: https://keepass.info/help/base/placeholders.html
In particular, I use environment variables in some of my URLs. For those URLs, keepassnatmsg doesn't seem to return credentials. I guess that this is because there is a mismatch between the URL in the browser, and the URL in Keepass which contains the placeholder. The question is: is there a way to get the URL post-substitution from Keepass? If so, it would make sense for keepassnatmsg to use this before comparing the URLs.
i believe i'd have to iterate through every URL field, then expend the placeholders, then check if they match the url. i would likely add an option for this since with large db's it would be a performance issue.
we are already doing something similar for regex's in url, so i don't think this should be too difficult too.