J2EE Authentication and Authorization - Oracle Application Server 10.1.3
Hello All,
Thought this may help Developers who are trying to secure their apps
As we all know Authentication and Authorization could be a Filebased or From a Database or From LDAP Directory.
File Based Security:
The File which is used for Authentication purposes in 10.13 server is system-jazn-data.xml
This file will be located in
/ORACLE_HOME/j2ee/oc4j_instance/config.
Create Users from EM Console
a. Login to EM Console of App Server
b. click on oc4j-instance
c.click on Administration--> security Provider --> Click Create (make sure the Realm is Jazn.com)
Embedded Oc4j
Please refer the below link to create users and Roles on a embedded oc4j
http://download.oracle.com/docs/cd/B32110_01/webcenter.1013/b31072/tt_appendix_a.htm
The file which gets updated with this information will be located in
\jdev_home\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\config\system-jazn-data.xml
OID --> you could use a 3rd party LDAP or OID (if you have Portal)
Assumption: This Container is configured to use single Sign on.
a. Create Group(Login as Administrator --go to edit mode-->click on Builder-->click on Administer)
b.Assign Users to the group created.
Configure this group in web.xml file.
Note:
You cant use the 'AUTHENTICATED_USERS' group which is the Default Group in OID.
So , you should create a new group and assign users if you want to use in your App.
Reason is explained in Metalink Note:ID 376644.1
Thanks
Prem
Tuesday, November 17, 2009
Friday, November 6, 2009
RIA with Oracle Portal/BPEL
Hello,
I was looking ways to use our Existing infrastructure effectively, for the RI application development.
The Below Link Helped me to Start planning my Development.
http://www.jamesward.com/blog/2006/11/02/flex-your-oracle-portal/
We always develop an Application using Blazeds or Flex with remote service or WebService and deploy it to 10.1.3 container (as Blazeds works only on 1.5) and integrate it as a partner application with portal.
This works Fine ..However Instead of Calling the Flex app as an external App ,i integrated it within a portlet and deployed to Oracle Portal 10.1.4
Development Steps.
a. Developed a Bpel WebService and deployed it to a Bpel Container .
b. I used soap-UI to Test the Service.
For eg:http://hostname:port/orabpel/domain/DivIdentifierService/1.0DivIdentifierService?wsdl
c.Developed the Flex App And consumed the BPEL Web-Service.(show the data returned by the Bpel-webservice in a DataGrid)
Compiled it
d.Created a page group called swf( you can name it what ever..)
e.Used a webDav Client(Oracle Drive) to upload the .swf file to the PageGroup
Path of my swf File.
/portal/page/portal/PageGroupName/DisplayName/FlexBpel.swf
f.Create a PDK Portlet (pdk version 10.1.2.0.2) using the Wizard just click and finish it. ( i selected a jsp file instead of a html file)
Used a div tag to embed the .swf file
g.Deployed the app, Register the provider, Published the Portlet.
Works Fine.
Tried to present the above in a picture
Please let me know your thoughts.
Thanks
Prem
I was looking ways to use our Existing infrastructure effectively, for the RI application development.
The Below Link Helped me to Start planning my Development.
http://www.jamesward.com/blog/2006/11/02/flex-your-oracle-portal/
We always develop an Application using Blazeds or Flex with remote service or WebService and deploy it to 10.1.3 container (as Blazeds works only on 1.5) and integrate it as a partner application with portal.
This works Fine ..However Instead of Calling the Flex app as an external App ,i integrated it within a portlet and deployed to Oracle Portal 10.1.4
Development Steps.
a. Developed a Bpel WebService and deployed it to a Bpel Container .
b. I used soap-UI to Test the Service.
For eg:http://hostname:port/orabpel/domain/DivIdentifierService/1.0DivIdentifierService?wsdl
c.Developed the Flex App And consumed the BPEL Web-Service.(show the data returned by the Bpel-webservice in a DataGrid)
Compiled it
d.Created a page group called swf( you can name it what ever..)
e.Used a webDav Client(Oracle Drive) to upload the .swf file to the PageGroup
Path of my swf File.
/portal/page/portal/PageGroupName/DisplayName/FlexBpel.swf
f.Create a PDK Portlet (pdk version 10.1.2.0.2) using the Wizard just click and finish it. ( i selected a jsp file instead of a html file)
Used a div tag to embed the .swf file
g.Deployed the app, Register the provider, Published the Portlet.
Works Fine.
Tried to present the above in a picture
Please let me know your thoughts.
Thanks
Prem
Subscribe to:
Posts (Atom)