Custom data connector issue

Dev31 islam.ezzat at ymail.com
Sat Aug 13 09:11:35 EDT 2016


What I want to do exactly is to take some parameters from the request header
coming and put them in the response if everything in my logic works fine and
this is normal as I think, now i'm implementing using java and I use the
APIs provided in the previous tutorial :

CustomDataConnector extends BaseDataConnector
CustomDataConnectorBeanDefinitionParser extends
BaseDataConnectorBeanDefinitionParser
CustomDataConnectorFactoryBean extends BaseDataConnectorFactoryBean
CustomDataConnectorNamespaceHandler extends BaseSpringNamespaceHandler 

Also schemas and Spring hierarchy is as described in the example in
https://wiki.shibboleth.net/confluence/display/SHIB2/IdPDevExtDataCtr which
is from shibboleth wiki

I made all the steps as in it but the value in the header will be different
every-time so I want my data connector handler to put it in the response and
as per the proposed implementation this method should do something like
this:

	public Map<String, BaseAttribute> resolves(ShibbolethResolutionContext
resolutionContext) throws AttributeResolutionException {

		Map<String, BaseAttribute> result = new HashMap<String, BaseAttribute>();
		//read data from the header

        String num  = "12234";  // this will be retrieved dynamically from
header

		BasicAttribute<String> numAttr = new BasicAttribute<String>("NUM");
	    
		numAttr.setId("Num");
		numAttr.getValues().add("55555");
				
		result.put("NUM", numAttr);      
        
		return result;
	}

this is overview about all what i'm trying to implement but the question is
i'm not implementing ldap or rational database or static connector but an
entity connector which should be doable also and i applied like the example
except that my attributes aren't static so what i'm missing...



--
View this message in context: http://shibboleth.1660669.n2.nabble.com/Custom-data-connector-issue-tp7627517p7627528.html
Sent from the Shibboleth - Developers mailing list archive at Nabble.com.


More information about the dev mailing list