Correction to allow execution outside of Eclipse.

This commit is contained in:
rmkellogg 2021-07-27 15:32:47 -04:00
parent a20b32c413
commit 9c3bf05bb3
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ public class SamlSecurityConfig {
public ExtendedMetadataDelegate oktaExtendedMetadataProvider() throws MetadataProviderException { public ExtendedMetadataDelegate oktaExtendedMetadataProvider() throws MetadataProviderException {
File metadata = null; File metadata = null;
try { try {
metadata = new File("./src/main/resources/saml/metadata/sso.xml"); metadata = new ClassPathResource("saml/metadata/sso.xml").getFile();
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }