<div dir="ltr">Thank you, Scott - I have those things open as I write this and I'll study them. I'm new to java stuff so I have a bit of a steep learning curve.<div><br></div><div>So, to reiterate! What I want to do is 1) have our users run an application that will allow them to select an image and phrase to display on the shib login page; the application will store their choices in cookies; and then 2) be able to read those cookie values into variables that I can use in the login.vm. I don't want to use javascript directly inside the view to read the cookies because that is readable by anyone going to the page, and then the phishing jerks would have the name of the cookies, defeating the purpose of foiling their annoying practices. (Someone in our department got a phishing email that had grabbed our shib login images and all the rest of it, and it annoyed the hell out of me.)</div><div><br></div><div>The only other thing I could think to do would be to store something generic like a number in the cookie, which would then refer to values stored in a local database, but then I have to deal with accessing db tables inside a view, which seems even more complicated.</div><div><br></div><div>What is the developer version of the phrase 'my eyes are too big for my stomach'?</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 14, 2016 at 1:32 PM, Cantor, Scott <span dir="ltr"><<a href="mailto:cantor.2@osu.edu" target="_blank">cantor.2@osu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> I've been researching the custom object feature, and I saw examples of it for<br>
> use in the attribute resolving/creation, but that wouldn't help me here<br>
> because that happens after the auth piece has been completed, yes?<br>
<br>
</span>The custom object mechanism has nothing to do with when it's used, you can inject custom objects or maps of objects into any view or script so that you can always access anything you want to access from them.<br>
<span class=""><br>
> but would I put a custom object in there? Doesn't seem like a file anyone<br>
> should be messing with.<br>
<br>
</span><a href="https://wiki.shibboleth.net/confluence/display/IDP30/VelocityVariables" rel="noreferrer" target="_blank">https://wiki.shibboleth.net/<wbr>confluence/display/IDP30/<wbr>VelocityVariables</a><br>
<br>
See "custom". You need to define shibboleth.CustomViewContext in global.xml to be something. An alias to a bean you want it to point to, a map of other beans like the example, etc.<br>
<br>
<util:map id="shibboleth.<wbr>CustomViewContext"><br>
<entry key="cookieManager" value-ref="shibboleth.<wbr>PersistentCookieManager"/><br>
</util:map><br>
<span class=""><br>
> I don't suppose you could give me an example piece of code using the cookie<br>
> manager?<br>
<br>
</span>Nothing that wouldn't be vastly more confusing than just reading the javadoc.<br>
<span class=""><br>
> or if there is some API documentation I haven't found...?<br>
<br>
</span>The java-support javadocs are linked on the Configuration page, and that class is included in that module.<br>
<div class="HOEnZb"><div class="h5"><br>
-- Scott<br>
<br>
<br>
--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.<wbr>net</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div style="margin-left:40px">Karla Borecky<br>Systems Administrator<br>ITS<br>Smith College<br>Northampton, MA 01063<br></div></div>
</div>