Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
edugain
eduGAIN contacts
Commits
4b6a19dc
Commit
4b6a19dc
authored
Dec 04, 2020
by
Davide Vaghetti
Browse files
Merge branch 'master' into 'master'
added new script for identity federation security contacts See merge request
!4
parents
241eef9a
5a434147
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
4b6a19dc
# eduGAIN Contacts
This script will download the current edugain metadata aggregate XML and parse it
to derive a list of contacts in CSV format. The list will be printed to stdout.
This repository contains tools to parse contacts from eduGAIN metadata and from
the eduGAIN APIs published on https://technical.edugain.org/api.php.
## Identity federations security contacts
Script name :
`identity_federations_security_contacts.py`
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. This list will be printed to stdout.
## Entities security contacts
Script:
`entities_security_contacts.py`
This script will download the current edugain metadata aggregate XML and parse all the
identity providers found in order to derive a list of Organization names, domains and
security contacts in CSV format. This list will be printed to stdout.
e
dugain
_contacts.py
→
e
ntities_security
_contacts.py
100644 → 100755
View file @
4b6a19dc
...
...
@@ -6,7 +6,6 @@
import
requests
from
xml.etree
import
ElementTree
as
ET
from
urllib.parse
import
urlparse
def
strip_start
(
s
,
start
):
...
...
identity_federations_security_contacts.py
0 → 100755
View file @
4b6a19dc
#!/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.
# This list will be printed to stdout.
import
requests
feds
=
requests
.
get
(
'https://technical.edugain.org/api.php?action=list_feds_full'
)
feds_dict
=
feds
.
json
()
for
fed
in
feds_dict
:
if
'security_contact'
in
feds_dict
[
fed
]:
if
'mail'
in
feds_dict
[
fed
][
'security_contact'
]:
print
(
f
"
{
fed
}
,
{
feds_dict
[
fed
][
'security_contact'
][
'mail'
][
'value'
]
}
"
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment