Skip to content

Commit

Permalink
SHIBUI-2510
Browse files Browse the repository at this point in the history
Updated the SHIB properties list
  • Loading branch information
chasegawa committed Sep 15, 2023
1 parent 0ec03d0 commit cdfd5c1
Show file tree
Hide file tree
Showing 2 changed files with 668 additions and 658 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ class ShibPropertiesBootstrap {

@Transactional
@EventListener
void bootstrapUsersAndRoles(ApplicationStartedEvent e) {
void bootstrapShibPropertiesList(ApplicationStartedEvent e) {
log.info("Ensuring base Shibboleth properties configuration has loaded")

Resource resource = new ClassPathResource('shib_configuration_prop.csv')
final HashMap<String, ShibConfigurationProperty> propertiesMap = new HashMap<>()

// Read in the defaults in the configuration file
new CSVReader(new InputStreamReader(resource.inputStream)).each { fields ->
def (resource_id,category,config_file,description,idp_version,module,module_version,note,default_value,property_name,property_type,selection_items,property_value) = fields
def (resource_id,category,config_file,description,idp_version,module,module_version,note,default_value,property_name,property_type,selection_items) = fields
ShibConfigurationProperty prop = new ShibConfigurationProperty().with {
it.resourceId = resource_id
it.category = category
Expand Down
Loading

0 comments on commit cdfd5c1

Please sign in to comment.