IdP metrics: is the SP entityId available?

Etienne Dysli-Metref etienne.dysli-metref at switch.ch
Tue Aug 8 08:45:56 EDT 2017


I would like to count the different profile requests per SP with the
new metrics system. I can get the profileId in the script with
`input.getProfileId()`, but couldn't manage to fetch the SP's entityId
from the context as both
`input.getSubcontext("net.shibboleth.idp.profile.context.RelyingPartyContext")`
and
`input.getInboundMessageContext().getSubcontext("org.opensaml.saml.common.messaging.context.SAMLPeerEntityContext")`
return null. I suspect the metrics script runs a bit too early for these
subcontexts to be available. Is there another way to get the SP's
entityId from this script?

  Etienne

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://shibboleth.net/pipermail/users/attachments/20170808/f352eb47/attachment.sig>


More information about the users mailing list