49 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
 | 
						|
from saml2 import BINDING_SOAP, BINDING_HTTP_REDIRECT, NAME_FORMAT_URI
 | 
						|
BASE = "http://localhost:8089/"
 | 
						|
 | 
						|
from pathutils import full_path
 | 
						|
 | 
						|
 | 
						|
CONFIG={
 | 
						|
    "service":{
 | 
						|
        "aa":{
 | 
						|
            "endpoints" : {
 | 
						|
                "attribute_service" : [(BASE + "as", BINDING_HTTP_REDIRECT)],
 | 
						|
                "single_logout_service": [(BASE+"slo", BINDING_SOAP)]
 | 
						|
            },
 | 
						|
            "release_policy": {
 | 
						|
                "default": {
 | 
						|
                    "lifetime": {"minutes":15},
 | 
						|
                    "attribute_restrictions": None, # means all I have
 | 
						|
                    "name_form": NAME_FORMAT_URI,
 | 
						|
                },
 | 
						|
            },
 | 
						|
            "subject_data": full_path("aa.db"),
 | 
						|
        }
 | 
						|
    },
 | 
						|
    "entityid" : BASE+ "aa",
 | 
						|
    "name" : "Rolands AA",
 | 
						|
    "debug" : 1,
 | 
						|
    "key_file" : full_path("test.key"),
 | 
						|
    "cert_file" : full_path("test.pem"),
 | 
						|
    #"xmlsec_binary" : None,
 | 
						|
    "metadata": {
 | 
						|
        "local": [full_path("metadata.xml"), full_path("vo_metadata.xml")],
 | 
						|
    },
 | 
						|
    "attribute_map_dir" : full_path("attributemaps"),
 | 
						|
    "organization": {
 | 
						|
        "name": "Exempel AB",
 | 
						|
        "display_name": [("Exempel AB","se"),("Example Co.","en")],
 | 
						|
        "url":"http://www.example.com/roland",
 | 
						|
    },
 | 
						|
    "contact_person": [{
 | 
						|
        "given_name":"John",
 | 
						|
        "sur_name": "Smith",
 | 
						|
        "email_address": ["john.smith@example.com"],
 | 
						|
        "contact_type": "technical",
 | 
						|
        },
 | 
						|
    ],
 | 
						|
}
 | 
						|
 |