user - Setting REMOTE_USER in JSP -


we're attempting front web software we've purchased vendor our organization's single-signon authentication. software expects cgi environment variable remote_user set in jsp user id before forward control welcome page. (their technical manual describes in way: "...the http response object should populate remote user attribute username of authenticated user.") getting value easy haven't found straightforward method in google searches of setting it. we're confident it's possible. suggestions.

you can't set cgi variable remote_user programmatically. webserver-controlled variable based on user name extracted authorization http request header. original header set client (webbrowser) after client has entered credentials http basic authentication.

i don't understand manual means setting attribute in http response. doesn't make sense. setting custom attribute on request make bit more sense if it's java servlet based api.

request.setattribute("remote_user", "some user id"); 

after forwarding (not redirecting!), it'll available forwarded resource.

but still, makes little sense. i'm wondering if don't mean "redirecting" or maybe "proxying" instead of "forwarding", wouldn't use jsp since that's part of response , may malform it. servlet right place.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -