Forum Moderators: phranque

Message Too Old, No Replies

Passing roles/groups in HTTP header

         

sniper55

4:18 pm on Feb 9, 2015 (gmt 0)

10+ Year Member



Does anyone know if it is possible to do an LDAP lookup for a users roles and pass these to the backend server in an HTTP header?

So I have configured user authentication and basic authorization (checking the user is in a particular LDAP group using require ldap-group) but would like to pass the users group information to the backend application server.

Any pointers appreciated!

Many thanks
sniper

lucy24

5:13 pm on Feb 9, 2015 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



pass these to the backend server in an HTTP header

Does it have to be in the form of a header, or can you make it work if the information is sent in some other way, such as an environmental variable? We're talking about a single request, right, not information that has to be persistent?

sniper55

9:15 am on Feb 10, 2015 (gmt 0)

10+ Year Member



Well I think it needs to go in a header as the application server which will use the information is hosted on a different machine. But yes it's a single request.