Skip to content

Commit

Permalink
[SHIBUI-808]
Browse files Browse the repository at this point in the history
custom configuration manager for pac4j
  • Loading branch information
jj committed Oct 2, 2018
1 parent 48e5769 commit b3de46b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
public class Pac4jConfiguration {
@Bean
public Config config(final Pac4jConfigurationProperties pac4jConfigurationProperties) {
System.setProperty("skipPac4jOpenSAMLinit", "true");
final SAML2ClientConfiguration saml2ClientConfiguration = new SAML2ClientConfiguration();
saml2ClientConfiguration.setKeystorePath(pac4jConfigurationProperties.getKeystorePath());
saml2ClientConfiguration.setKeystorePassword(pac4jConfigurationProperties.getKeystorePassword());
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package net.unicon.shibui.pac4j;

import org.pac4j.saml.util.ConfigurationManager;

import javax.annotation.Priority;

@Priority(1)
public class Pac4jSAMLConfigurationManager implements ConfigurationManager {
@Override
public void configure() {
// do nothing. we already configuration opensaml elsewhere
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
net.unicon.shibui.pac4j.Pac4jSAMLConfigurationManager

0 comments on commit b3de46b

Please sign in to comment.