best grammar app

How to make your BizSolo authenticated

Submitted by Abhishek on Fri, 2011-12-23 12:27
Progress Savvion

BizSolo applications are one of the useful components of Savvion. They allow you to create standalone web applications which can do various things. I use it to create masters, basic forms, database centric applications etc. One of the problems or rather facilities with BizSolo is that it does not ask for a username password to log in. Which means if you want to do some authenticated operations you can't. A client of mine wanted to build an entitlements system around BizSolo but could not get the username (why because there was no user there).

This post will help you setup Authentication on BizSolo.

Assuming your BizSolo is called TestBizSolo, you will need to add an entry in web.xml to activate authentication. Depending on your server, find your web.xml file for sbm. If you are using pramati, that will be

SBM_HOME/webapps/deploy/sbm/WEB-INF/lib

folder. Open web.xml in a text editor.

 

Search for BizSolo, The second match should show you something like the code below

<!-- add your web applications here ! -->
    <filter-mapping>
        <filter-name>BizPassFilter</filter-name>
        <url-pattern>/BizSolo/Approval_Ver2/*</url-pattern>
    </filter-mapping>
         <filter-mapping>
        <filter-name>BizPassFilter</filter-name>
        <url-pattern>/ebmsapps/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
         <filter-name>DocumentSessionTimeoutFilter</filter-name>
         <url-pattern>/bizsite/*</url-pattern>
     </filter-mapping>

You will need to add your application here. You can do it by adding the lines below

 <filter-mapping>
        <filter-name>BizPassFilter</filter-name>
        <url-pattern>/BizSolo/TestBizSolo/*</url-pattern>
    </filter-mapping>

Save the web.xml file and restart your server.

Now your BizSolo becomes authenticated.

Now if you need to access the currently logged in username you can do using

<%=bizSite.getCurrentUser()%>

All other authenticated features that work in BizLogic would work here.

Normally I add my BizSolo links in the portal itself as part of the main navigation menu. That way, when the user accesses it they are already logged in.

Hope this is helpful. Questions are welcome.


Abhishek Mishra
Good experience in working with BPM technologies like Savvion, JBPM. Founder and Chief Editor of BPMGeek.com. Founder of Savvion Business Manager Mobility Framework Savmobify| View my BPMGeek Profile
|
best grammar app

About BPMGeek

BPMGeek is an initiative to collaborate and communicate with the growing Business process management community out there. The goal is to help developers connect with experts, ask questions, post their learning and get understanding of BPM Concepts. Often tool specific knowledge of niche areas end up developers perplexed and confused - especially when there are very less number of resources available. We will be coming up several several new features. Have a look at our Roadmap here

BPMGeek is an independent entity not associated with any Product. All BPM product professionals are invited to contribute. The Logos and Names used across the site belong to their respective owners. The viewpoints mentioned by Individual contributors are their own. BPMgeek cannot be held liable for any issues arising out of it.


BPMgeek is promoting the Nounshoun English Grammar App - developed by Constellation Software.