<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
code
{mso-style-priority:99;
font-family:"Courier New";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:#1F4E79;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:0in;line-height:14.65pt;background:white'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#222222'>The question may sound odd, but I have a worst case scenario.<o:p></o:p></span></p><p style='margin:0in;margin-bottom:.0001pt;line-height:14.65pt;background:white;orphans: auto;widows: 1;-webkit-text-stroke-width: 0px;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#222222'>My application server is on<span class=apple-converted-space> </span><a href="http://10.10.10.10/app"><span style='color:#0C65A5;border:none windowtext 1.0pt;padding:0in'>http://10.10.10.10/app</span></a><span class=apple-converted-space> </span>(say it<span class=apple-converted-space> </span></span><code><span style='font-size:10.0pt;font-family:Consolas;color:#222222;border:none windowtext 1.0pt;padding:0in;background:#EEEEEE'>app-server</span></code><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#222222'>) and http-apache server is on<a href="http://some.dns.com/app"><span style='color:#0C65A5;border:none windowtext 1.0pt;padding:0in'>http://some.dns.com/app</span></a><span class=apple-converted-space> </span>(say it<span class=apple-converted-space> </span></span><code><span style='font-size:10.0pt;font-family:Consolas;color:#222222;border:none windowtext 1.0pt;padding:0in;background:#EEEEEE'>http-server</span></code><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#222222'>). Both are different system-server.<o:p></o:p></span></p><p style='margin:0in;margin-bottom:.0001pt;line-height:14.65pt;background:white;orphans: auto;widows: 1;-webkit-text-stroke-width: 0px;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#222222'>I know<span class=apple-converted-space> </span></span><code><span style='font-size:10.0pt;font-family:Consolas;color:#222222;border:none windowtext 1.0pt;padding:0in;background:#EEEEEE'>app-server</span></code><span class=apple-converted-space><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#222222'> </span></span><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#222222'>shouldn't directly accessible publically, but let's assume it is publically accessible. Now<span class=apple-converted-space> </span></span><code><span style='font-size:10.0pt;font-family:Consolas;color:#222222;border:none windowtext 1.0pt;padding:0in;background:#EEEEEE'>Shibboleth</span></code><span class=apple-converted-space><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#222222'> </span></span><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#222222'>is installed on<span class=apple-converted-space> </span></span><code><span style='font-size:10.0pt;font-family:Consolas;color:#222222;border:none windowtext 1.0pt;padding:0in;background:#EEEEEE'>http-server</span></code><span class=apple-converted-space><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#222222'> </span></span><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#222222'>, securing path<a href="http://some.dns.com/app/secure"><span style='color:#0C65A5;border:none windowtext 1.0pt;padding:0in'>http://some.dns.com/app/secure</span></a><span class=apple-converted-space> </span>. While one servlet is mapped to get attributes from path<span class=apple-converted-space> </span></span><code><span style='font-size:10.0pt;font-family:Consolas;color:#222222;border:none windowtext 1.0pt;padding:0in;background:#EEEEEE'>/secure</span></code><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#222222'>.<o:p></o:p></span></p><p style='margin:0in;margin-bottom:.0001pt;line-height:14.65pt;background:white;orphans: auto;widows: 1;-webkit-text-stroke-width: 0px;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#222222'>If someone manages to create fake http-apache-server (say<span class=apple-converted-space> </span></span><code><span style='font-size:10.0pt;font-family:Consolas;color:#222222;border:none windowtext 1.0pt;padding:0in;background:#EEEEEE'>fake-http-server</span></code><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#222222'>) and that too points to<span class=apple-converted-space> </span></span><code><span style='font-size:10.0pt;font-family:Consolas;color:#222222;border:none windowtext 1.0pt;padding:0in;background:#EEEEEE'>app-server</span></code><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#222222'>. So here<span class=apple-converted-space> </span></span><code><span style='font-size:10.0pt;font-family:Consolas;color:#222222;border:none windowtext 1.0pt;padding:0in;background:#EEEEEE'>fake-http-server</span></code><span class=apple-converted-space><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#222222'> </span></span><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#222222'>can directly have access to<span class=apple-converted-space> </span></span><code><span style='font-size:10.0pt;font-family:Consolas;color:#222222;border:none windowtext 1.0pt;padding:0in;background:#EEEEEE'>/secure</span></code><span class=apple-converted-space><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#222222'> </span></span><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#222222'>path and that server can manually send shibboleth-like attributes and can login in system without protection.<o:p></o:p></span></p><p style='margin:0in;margin-bottom:.0001pt;line-height:14.65pt;background:white;orphans: auto;widows: 1;-webkit-text-stroke-width: 0px;word-spacing:0px'><span style='font-size:11.5pt;font-family:"Helvetica","sans-serif";color:#222222'>My question here is,<span class=apple-converted-space> </span><em><b><span style='font-family:"Helvetica","sans-serif";border:none windowtext 1.0pt;padding:0in'>Is there a mechanism in Shibboleth where I can check the shibboleth session in my application - not only in http layer</span></b></em>.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F4E79'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F4E79'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F4E79'>Question is here - <a href="http://stackoverflow.com/q/30374062/1534925">http://stackoverflow.com/q/30374062/1534925</a> too<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F4E79'><o:p> </o:p></span></p></div></body></html>