def get_app_value()

in src/Saas.SignupAdministration/deployment/script/map-to-config-entries-parameters.py [0:0]


def get_app_value(
    config: dict, 
    app_name: str, 
    key: str,
    keyName: str) -> 'dict[str, dict[str, str]]':
    
    for item in config['appRegistrations']: 
        if item['name'] == app_name: 
            return {
                keyName: {
                    'value': item[key]
                }
            }