How to get EntityID of SP with ExternalAuthnConfiguration
Noriyuki TAKEI
ntakei at sios.com
Fri Nov 10 14:01:07 UTC 2023
I solved the problem.
I was able to implement it as follows
final ProfileRequestContext prc =
ExternalAuthentication.getProfileRequestContext(key, req);
AuthnRequest authnRequest = (AuthnRequest)
prc.getInboundMessageContext().getMessage();
String entityId = authnRequest.getIssuer().getValue();
On Fri, Nov 10, 2023 at 5:35 PM Noriyuki TAKEI <ntakei at sios.com> wrote:
> 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?
>
> 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.
>
> public class ExternalAuthnFlowServlet extends HttpServlet {
>
> @Override
> protected void service(final HttpServletRequest req, final
> HttpServletResponse resp) throws ServletException {
> // get EntityID of SP.
> // here is the process to get EntityID of SP.
>
> }
>
> Shibboleth IdP version is 5.0.0
>
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20231110/b9ab8bec/attachment.htm>
More information about the users
mailing list