All,
I am working on developing a Seaside application which I eventually plan to deploy behind our university's custom authentication system. This mechanism sets a particular Apache environment variable equal to the username that was authenticated. I have read through all of the Seaside book and looked through the classes, but have not come to an answer on how I can read out environment variables from the request, especially when served behind Apache. I currently serve other applications using different frameworks via AJP behind Apache and the necessary variables are passed through, so I am hoping there is a way to get access to them in Seaside. Any guidance would be fantastic. Thanks! Charlie Meyer Department of Computer Science University of Illinois at Urbana-Champaign MC/258 201 N. Goodwin Ave Urbana, IL 61801 _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
The easiest is if you add the environment variable to the request (URL
or body) that you proxy via HTTP/AJP to Seaside. Lukas On 7 April 2011 06:45, Charlie Meyer <[hidden email]> wrote: > All, > > I am working on developing a Seaside application which I eventually plan to > deploy behind our university's custom authentication system. This mechanism > sets a particular Apache environment variable equal to the username that was > authenticated. I have read through all of the Seaside book and looked > through the classes, but have not come to an answer on how I can read out > environment variables from the request, especially when served behind > Apache. I currently serve other applications using different frameworks via > AJP behind Apache and the necessary variables are passed through, so I am > hoping there is a way to get access to them in Seaside. Any guidance would > be fantastic. > > Thanks! > > Charlie Meyer > > Department of Computer Science > University of Illinois at Urbana-Champaign > MC/258 > 201 N. Goodwin Ave > Urbana, IL 61801 > > _______________________________________________ > seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > -- Lukas Renggli www.lukas-renggli.ch _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Charlie Meyer
2011/4/7 Charlie Meyer <[hidden email]>:
> All, > > I am working on developing a Seaside application which I eventually plan to > deploy behind our university's custom authentication system. This mechanism > sets a particular Apache environment variable equal to the username that was > authenticated. I have read through all of the Seaside book and looked > through the classes, but have not come to an answer on how I can read out > environment variables from the request, especially when served behind > Apache. I currently serve other applications using different frameworks via > AJP behind Apache and the necessary variables are passed through, so I am > hoping there is a way to get access to them in Seaside. Any guidance would > be fantastic. Well since you're already using AJP why not keep using AJP [1]? It should read the environment variables. There's one gotcha though, it doesn't pass them to Seaside yet. They could be put on the request or request context though. [1] http://book.seaside.st/book/advanced/deployment/deployment-apache/mod-proxy-ajp Cheers Philippe _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
2011/4/7, Philippe Marschall <[hidden email]>:
> 2011/4/7 Charlie Meyer <[hidden email]>: >> All, >> >> I am working on developing a Seaside application which I eventually plan >> to >> deploy behind our university's custom authentication system. This >> mechanism >> sets a particular Apache environment variable equal to the username that >> was >> authenticated. I have read through all of the Seaside book and looked >> through the classes, but have not come to an answer on how I can read out >> environment variables from the request, especially when served behind >> Apache. I currently serve other applications using different frameworks >> via >> AJP behind Apache and the necessary variables are passed through, so I am >> hoping there is a way to get access to them in Seaside. Any guidance >> would >> be fantastic. > > Well since you're already using AJP why not keep using AJP [1]? It > should read the environment variables. There's one gotcha though, it > doesn't pass them to Seaside yet. They could be put on the request or > request context though. > > [1] > http://book.seaside.st/book/advanced/deployment/deployment-apache/mod-proxy-ajp I just added it to the very latest AJP. Doing self requestContext ajpAttributes Should give you a dictionary with the environment variables. Cheers Philippe _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |