Getting SP's Description

Natarajan, Senthil senthil at pitt.edu
Thu Nov 10 19:40:47 GMT 2011


Thanks Kevin Foote.

Actually I was getting the EntityID that way to customize the login screen. But with the EntityID how to get the description.

I saw this below code from the documentation.
But I couldn't get the API to see available methods in the interface EntityDescriptor.


LoginContext loginContext = HttpServletHelper.getLoginContext(HttpServletHelper.getStorageService(application),
                                                                  application, request);
    Session userSession = HttpServletHelper.getUserSession(request);
     RelyingPartyConfigurationManager rpConfigMngr = HttpServletHelper.getRelyingPartyConfigurationManager(application);

     EntityDescriptor metadata = HttpServletHelper.getRelyingPartyMetadata(loginContext.getRelyingPartyId(), rpConfigMngr);

-----Original Message-----
From: users-bounces at shibboleth.net [mailto:users-bounces at shibboleth.net] On Behalf Of Kevin P. Foote
Sent: Thursday, November 10, 2011 2:30 PM
To: Shib Users
Subject: RE: Getting SP's Description


The "old" way :-) 
I paraphrased a bunch but you can probably get the idea. 



<%@ page
import="edu.internet2.middleware.shibboleth.idp.authn.LoginContext" %>

...

<%
    LoginContext loginContext =
HttpServletHelper.getLoginContext(HttpServletHelper.getStorageService(application),^M
                                                                  application,
request);
....
%>

<html>
...otherlayout..

<% if (loginContext != null) {
        String resourceId=loginContext.getRelyingPartyId(); %>

<p align="left">Requesting resource: <%= resourceId %> </p>

...

</html>


------
thanks
  kevin.foote

On Thu, 10 Nov 2011, Natarajan, Senthil wrote:

-> Thanks Scott.
-> 
-> Is there any other way you can think of getting SP's description info on the Idp's login.jsp?
-> 
-> Senthil
-> 
-> -----Original Message-----
-> From: users-bounces at shibboleth.net [mailto:users-bounces at shibboleth.net] On Behalf Of Cantor, Scott
-> Sent: Thursday, November 10, 2011 2:17 PM
-> To: users at shibboleth.net
-> Subject: Re: Getting SP's Description
-> 
-> On 11/10/11 2:08 PM, "Natarajan, Senthil" <senthil at pitt.edu> wrote:
-> 
-> >I am testing it with SP https://sp.testshib.org/    looks like it has the
-> >description.
-> 
-> Ok, just a thought. I have no experience with the taglib otherwise.
-> 
-> -- Scott
-> 
-> --
-> To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
-> --
-> To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
-> 
--
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net


More information about the users mailing list