Skip to main content

Posts

OIG 11g R2 PS3 : Features

Oracle Identity Governance PS3: Main themes: 1)       Identity Services for Mobile and Extranet 2)       Comprehensive Role Management and Continuous Compliance 3)       Simplified and Scalable Provisioning 4)       Enhanced Privileged Access 5)       Enhanced Cloud integration Overall Goals, Themes & Features: 1)       Identity Services for Mobile and Extranet a)       Users can manage their devices, request for apps via the Enterprise App Store through the Governance self-service console b)       Birthright access to mobile apps and devices driven by Enterprise roles c)        Simplified deployment with LDAP as ID Store, no SOA and approvals d)       SCIM/ REST for Extranet-focused Identity Services ...

Oracle Traffic Director (OTD) configuration

Download the OTD software and install it on a server by running runInstaller command from <Binaries>/Disk1. Preferred is to configure the OTD as root user because when the administration server is configured as root, then Oracle Traffic Director starts the keepalived daemon automatically when you start instances that are part of a failover group, and stops the daemon when you stop the instances. Set Oracle_Home as the new Installed OTD Home. Run below command to configure the Admin server: <OTD_HOME>/otd/bin/tadm configure-server --port=8989 --user=admin --server-user=root --instance- home= <OTD_HOME> /otd/instance_name/otd_instance1 This command will ask for admin password and will create the admin server. Run Below command to start the admin server: <OTD_HOME> /otd/instance_name/otd_instance1/admin-server/bin/startserv Login to the OTD console on http://<host>:8989 as admin user.  Click New configuration: Click Next and create ne...

Custom Login Page Protection- OAM 11g R2

Create a login page with fields having username,password and requestid. Below is the sample login page : <%@page language="java" session="true" contentType="text/html;charset=ISO-8859-1"  %> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request. getServerPort()+path+"/"; String requestID = request.getParameter("request_id"); %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <font color="blue">Login Page </font><br><br> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Implementing css and javascript</title> <meta http-equi...

Configuring Multi Data Source in Weblogic (Load-Balancing between Data Sources)

We can Create a Multi data Source in Weblogic which can perform Load balancing/ Fail-over among multiple generic Data sources. The Applications deployed on Weblogic will point to this Multi data Source and This Multidata source will do the load balancing/ fail-over internally. Below are the steps to create a Multi data source: Login to the weblogic console and click services. Click on Data Sources and create a new generic data source. Provide all the connection details and test the connection with Database. After this create another generic Data source. MultiData Source will do a load balancing between these 2 data sources.  After both the data sources are created. Click on Services--> Data Sources. Create a new Multi Data Source. Provide the name of the Multi data source, JNDI name of the Data Source and select either load balancing or Fail-Over from Algorithm type.  Select the server where Multidata source will be deployed (Se...

Retrieving OAM OAuth access token through Java

Create a OAuth client in OAM. Encode the username and password of the client in "username:password" format. This can be achieved from https://www.base64encode.org/ site. Once OAuth client is created it can be checked using below command: curl -i -H 'Authorization: Basic <Encoded Username:Password>' -H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" --request POST http://<OAM_host>:14100/ms_oauth/oauth2/endpoints/oauthservice/tokens -d 'grant_type=password&username=<OAM_Admin>&password=<OAM_Admin_Pwd>'   If the response is 200 and access token is retrieved then OAuth service is working fine. Same access token can be retrieved using below sample code : import java.io.BufferedReader; import java.io.DataOutputStream; import java.io.InputStreamReader; import org.json.JSONObject; import java.net.HttpURLConnection; import java.net.URL; public class CheckRest { public static void main(Stri...

Account Provisioning through API - OIM 11g R2

public class AccountManagement { OIMClient client=ClientOIM.initialise(); oracle.iam.provisioning.api.ApplicationInstanceService appInstanceService=client.getService(oracle.iam.provisioning.api.ApplicationInstanceService.class); ProvisioningService provisioningService=client.getService(ProvisioningService.class); ClientOIM oim=new ClientOIM(); public void provisionAccount(String accName,String userID) { try { if (accName!=null && !accName.equals("") && userID!=null && !userID.equals("") ) { ApplicationInstance appInstance=appInstanceService.findApplicationInstanceByName(accName); long appKey=appInstance.getApplicationInstanceKey(); System.out.println("AppKey is "+appKey); FormInfo formInfo=appInstance.getAccountForm(); String formKey=String.valueOf(formInfo.getFormKey()); System.out.println("formKey is "+formKey); HashMap parentData=new HashMap(); /*Madator...

Searching and creating Organization Through API- OIM 11g R2

public class OrgManagement { static OrganizationManager orgManager=null; static OIMClient client=null; static Organization organization=null; public static void createOrg(String orgName, String orgType) { try { client=ClientOIM.initialise(); if (orgName!=null && orgType!=null) { orgManager=client.getService(OrganizationManager.class); System.out.println("OrgManagement :: createOrg :: org is "+orgManager); HashMap<String, Object> mapAttrs = new HashMap<String, Object>(); mapAttrs.put(OrganizationManagerConstants.AttributeName.ORG_NAME.getId(),orgName); mapAttrs.put(OrganizationManagerConstants.AttributeName.ORG_TYPE.getId(),orgType); Organization org=new Organization(null,mapAttrs); orgManager.create(org); System.out.println("OrgManagement :: createOrg ::  Organization created"); } }  catch (OrganizationManagerException e) { // TODO Auto-generated catch block e.printStackTrace(); ...