Skip to content
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

Expose swappedResponseWriter #4

Open
bscottm opened this issue Jun 29, 2022 · 0 comments
Open

Expose swappedResponseWriter #4

bscottm opened this issue Jun 29, 2022 · 0 comments

Comments

@bscottm
Copy link

bscottm commented Jun 29, 2022

Respectfully request that you expose swappedResponseWriter for better compatibility with authBoss. This might not be the only package with this type of issue.

In their design, they expect a http.Writer of a particular type (ClientStateResponseWriter) when writing responses. It's relatively easy to work around if swappedResponseWriter is exposed as SwappedResponseWriter (currently I have a local copy of adapter.go to make things work...):

import (
    // ...
    _ "github.com/volatiletech/authboss/v3"
)

func (w swappedResponseWriter) UnderlyingResponseWriter() http.ResponseWriter {
	return w.w
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant