[prev in list] [next in list] [prev in thread] [next in thread]
List: shibboleth-users
Subject: Re: servlet access of Attributes via Server Variables?
From: "Woolf, Carl" <Carl_Woolf () hms ! harvard ! edu>
Date: 2022-07-09 19:04:04
Message-ID: BYAPR07MB6200F99C20AC78768936A57ABC859 () BYAPR07MB6200 ! namprd07 ! prod ! outlook ! com
[Download RAW message or body]
Thanks Nate, that does help! I will work on this approach next week=85.
Best regards, - Carl
From: users <users-bounces@shibboleth.net> on behalf of Nate Klingenstein <=
ndk@signet.id>
Date: Saturday, July 9, 2022 at 1:40 PM
To: Shib Users <users@shibboleth.net>
Subject: RE: servlet access of Attributes via Server Variables?
Carl,
> =85myHttpRequest.getAttribute(=93attributeName=94)
For whatever you've named the HTTP request object and whatever you're mappi=
ng attribute names on the wire to behind the SP via attribute-map.xml, prec=
isely that, yes.
If you're having trouble getting an attribute populated for some reason and=
things are being routed through the normal ACS mechanism, then it's possib=
le that you don't have Shibboleth configured to protect the URL path that y=
ou're accessing. You can see all the attributes Shibboleth thinks it has f=
or you by authenticating and then going to:
https://shibboleth.atlassian.net/wiki/spaces/SP3/pages/2065334875/Session+H=
andler
You can of course also just dump all the attributes from myHttpRequest.
Hope this helps,
Nate
--------
Signet, Inc.
The Art of Access =AE
https://www.signet.id
--
For Consortium Member technical support, see https://shibboleth.atlassian.n=
et/wiki/x/ZYEpPw
To unsubscribe from this list send an email to users-unsubscribe@shibboleth=
.net
[Attachment #3 (text/html)]
<html 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=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Thanks Nate, that does help! I will work on this approach next \
week….<o:p></o:p></p> <p class="MsoNormal">Best regards, - Carl<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span \
style="font-size:12.0pt;color:black">From: </span></b><span \
style="font-size:12.0pt;color:black">users <users-bounces@shibboleth.net> on \
behalf of Nate Klingenstein <ndk@signet.id><br> <b>Date: </b>Saturday, July 9, \
2022 at 1:40 PM<br> <b>To: </b>Shib Users <users@shibboleth.net><br>
<b>Subject: </b>RE: servlet access of Attributes via Server \
Variables?<o:p></o:p></span></p> </div>
<div>
<p class="MsoNormal">Carl,<br>
<br>
> …myHttpRequest.getAttribute(“attributeName”)<br>
<br>
For whatever you've named the HTTP request object and whatever you're mapping \
attribute names on the wire to behind the SP via attribute-map.xml, precisely that, \
yes.<br> <br>
If you're having trouble getting an attribute populated for some reason and things \
are being routed through the normal ACS mechanism, then it's possible that you don't \
have Shibboleth configured to protect the URL path that you're accessing. You \
can see all the attributes Shibboleth thinks it has for you by authenticating and \
then going to:<br> <br>
<a href="https://shibboleth.atlassian.net/wiki/spaces/SP3/pages/2065334875/Session+Han \
dler">https://shibboleth.atlassian.net/wiki/spaces/SP3/pages/2065334875/Session+Handler</a><br>
<br>
You can of course also just dump all the attributes from myHttpRequest.<br>
<br>
Hope this helps,<br>
Nate<br>
<br>
--------<br>
Signet, Inc.<br>
The Art of Access ®<br>
<br>
<a href="https://www.signet.id">https://www.signet.id</a><br>
-- <br>
For Consortium Member technical support, see <a \
href="https://shibboleth.atlassian.net/wiki/x/ZYEpPw"> \
https://shibboleth.atlassian.net/wiki/x/ZYEpPw</a><br> To unsubscribe from this list \
send an email to users-unsubscribe@shibboleth.net<o:p></o:p></p> </div>
</div>
</body>
</html>
--
For Consortium Member technical support, see https://shibboleth.atlassian.net/wiki/x/ZYEpPw
To unsubscribe from this list send an email to users-unsubscribe@shibboleth.net
--===============5256083867589478554==--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic