http with authentication for module #431
Replies: 3 comments 2 replies
-
|
There currently isn't, I'm afraid. Would you really want that for the module level (as opposed to the package level)? There is some subtle interaction with caching here; Pkl only caches |
Beta Was this translation helpful? Give feedback.
-
|
Hi, apologies for the late reply. |
Beta Was this translation helpful? Give feedback.
-
|
We have a bunch of pkl schemas hosted on GitHub private repos. It's a great way to share them but there was no easy way to deal with this. I created a pkl-proxy that handles this. Effectively it uses the http-rewrite functionality to force requests to a private repo to go through the proxy that handles that complex auth flow. If you have a private but accessible http server you can just point it at that. Take a look at what I did and maybe it can be adapted. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Are there some smart ways to keep a module "protected" using an http url with authentication?
Beta Was this translation helpful? Give feedback.
All reactions