- When the metadata generation script is executed it gathers the metadata from all the backend modules
- The metadata generation script creates a new metadata file for every identity provider
- The service provider needs to know which identity provider it want to authenticate at. How this is decided is out of scope for this application.
- The SAML2 mirror front could handle the dynamic endpoint URL:s generated by the metadata generation script. Based on the url the request is forwarded to the corresponding backend module
- The backend communicates with the identity provider and receives user information
- The response is converted to an internal representation and returned to the frontend module
- The response is returned to the service provider
After following the installation instructions, the proxy must be configured with a SAML2 frontend and an SAML2 backend.
-
Copy the necessary base configurations from the
<satosa_path>/example
directory:mkdir -p saml2-social/plugins cp example/{proxy_conf.yaml.example,internal_attributes.yaml.example} saml2-social/ cp example/plugins/frontends/saml2_frontend.yaml.example saml2-social/plugins/ cp example/plugins/backends/{facebook,google}_backend.yaml.example saml2-social/plugins/
-
Configure the proxy:
-
Rename
proxy_conf.yaml.example
toproxy_conf.yaml
:mv proxy_conf.yaml.example proxy_conf.yaml
-
Edit the necessary proxy configuration parameters, see the SATOSA proxy configuration section of the proxy configuration instructions for more information. To specify the necessary plugins make sure to include the following configuration parameter values:
BACKEND_MODULES: - saml2-social/plugins/facebook_backend.yaml - saml2-social/plugins/google_backend.yaml FRONTEND_MODULES: - saml2-social/plugins/saml2_frontend.yaml
-
Configure the attribute mapping:
-
Rename
internal_attributes.yaml.example
tointernal_attributes.yaml
:mv internal_attributes.yaml.example internal_attributes.yaml
-
Map the necessary attributes, see the Attribute mapping configuration section of the proxy configuration instructions for more information.
-
Configure the plugins
-
Rename
plugins/saml2_frontend.yaml.example
toplugins/saml2_frontend.yaml
andplugins/{facebook,google}_backend.yaml.example
toplugins/{facebook,google}_backend.yaml
mv plugins/saml2_frontend.yaml.example plugins/saml2_frontend.yaml mv plugins/facebook_backend.yaml.example plugins/facebook_backend.yaml mv plugins/google_backend.yaml.example plugins/google_backend.yaml
-
In
saml2_frontend.yaml
: Change themodule
configuration parameter tosatosa.frontends.saml2.SAMLMirrorFrontend
. -
Specify the necessary configuration parameters, see the Plugins section of the proxy configuration instructions for more information.
-
Generate the SAML metadata, see the SAML metadata section of the proxy configuration instructions for more information.
- Start the proxy application, see the Running the proxy application section of the proxy configuration instructions for more information.