In a previous post, I mentioned that I was using membership in an eBusiness Suite Responsibility as the basis for an HTML DB Authorization Scheme. It’s really quite simple to set up, and even easier to manage.
Note: This assumes that you have already integrated HTML DB with the Oracle Single Sign On server. See this How To for detailed steps on how to do that.
That’s it! Now that your Authorization Scheme is associated with an eBusiness Suite Responsibility, only those users who have that Responsibility will be able to access your application!
As this project moves forward, I’ll be posting more ways to hook HTML DB up to the eBusiness Suite.
Note: This assumes that you have already integrated HTML DB with the Oracle Single Sign On server. See this How To for detailed steps on how to do that.
- Create a new Responsibility in the eBusiness Suite
- Once created, note the RESPONSIBILITY_ID. You can obtain this via SQL*Plus or from the Help : Examine : Item menu in the eBusiness Suite.
- In HTML DB, create a new Authorization Scheme. Select Exists SQL Query as the Scheme Type, and enter the following as Expression 1:
select 1 from apps.fnd_user_resp_groups ur, apps.fnd_user u
where u.user_name = :APP_USER and u.user_id = ur.user_id
and ur.responsibility_id = 50280 - Be sure to use your RESPONSIBILITY_ID in place of mine (50280).
- Associate this new Authorization Scheme with an Application by editing the Application Attributes and selecting your Authorization Scheme in the Authorization section.
That’s it! Now that your Authorization Scheme is associated with an eBusiness Suite Responsibility, only those users who have that Responsibility will be able to access your application!
As this project moves forward, I’ll be posting more ways to hook HTML DB up to the eBusiness Suite.
Comments
It's been a while since I've been in the eBusiness Suite. You'll want to add:
and ur.end_date > sysdate
to the above query, as Responsibilities cannot be deleted, only expired.
Thanks,
- Scott -
Not related to eBusiness Suite but with security in HTMLDB on how the Authorisation or security works. Is there no 'secure' way of using the Authorization based on HTMLDB 'items'. I have flags inside my application which controls the flow and conditional display and linking that in the authorization. But this seems to break as it can be manipulated through the URLs. I had raised this in http://forums.oracle.com/forums/thread.jspa?threadID=318375&tstart=0
but no answer yet. Was working in 1.6. In 2.0 I saw the new security access which has 'Restricted - May not be set from browser', but this cannot be used for hidden items (why?!), and there is no documentation on how the checksum should be used in the URL (no change in documentation for 'Understanding URL format'). Can you suggest a solution for this (or maybe can answer in the forum itself?)
Partha K
I am trying to do the same thing as you, that is integrating an HTML DB application with the Oracle eBusiness Suite.
I solved the problem in a different way, since here we don't have an SSO server.
The user is validated using the fnd_web_sec.validate_login, as found in a tip on the HTML DB Studio, then he will be presented a list of responsibilities that he can choose to work with the HTML DB application.
I am using mainly the HR and Payroll modules, so each responsibility is linked to a security profile that restricts the user data visibility. I wanted to have the same functionality in my application, but the standard Apps secured views are not working reliably from HTML DB, so I built my secured views using a custom function that behaves in the same way.
I already found some workarounds for the conflicts coming from the Apps HR security implementation, that can arise when querying secured views or calling an Oracle Apps standard API procedure from HTML DB.
If you need it, I can share some of my findings with you.
Cheers,
Paolo
This is great. One way to do it using SSO and another without.
Paolo, it would be a benefit to a lot of folks if you share how you devised a solution for non-sso environment with your custom views etc.
As far as I know there are more sites who don't use SSO than those who do. So this will be huge for those sites.
Thanks Scott for sharing the SSO/R11i integration with HTMLDB.
Looks like the other Scott has already addressed your problem.
Have a look at this quick demo I set up: http://htmldb.oracle.com/pls/otn/f?p=31579:1
You can definitely prevent hidden items from being set via the URL in HTML DB 2.0.
Thanks,
- Scott -
I'd be interested in seeing what you have done as well. Perhaps you can post a Tip & Trick on HTML DB Studio so that many can benefit from it.
Thanks,
- Scott -
Thanks for the attention,
Paolo
This is not about this particular topic though. I have been to your website, sumnertech.com It's a great website. I like the HTMLDB applications background you used. It's splendid. KUDOS.
Thanks for the compliments. Although I am not a graphic designer by trade, I have a limited set of skills which I use from time to time. :)
Thanks,
- Scott -