Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eduGAIN contacts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
edugain
eduGAIN contacts
Merge requests
!4
added new script for identity federation security contacts
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
added new script for identity federation security contacts
davide.vaghetti/edugain-contacts:master
into
master
Overview
0
Commits
3
Pipelines
0
Changes
1
Merged
Davide Vaghetti
requested to merge
davide.vaghetti/edugain-contacts:master
into
master
4 years ago
Overview
0
Commits
3
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
c9888aa6
Prev
Next
Show latest version
1 file
+
18
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
c9888aa6
Added simple script to parse the security contacts of the eduGAIN identity federations
· c9888aa6
Davide Vaghetti
authored
4 years ago
edugain_security_contacts.py
0 → 100755
+
18
−
0
Options
#!/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
'
]
}
"
)
Loading