Correction to allow execution outside of Eclipse.

This commit is contained in:
rmkellogg
2021-07-27 15:32:47 -04:00
parent 6b1fc52a8d
commit c8068a0afe

View File

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