SPI Overview Types of User and Role Providers

25-36 Oracle Fusion Middleware Application Security Guide These steps are required to set up the sample provider: 1. Implement the User and Role APIs to access the database repository serving as the identity store. This involves: a. Building the sample provider. Run ant help for instructions. b. Creating the identity store schema in the database. 2. Configure the sample provider as the identity store, as shown in Section 25.10.7.3, Configure jps-config.xml to use the Sample Identity Provider . 3. Set up Weblogic Authenticator to use this provider as SQLAuthenticator, as explained in Section 25.10.7.4, Configure Oracle WebLogic Server .

25.10.7.3 Configure jps-config.xml to use the Sample Identity Provider

Configure jps-config.xml as follows to enable the sample identity provider to be used as the identity store:

1. Add a new provider in the service providers list:

serviceProviders ............ serviceProvider type=IDENTITY_STORE name=custom.provider class=oracle.security.jps.internal.idstore.generic.GenericIdentityStoreProvide r descriptionCustom IdStore Providerdescription serviceProvider serviceProviders

2. Add the service instance:

serviceInstances ........ serviceInstance name=idstore.custom provider=custom.provider location=dumb descriptionCustom Identity Store Service Instancedescription property name=idstore.type value=CUSTOM property name=ADF_IM_FACTORY_CLASS value=custom_provider_identityStoreFactoryClassName property name=DB_SERVER_NAME value=db_server_name property name=DB_SERVER_PORT value=db_port property name=DB_DATABASE_NAME value=db_service_name property name=ST_SECURITY_PRINCIPAL value=user_name property name=ST_SECURITY_CREDENTIALS value=password serviceInstance ........ serviceInstances Note: The sample provider is intended solely for demonstration purposes, and it is not advisable to use this provider in production without exhaustive testing. Note: custom_provider_identityStoreFactoryClassName for the sample provider is org.sample.providers.db.DBIdentityStoreFactory