WCP12c: Embed a Login Task Flow in a Page or Page Template

Recently I saw a question in OTN: Oracle WebCenter Portal on how you can embed a Login into a Page or Page Template.


You can find the code in my GitHub repository: https://github.com/DanielMerchan/WebCenterExtensions

There are many ways to do this, but in this post I will bring only two:
  • Using Internal API: It uses some available Manage Beans in the Portal Scope for supporting authentication. This API is compatible with OAM / WebLogic Authentication.
  • Using Java EE API: It uses the HttpServletRequest login method to perform WebLogic Authentication. Since 12c, the AutheticationServlet.login of the WebLogic API has been deprecated. It can be uses standard JAAS Authentication.
The LoginInternalAPI Task Flow implements the first approach and the LoginJavaAPI Task Flow implements the second approach using a custom backing bean.

For testing, you can add the Task Flow to the Portal Resource Catalog and add it to a WebCenter Portal Page.

If you want to use it in your Page Template in Design Time, just embed the af:region and register manually the binding in its corresponding Page Definition.

More details in the Readme of my GitHub.

Comments

Popular posts from this blog

OJET: Inter-Module communication in TypeScript Template

OJET: Build and Deploy in an Application Server

OJET: Select All options using only Checkboxset