Skip to content

Deploys the mod_auth_mellon apache module, a simple SAML 2.0 service provider

License

Notifications You must be signed in to change notification settings

dnmvisser/ansible-role-mellon_sp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role: mod_auth_mellon

An Ansible Role that installs the mod_auth_mellon Apache module. This module implements a SAML 2.0 service provider, to authenticate against a SAML 2.0 Identity Provider (Idp).

This role installs and enables the apache module, copies cryptograhic key material, and adds IdP metadata. You are encouraged to encrypt the generated private key using the ansible-vault encrypt <keyfile> command. When this is done you will need to issue --ask-vault-pass or similar when running the playbook.

The module configuration should be done in your Apache config.

Requirements

Generate a self signed cert with OpenSSL:

openssl req -new -x509 -days 3652 -nodes -out sp.crt -keyout sp.key

Define these vars in your playbook (or elsewhere - probably encrypt the private key) as:

  • mellon_sp_key
  • mellon_sp_crt

Role Variables

mellon_sp_cfg_dir: "/etc/apache2/mellon"

The directory where the keypair and IdP metdata is stored.

mellon_sp_remote_idp_metadata_url:
  - "https://idp.unilely.nl/saml2/idp/metadata.php"

A list of URLs from where to fetch the IdP metadata.

Dependencies

None

Example Playbook

- hosts: sso-webservers
  roles:
     - dnmvisser.mellon_sp

License

MIT

Author Information

This role was created in 2017 by Dick Visser [email protected].

About

Deploys the mod_auth_mellon apache module, a simple SAML 2.0 service provider

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages