From fdb37b09e9b411b46ae14e93316c599def1196b5 Mon Sep 17 00:00:00 2001 From: Rebecka Gulliksson Date: Thu, 10 Dec 2015 05:44:58 +0100 Subject: [PATCH] Added documentation of indexed endpoints in pysaml config. --- doc/howto/config.rst | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/doc/howto/config.rst b/doc/howto/config.rst index 2d08979..4412b57 100644 --- a/doc/howto/config.rst +++ b/doc/howto/config.rst @@ -452,8 +452,23 @@ This directive has as value a dictionary with one or more of the following keys: * single_logout_service (aa, idp, sp) * single_sign_on_service (idp) -The values per service is a list of tuples containing endpoint and binding -type. +The values per service is a list of endpoint specifications. +An endpoint specification can either be just the URL:: + + ”http://localhost:8088/A" + +or it can be a 2-tuple (URL+binding):: + + from saml2 import BINDING_HTTP_POST + (”http://localhost:8087/A”, BINDING_HTTP_POST) + +or a 3-tuple (URL+binding+index):: + + from saml2 import BINDING_HTTP_POST + (”http://lingon.catalogix.se:8087/A”, BINDING_HTTP_POST, 1) + +If no binding is specified, no index can be set. +If no index is specified, the index is set based on the position in the list. Example::