Commit aed9d67d authored by Felipe Passos Cardoso's avatar Felipe Passos Cardoso
Browse files

Alterando para IdP genérico

parent d2289e82
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<bytecodeTargetLevel target="1.8" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RemoteRepositoriesConfiguration">
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Maven Central repository" />
<option name="url" value="https://repo1.maven.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="jboss.community" />
<option name="name" value="JBoss Community repository" />
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
</remote-repository>
<remote-repository>
<option name="id" value="MavenRepo" />
<option name="name" value="MavenRepo" />
<option name="url" value="https://repo.maven.apache.org/maven2/" />
</remote-repository>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="FrameworkDetectionExcludesConfiguration">
<file type="web" url="file://$PROJECT_DIR$" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AutoImportSettings">
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="c91ad1cf-7bc7-486c-8b58-45c9d9452acf" name="Default Changelist" comment="" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<list default="true" id="c91ad1cf-7bc7-486c-8b58-45c9d9452acf" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/.idea/compiler.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/.idea/jarRepositories.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/main/Main.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/main/Main.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/utils/NamespaceContextECP.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/utils/NamespaceContextECP.java" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
......@@ -43,11 +52,17 @@
<component name="ProjectLevelVcsManager" settingsEditedManually="true">
<ConfirmationsSetting value="2" id="Add" />
</component>
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">
<property name="ASKED_ADD_EXTERNAL_FILES" value="true" />
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" />
<property name="last_opened_file_path" value="$PROJECT_DIR$/src/main/java/main" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="project.structure.last.edited" value="Project" />
<property name="project.structure.proportion" value="0.0" />
<property name="project.structure.side.proportion" value="0.0" />
......@@ -58,18 +73,6 @@
<recent name="$PROJECT_DIR$/src/main/java/main" />
</key>
</component>
<component name="RunDashboard">
<option name="ruleStates">
<list>
<RuleState>
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
</RuleState>
<RuleState>
<option name="name" value="StatusDashboardGroupingRule" />
</RuleState>
</list>
</option>
</component>
<component name="RunManager" selected="Application.Main">
<configuration name="Main" type="Application" factoryName="Application" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="main.Main" />
......@@ -85,6 +88,17 @@
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration default="true" type="ArquillianJUnit" factoryName="" nameIsGenerated="true">
<option name="arquillianRunConfiguration">
<value>
<option name="containerStateName" value="" />
</value>
</option>
<option name="TEST_OBJECT" value="class" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="client-ecp-java [buildDependents]" type="GradleRunConfiguration" factoryName="Gradle" temporary="true">
<ExternalSystemSettings>
<option name="executionName" />
......@@ -135,6 +149,7 @@
</list>
</recent_temporary>
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="SvnConfiguration">
<configuration />
</component>
......@@ -149,24 +164,24 @@
<workItem from="1566853048711" duration="8386000" />
<workItem from="1566938517174" duration="218000" />
<workItem from="1567007110373" duration="526000" />
<workItem from="1628606351248" duration="3828000" />
</task>
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
<option name="version" value="3" />
</component>
<component name="Vcs.Log.Tabs.Properties">
<option name="TAB_STATES">
<map>
<entry key="MAIN">
<value>
<State>
<option name="COLUMN_ORDER" />
</State>
<State />
</value>
</entry>
</map>
</option>
<option name="oldMeFiltersMigrated" value="true" />
</component>
<component name="VcsManagerConfiguration">
<option name="ADD_EXTERNAL_FILES_SILENTLY" value="true" />
......
......@@ -41,7 +41,8 @@ public class Main {
//endpoint do SP que o Client deseja acessar
String httpUrlSp = args[0];
//Inserindo path do perfil ECP ao endpoint IdP SimpleSAMLphp
String httpUrlIdp = args[1] + "/simplesaml/saml2/idp/SSOService.php";
//String httpUrlIdp = args[1] + "/simplesaml/saml2/idp/SSOService.php";
String httpUrlIdp = args[1];
try {
......@@ -158,8 +159,8 @@ public class Main {
//Trocando Node Header da mensagem SOAP recebida pelo IdP pelo Node RelayState
Node nodeEcpResponse =
docIdpResponse.getElementsByTagName("SOAP-ENV:Header").item(0);
Node nodenovo = docIdpResponse.createElement("SOAP-ENV:Header");
docIdpResponse.getElementsByTagName("soap11:Header").item(0);
Node nodenovo = docIdpResponse.createElement("soap11:Header");
nodenovo.appendChild(nodeRelay);
nodeSpPackage.replaceChild(nodenovo, nodeEcpResponse);
......@@ -209,7 +210,7 @@ public class Main {
System.err.println("Quantidade de argumentos inválida\n" +
"Uso:\n" +
"java -jar <arquivo.jar> <endpoint do SP> <endpoit do IdP> " +
"<usuario:senha> [OPCIONAL]");
"<usuario:senha> [OPÇÕES]");
}
}
......
......@@ -10,7 +10,7 @@ public class NamespaceContextECP implements NamespaceContext {
if ("ecp".equals(s)) {
return "urn:oasis:names:tc:SAML:2.0:profiles:SSO:ecp";
}
else if ("S".equals(s) || "SOAP-ENV".equals(s)){
else if ("S".equals(s) || "SOAP-ENV".equals(s) || "soap11".equals(s)){
return "http://schemas.xmlsoap.org/soap/envelope/";
}
else if ("paos".equals(s)){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment