Closed anselm94 closed 4 years ago
Yeah. It's a sad reality but it would have been a breaking change so we opted not to make it, there are many such issues we'd like to change in v3. You can still use SetDefaults
and then convert & set the value yourself in the Redirector, or you can create your own version of SetDefaults and ensure that its set appropriately. Thanks for raising the issue.
Authboss doesn't map
readJSON
parameter indefaults.SetCore
toCorceRedirectTo200
parameter indefaults.Redirector
The signature of
defaults.NewRedirector
has to be updated to include the API flag paramhttps://github.com/volatiletech/authboss/blob/020487826a5df9ed53b5ff2a749432bb8fec7c30/defaults/responder.go#L61