keepassnatmsg icon indicating copy to clipboard operation
keepassnatmsg copied to clipboard

Handle placeholders in URL

Open hublol opened this issue 2 years ago • 1 comments

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.

hublol avatar May 03 '22 11:05 hublol

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.

smorks avatar May 03 '22 14:05 smorks