<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page import="com.ubintis.agt5.api.ApiDataService" %> <%@ page import="com.ubintis.agt5.common.util.JsonUtil" %> <%@ page import="com.ubintis.agt5.common.util.StrUtil" %> <%@ page import="com.ubintis.agt5.framework.bean.AgentBean" %> <%@ page import="com.ubintis.agt5.framework.config.AgentConfig" %> <%@ page import="java.util.HashMap" %> <%@ page import="java.util.List" %> <% String agent_id = ""; String agent_domain = ""; String server_id = ""; String server_app_url = ""; AgentBean agentBean = AgentConfig.getInstance().getAgentBean(); if( agentBean != null ) { agent_id = agentBean.getAgent_id(); agent_domain = agentBean.getAgent_domain(); server_id = agentBean.getServer_id(); server_app_url = agentBean.getServer_app_url(); } String pni_token = StrUtil.NVL( session.getAttribute( "pni_token" ) ); String user_data = StrUtil.NVL( session.getAttribute( "user_data" ) ); String strAgentList = ""; String loginPolicy = ""; if( !"".equals( pni_token ) ){ ApiDataService apiDataService = new ApiDataService(); strAgentList = StrUtil.NVL( apiDataService.getAgentList() ); loginPolicy = StrUtil.NVL( apiDataService.getLoginPolicy() ); } %> Pass-Ni SSO Agent Sample

Pass-Ni SSO Agent 샘플 화면

연동시스템 정보

Agent Info Domain : <%=agent_domain%>, ID : <%=agent_id%>
Server URL <%=server_app_url%>

사용자 정보

인증 토큰 <%=pni_token%>
사용자 정보 <%=user_data%>
<% if( "".equals( pni_token ) || "".equals( user_data ) ) { %> <% } else { %> <% if( !"none".equals( strAgentList ) && !"".equals( strAgentList ) ) { List> agentList = JsonUtil.parseList( strAgentList ); for( HashMap hm : agentList ) { String agtId = StrUtil.NVL( hm.get( "agt_id" ) ); String agtNm = StrUtil.NVL( hm.get( "agt_nm" ) ); String agtTy = StrUtil.NVL( hm.get( "agt_ty" ) ); String ssoUrl = StrUtil.NVL( hm.get( "sso_url" ) ); if( "CLIENT".equals( agtTy ) ) { %> <% } else { %> <% } } } } %>