Reputation: 335
I am currently using pac4j to implement the SAML flow. To set the Identity Provider metadata we have an option to pass it as a file or resource or classpath.
Due to few security constraints, few of the paths are not openly accessible. So we save the entire Identity Provider metadata file content into the DB.
Is there a simpler way to load the Metadata content as a string into the SAML2Configuration()?
One way that I could think of was to create a Custom SAML2MetadataResolver
and pass that to the configuration.
But wanted to check if there is any other simpler way to do this.
Upvotes: 0
Views: 33
Reputation: 2699
You need to create your own mapping from your database data to the SAML2Configuration
component.
Upvotes: 0