Add the ipsilon script to generate the metadata
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
802abfa3e3
commit
fc759fd447
2 changed files with 26 additions and 0 deletions
|
@ -293,6 +293,23 @@
|
|||
tags:
|
||||
- ipsilon
|
||||
|
||||
- name: copy saml2 metadata script
|
||||
template:
|
||||
src: prepare-saml2-metadata.py
|
||||
dest: /usr/local/bin/prepare-saml2-metadata
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
tags:
|
||||
- ipsilon
|
||||
|
||||
- name: generate the saml2 metadata
|
||||
command:
|
||||
cmd: /usr/local/bin/prepare-saml2-metadata
|
||||
creates: /etc/ipsilon/root/saml2/metadata.xml
|
||||
tags:
|
||||
- ipsilon
|
||||
|
||||
- name: set sebooleans so ipsilon can talk to the db
|
||||
seboolean:
|
||||
name: httpd_can_network_connect_db
|
||||
|
|
9
roles/ipsilon/templates/prepare-saml2-metadata.py
Normal file
9
roles/ipsilon/templates/prepare-saml2-metadata.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from ipsilon.providers.saml2idp import IdpMetadataGenerator, Certificate
|
||||
from datetime import timedelta
|
||||
cert = Certificate()
|
||||
cert.import_cert('/etc/ipsilon/root/saml2/idp.crt', '/etc/ipsilon/root/saml2/idp.key')
|
||||
#meta = IdpMetadataGenerator('https://id{{ env_suffix }}.fedoraproject.org', cert, timedelta(3600))
|
||||
meta = IdpMetadataGenerator('https://id{{ env_suffix }}.fedoraproject.org', cert)
|
||||
meta.output('/etc/ipsilon/root/saml2/metadata.xml')
|
Loading…
Add table
Add a link
Reference in a new issue