<div dir="ltr"><div dir="ltr">I solved the problem.</div><div dir="ltr"><br></div><div dir="ltr">I was able to implement it as follows<br><br>final ProfileRequestContext prc = ExternalAuthentication.getProfileRequestContext(key, req);<br> AuthnRequest authnRequest = (AuthnRequest) prc.getInboundMessageContext().getMessage();<br>String entityId = authnRequest.getIssuer().getValue();<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 10, 2023 at 5:35 PM Noriyuki TAKEI <<a href="mailto:ntakei@sios.com">ntakei@sios.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Is there any way to get the EntityID of the SP to be authenticated in the Servlet that is first accessed when the ExternalAuthnConfiguration flow starts?<br><br>For example, the following is the Servlet class, and I would like to obtain the EntityID of the SP to be authenticated in the following service method.<br><br>public class ExternalAuthnFlowServlet extends HttpServlet {<br><br> @Override<br>protected void service(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException {<br> // get EntityID of SP.<br> // here is the process to get EntityID of SP.<br><br> }<br><br>Shibboleth IdP version is 5.0.0<br></div>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div></div></div></div></div></div>