Skip to content
Snippets Groups Projects
Commit 70d01325 authored by Davide Vaghetti's avatar Davide Vaghetti
Browse files

Updated identity_federations_contacts.py to list only active federations + belonging COUNTRY

parent 860e6ed7
No related branches found
No related tags found
1 merge request!5Master
#!/usr/bin/env python3
# This script consume the eduGAIN API to retrieve the details of all the
# eduGAIN identity federations and parse it to create a list of
# security email addresses, if available, and the corresponding
# federation name in CSV format.
# eduGAIN identity federations and parse it to create a list of security
# email addresses, if available, and the corresponding federation name in
# CSV format.
# This list will be printed to stdout.
import requests
......@@ -12,6 +12,8 @@ feds = requests.get('https://technical.edugain.org/api.php?action=list_feds_full
feds_dict = feds.json()
print('#NAME,EMAIL')
for fed in feds_dict:
if 'security_contact' in feds_dict[fed]:
if 'mail' in feds_dict[fed]['security_contact']:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment