-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possibile to use CorceRedirectTo200
in master?
#251
Comments
Your problem is that the call to |
@aarondl long time to respond I know. I inverted lines from this: ab.Config.Paths.RootURL = os.Getenv("SITE_URL")
ab.Config.Storage.Server = database
ab.Config.Storage.SessionState = sessionStore
ab.Config.Storage.CookieState = cookieStore
ab.Config.Modules.LogoutMethod = "GET"
ab.Config.Core.ViewRenderer = defaults.JSONRenderer{}
ab.Config.Core.Redirector = &defaults.Redirector{CorceRedirectTo200: true} // <--
defaults.SetCore(&ab.Config, true, false) to this: ab.Config.Paths.RootURL = os.Getenv("SITE_URL")
ab.Config.Storage.Server = database
ab.Config.Storage.SessionState = sessionStore
ab.Config.Storage.CookieState = cookieStore
ab.Config.Modules.LogoutMethod = "GET"
ab.Config.Core.ViewRenderer = defaults.JSONRenderer{}
defaults.SetCore(&ab.Config, true, false)
ab.Config.Core.Redirector = &defaults.Redirector{CorceRedirectTo200: true} // <-- and the problem is still there: I still have a Why? |
Isn't Authboss is great but this config is sometimes too complicated for newbies and simple people like me. :( |
Ok. After small investigation I understood the problem is this line: https://github.com/volatiletech/authboss/blob/master/defaults/responder.go#L44. The The problem now is I have errore on login, on logout (line 103 of |
Little news: I was able to make it work like this: defaults.SetCore(&ab.Config, true, false)
ab.Config.Core.Redirector = &defaults.Redirector{Renderer: &defaults.JSONRenderer{}, CorceRedirectTo200: true} but still don't know why with Is there a doc somewhere? I can write it if I can understand. |
Issue opened for the creation of a wiki page that summarizes the doubts and problems for newbies (#210).
Is it possibile to use
CorceRedirectTo200
in master?I'm using it like this:
but still I have a
GET
->localhost/auth/logout
-> redirected to ->/
.Why?
How to disable redirect and just use 200?
The text was updated successfully, but these errors were encountered: