Skip to content

Commit

Permalink
SAML Authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
tifoha committed Jan 20, 2016
1 parent 354e6c4 commit 2fdd494
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions ivis-server/src/main/java/com/imcode/saml2/Imcms.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ public static Map<String, AuthenticationMethodConfiguration> getAuthenticationCo
//
private static Properties getServerProperties() {
Properties props = new Properties();
props.setProperty("server-name", "http://ivis.dev.imcode.com/acs");
props.setProperty("authentication-method-1", "loginPassword");
props.setProperty("authentication-method-2", "cgi");
props.setProperty("cgi-authentication-method-url", "https://m00-mg-local.testidp.funktionstjanster.se/samlv2/idp/req/0/0");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public void loginUser(SAMLSessionInfo samlSessionInfo, HttpServletRequest reques
// }
}

private User prepareUser(SAMLSessionInfo sessionInfo) {return null;}
// private User prepareUser(SAMLSessionInfo sessionInfo) {return null;}

// private UserDomainObject prepareUser(SAMLSessionInfo sessionInfo) {
// UserDomainObject user = new UserDomainObject();
Expand Down
3 changes: 3 additions & 0 deletions ivis-server/src/main/webapp/WEB-INF/server.properties
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ Password = 415263
Hibernate.hbm2ddl = update
Hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect

#Server
Server.name = http://localhost:8080


5 changes: 5 additions & 0 deletions ivis-server/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
<param-value>/WEB-INF/spring/app-context-xml.xml</param-value>
</context-param>

<context-param>
<param-name>server.name</param-name>
<param-value>/WEB-INF/server.properties['server.name']</param-value>
</context-param>



<!-- Фильтр для перекодировки в utf8 -->
Expand Down

0 comments on commit 2fdd494

Please sign in to comment.