BTBurke / caddy-jwt

JWT middleware for the Caddy server
MIT License
113 stars 40 forks source link

Take http status code as a configuration value #55

Open freman opened 4 years ago

freman commented 4 years ago

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)

magikstm commented 4 years ago

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

freman commented 4 years ago

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

BTBurke commented 4 years ago

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.

freman commented 4 years ago

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.