Feature request: Allow login to fetch titles from private sites
Opened this issue · 2 comments
Examples:
Would love this as well. I paste lots of links to project management tools that require authentication to fetch appropriate titles for, which would be very helpful. Perhaps it could allow you to share authenticate browser session cookies or something like that? Simply supporting configurable HTTP headers would allow us to add cookies, API authentications, HTTP basic auth, control user agent to fetch specific versions of user-agent-contextualized sites, etc. That may be the simplest solution. Or taking advantage of underlying HTTP library's persistent cookie store and allowing us to populate that cookie store interactively in some fashion, or paste cookies from our browser sessions.
I get around this by using the Custom Frames plugin. I create a frame for each of the protected sites I use frequently, and once I log into the site within that frame, the auth cookie gets saved within the browser context within Obsidian (or something like that). After that, whenever I paste a URL, that auth cookie automatically gets sent when this plug-in is looking up the page title.
The only bummer is that those cookies expire, then I have to re-open the Custom Frame and log in again. It would be nice if obsidian-auto-link-title could integrate with Custom Frames such that it would automatically open up whichever Custom Frame has a URL that matches the link it is trying to look up when it encounters an HTTP 401 or redirect.