Sun OpenSSO Enterprise 8.0 Developer's Guide

Creating Identity Types

The create REST interface will create the defined identity type in the configured data store. The URL needs to be populated with the following information.

This URL would create a user type.


http://OpenSSO-host:OpenSSO-port/opensso/identity/create?identity_name=rest_user
&identity_attribute_names=userpassword&identity_attribute_values_userpassword=secret123
&identity_attribute_names=sn&identity_attribute_values_sn=sn_of_rest_user
&identity_attribute_names=cn&identity_attribute_values_cn=cn_of_rest_user
&identity_realm=/&identity_type=user
&admin=AQIC5wM2LY4Sfcwbg2YdVMaYsfEqdxHDMUc47WSLBNTOlrk=@AAJTSQACMDE=#

The following URL would create a web agent profile for Policy Agent 3.0 types.


http://OpenSSO-host:OpenSSO-port/opensso/identity/create?identity_name=webagent
&identity_realm=/&identity_type=AgentOnly
&identity_attribute_names=userpassword&identity_attribute_values_userpassword=secret123
&identity_attribute_names=AgentType&identity_attribute_values_AgentType=WebAgent
&identity_attribute_names=SERVERURL&identity_attribute_values_SERVERURL=
http://web-agent-host:web-agent-port/opensso

The following URL would create a J2EE agent profile for Policy Agent 3.0 types.


http://OpenSSO-host:OpenSSO-port/opensso/identity/create?identity_name=j2eeagent
&identity_realm=/&identity_type=AgentOnly
&identity_attribute_names=userpassword&identity_attribute_values_userpassword=secret123
&identity_attribute_names=AgentType&identity_attribute_values_AgentType=J2EEAgent
&identity_attribute_names=SERVERURL
&identity_attribute_values_SERVERURL=http://J2EE-agent-host:J2EE-agent-port/opensso
&identity_attribute_names=AGENTURL&identity_attribute_values_AGENTURL=
http://OpenSSO-host:OpenSSO-port/opensso

The following URL would create a 2.2 agent profile.


http://OpenSSO-host:OpenSSO-port/opensso/identity/create?identity_name=webagent70
&identity_attribute_names=userpassword&identity_attribute_values_userpassword=secret123
&identity_realm=/&identity_type=Agent
&admin=AQIC5wM2LY4SfcxCWBCNON1gTsaMaHISbYmTyYosv8pCPVw=@AAJTSQACMDE=#

Tip –

Use the search REST interface to verify that the identity type has been created.