Skip to content

Instantly share code, notes, and snippets.

View AshfaqMemon's full-sized avatar

Ashfaq Memon AshfaqMemon

  • Streebo Solutions Pvt Ltd.
  • India
View GitHub Profile
@roanbester
roanbester / CategoriesViewerPortlet.java
Created January 5, 2016 11:44
virtual-portal-scoped actions
package example.wcm.vpscopedaction;
import com.ibm.workplace.wcm.api.Category;
import com.ibm.workplace.wcm.api.Repository;
import com.ibm.workplace.wcm.api.VirtualPortalContext;
import com.ibm.workplace.wcm.api.exceptions.WCMException;
/**
* Hypothetical Portlet that runs the query against a VP to fetch Categories.
* This can be a servlet or REST service as well.
@pglezen
pglezen / WSSubject.md
Created October 20, 2014 16:56
Obtain credential attributes from WSSubject in a WAS container.

The code sample below demonstrates how to obtain user and group information for an authenticated user from within WebSphere Application Server. It uses the WAS security API as documented in the Programming API section of the WAS 8.5.5 Knowledge Center (see packages starting with com.ibm.websphere.security.auth and com.ibm.websphere.security.cred.)

For more details on the WAS authentication model, please see Advanced WAS Authentication on IBM developerWorks. Yes, it's old; but most of it still applies.