Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

jazn autorization

1136671Apr 2 2015 — edited Apr 9 2015

I have an ADF application. To add the security (authentication and authorization) to the application I am using XML based security provider i.e jazn-data.xml.

For development and testing i have created some users , groups  and resource grants (permissions) using ADF Security wizard in jdeveloper. I am deploying this application in stand alone weblogic server.

I tried to create additional user and group in weblogic console under default security realm. If permissions are already defined in System-jazn-data.xml for the newly created group , user will be authorized to access the application. But for that I have to edit system-jazn-data.xml manually to add permissions for the role.

I want to let admin user of weblogic to define users , groups and want to define permissions in system-jazn-data.xml programmatically.

Is there any way to automate "create resource grants" (resource permissions ) in jazn file for a given user and group?

below is the section of my jazn-data.xml which i want to create programmatically

     <grant>

            <grantee>

              <principals>

                <principal>

                  <name>MyAppRole</name>

                  <class>oracle.security.jps.service.policystore.ApplicationRole</class>

                </principal>

              </principals>

            </grantee>

            <permissions>

              <permission>

                <class>oracle.adf.share.security.authorization.RegionPermission</class>

                <name>oracle.apps.page.TestPFPageDef</name>

                <actions>view</actions>

              </permission>

              <permission>

                <class>oracle.adf.share.security.authorization.RegionPermission</class>

                <name>oracle.apps.page.TestPGPageDef</name>

                <actions>view</actions>

              </permission>

            </permissions>

          </grant>

earliest response in this regard would be highly appreciated.

Thanks,

Megha

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 7 2015
Added on Apr 2 2015
2 comments
399 views