glassfish get shibboleth sp attribute on iis

妖精的绣舞 提交于 2019-12-12 03:16:46

问题


I was able to get the information returned by Shibboleth through the program deployed above IIS (code below).

<% @ Page Language="C#" %>
<%
Response.Write("<h3>Server Variables</h3>");
Response.Write("mail= " + Request["mail"] + "<br>");
Response.Write("name = " + Request["name"] + "<br>");
%>

However, I can't get the authentication information when I jump to glassfish with the following Settings

<httpRedirect enabled="false" destination="https://glassfish.fujitsu.com:8443/info" exactDestination="true" httpResponseStatus="Found" />

After investigation, it was found that when IIS, the information returned by shibboleth could only exist in the request header.

What can I do to make the information available to glassfish's application

My environment is as follows OS: windows 2016 IIS: 10 GlassFish: 5.1.0

and my shibboleth2.xml is as follows:

<ISAPI normalizeRequest="true" safeHeaderNames="true" useHeaders="true">
<SSO entityID="http://adfs-srv.fujitsu.com/adfs/services/trust"
 discoveryProtocol="SAMLDS" discoveryURL="https://ds.example.org/DS/WAYF">
              SAML2
 </SSO>
...

attribute-map.xml's setting is as follow:

<Attribute name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress" id="mail" />
<Attribute name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name" id="name" />

The browser returns the result of the iis program is as follow:

Server Variables

mail= ***@cn.**.com
name= y*

thanks!! waiting for your help!

来源:https://stackoverflow.com/questions/58605074/glassfish-get-shibboleth-sp-attribute-on-iis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!