Robin Lambertz
Robin Lambertz
Alright, I managed to get something that works while keeping the modules separate using the plan outlined above. It's hacky, but everything seems to be working properly so yay \o/....
My fork already hooks into caddy’s authentication interface, implementing Authenticator and being in the http.authenticate namespace. Here’s some outdated code, i’ll push my current progress tonight https://github.com/roblabla/caddy-jwt/blob/caddy2/jwt.go#L78 As far as...
> @roblabla Awesome! Yeah, we can add more fields to the User struct. We can kick it off in a pull request? I'll get a PR going. ----- > I'd...
Thanks for the fast answer mholt! I'll try and see if I can figure something out for the testing. Should I move conversations related to this in https://github.com/caddyserver/caddy/issues/2930 since it...
> I think you are misunderstanding what these are for. There’s no misunderstanding on my part, only sloppy language. I’m well aware of the intricacies of JWT, and its various...
@derekbassett I mean, it works pretty well already for my use-cases. Here are the TODOs: - Write unit tests. Right now, caddy2 is a bit lacking in this area -...
Yes, that'd be nice
there is a point : autocompletion in some IDEs works. If I could hardcode packets in the same way, I would.
FWIW, nmp can handle custom packets just fine (discarding unknown packets) since they are length-prefixed.
you can optimize try/catch by making a special tryCatch function like so : ``` function tryCatch(tryfn, catchfn, finalizefn) { try { tryfn(); } catch (e) { if (typeof catchfn ===...