caddy-jwt icon indicating copy to clipboard operation
caddy-jwt copied to clipboard

Take http status code as a configuration value

Open freman opened this issue 5 years ago • 4 comments

Hi,

We would like to be able to configure the status code, specifically instead of 303 we want to use 307

Maybe a config property RedirectCode=307 or have a ,307 after the url?

(edited to correct copy pasta typo)

freman avatar Oct 30 '19 00:10 freman

Are you using caddy-jwt by itself or with another plugin?

magikstm avatar Oct 30 '19 01:10 magikstm

by itself, it redirects to our auth server (I mean with a whole bunch of plugins in caddy but not generally with caddy-jwt)

freman avatar Oct 30 '19 01:10 freman

I don't think that is going to happen. Caddy 2 will be coming out in a few months and all of the existing plugins will have to be rewritten to work with the new module system. I haven't decided yet whether I'll port the JWT plugin or let someone else take over, but with the new design there should be more flexibility to decide how you want it to redirect.

BTBurke avatar Oct 30 '19 01:10 BTBurke

Aww, but I already did it :D

Caddy 2 will be coming out in a few months and all of the existing plugins will have to be rewritten to work with the new module system

I assure you, I feel your pain.

freman avatar Oct 30 '19 01:10 freman