shout icon indicating copy to clipboard operation
shout copied to clipboard

Allows to get default user data from HTTP Headers

Open lucamilanesio opened this issue 10 years ago • 5 comments

When using shout behind a reverse-proxy with possibly user-authentication (scenario of using it within an enterprise auth-proxy) allows to get the default pre-filled user identity from HTTP headers.

lucamilanesio avatar Feb 26 '15 18:02 lucamilanesio

@JocelynDelalande, you have a much deeper understanding of networks and HTTP protocol than me, can you give your thought (and any other brain dump that might be useful to record?) on this?

Also, does that look like a bug fix or an enhancement to you?

astorije avatar Sep 26 '15 00:09 astorije

@lucamilanesio that's a good feature, definitely useful when using some SSO. Thanks :)

Next step (I mean, in another PR) would be to do (optional and disabled by default) external auth : user login is provided in HTTP headers by reverse-proxy. I opened #482 just to keep it in mind.

@lucamilanesio two questions:

  • could you think about somewhere to document that feature ?
  • out of curiosity, how did you choose the headers names ? Is there any de-facto standard ?

JocelynDelalande avatar Sep 27 '15 09:09 JocelynDelalande

@lucamilanesio bump ?

JocelynDelalande avatar Jan 25 '16 11:01 JocelynDelalande

Why not simply use HTTP authentication? I don't see the need to implement custom headers.

xPaw avatar Jan 25 '16 11:01 xPaw

Why not simply use HTTP authentication? I don't see the need to implement custom headers.

@xPaw It's not the same. Here we're getting default user information by a third-party (generally, the reverse-proxy itself, which may use HTTP basic/digest), then that third-party populate the custom HTTP header with informations about the user it knows.

What I suggest for longer-term and another PR (external auth) is the same thing except we're not only pre-populating form data but actually logging-in the user by this mean.

@xPaw I don't know if I'm clear in my explanations… am I ? :)

JocelynDelalande avatar Jan 28 '16 11:01 JocelynDelalande