Browse Category by Oracle Mobile Application Framework
View Post

Oracle MAF: Oracle MCS as authentication provider

An usual requirement when working with Oracle Mobile Application Framework and Oracle Mobile Cloud Service is implement the login against Oracle MCS.
In this post I am going to show you how to configure Oracle MCS as an authentication provider in Oracle MAF.

  • Creating a Realm
A realm is a security context for a ser of users. We can have only one realm for each Mobile Backend, but we can have multiple Mobile Backend using the same realm.
Using one or more realm in MCS will depend on what users we will like to give access to our application.
Under Applications, we can find Mobile User Management. By default there is one realm named ‘default’, but we can create a new one by clicking on ‘New Realm’ button.
In the realm we can find some user information by default altough we can add more properties.

  • Create and configure a Mobile Backend
A Mobile Backend (MBE) is the gateway to Mobile Cloud Service. If we want to access any available resource from MCS, for example an API, we have to do it though an MBE.

We can find Mobile Backends option under Applications menu option.

Click on ‘New Mobile Backend’ to create a new one.

Once you have created the MBE head to Users option and click on ‘Change user realm’, by default the MBE has a realm but in this case we need to set the new realm we have just created. This is not the case, but we can also set a default realm for every new created MBE.

In the popup we can select any existing realm.

After that, as there is no users in the realm you can add them by clicking on ‘Add New User’ button.

You will receive an email to the email address you used to register the user.
  • Configuring a MAF Application.
The last step is to configure the MAF application. Here is a couple of things that we have to do.
First we need to create a secured page. We can do it in maf-feature.xml
The last thing is to configure the login server.
To do this, we need to open maf-aplication.xml. We can find the file in ‘Application Resources’ under descriptors/ADF META-INF folder.
Click on the add button.

In the popup we have to select HTTP Basic as Authentication type and set a name to the connection.

In HTTP Basic tab we need to configure login and logout URLs.
To build this URLs we need to know the base URL, and add to it at the end ‘/mobile/platform/users/login’ in Login URL and “/mobile/platform/users/logout” in Logout URL.
We can check the base URL in MBE Settings menu option.

The last step in the cofiguration is to add a custom header. The header name will be ‘Oracle-MobileBackend-ID’ and the value can be also found in MBE Settings menu option.

We just have to execute the application. As soon as we do it, the login page will appear.
If we set the right credentials we will access our secured page.
But if we enter wrong credentials we will se a’Invalid username or password.’ error message.



Oracle MAF 2.3: deploying and installing an application to the Universal Windows Platform

Almost one month ago, Oracle released Oracle Mobile Application Framework 2.3 that allow us to build Windows 10 applications. After building or migrating our application it is time to distribute it.

Fist you have to prepare you development environment. You can check how to do it here:  Oracle MAF: configuring Windows 10 development environment

In this post I will show how to deploy and install an UWP executable

We are going to use Workbetter application that can be found in the next path (change ‘C:OracleMiddleware1221’ with your JDeveloper installation path):

‘C:OracleMiddleware1221Oracle_Homejdeveloperjdevextensionsoracle.mafSamples’

One we have opened the application we have to deploy it as we usually do todeploy it to iOS or Android, but selecting Windows profile.

Once the deployment has finished, under deploy folder we will a folder structure like this:
‘…deployWindows1debugMafTemplateAppPackagesMafTemplate_1.0.0.0_Debug_Test’
The last folder will depend on the version number and the build mode. We will see many files and folders that includes the dependencies and the certificate we used to sign the application.
This is the folder you have to share in order to install the application.

In order to install the application we have to ‘Run with PowerShell’ the .ps1 file.

We will see a progress bar while installing.

Once it is installed we can search for the application and run it.

OTN Tech Article: PCS, MCS and MAF Integration

I have just published my first OTN Tech Article where I present a use case that demonstrates how Oracle Process Cloud Service (Oracle PCS), Oracle Mobile Cloud Service (Oracle MCS) and Oracle Mobile Application Framework (Oracle MAF) can be use together to expose  an Oracle PCS process instance as a web service and consume it from an external system, web application or mobile application.


Oracle Process Cloud Service is a Platform as a Service (PaaS) provided by Oracle Cloud, allows you to rapidly design, automate, and manage business processes in the cloud.


Oracle Mobile Cloud Service is Oracle’s Mobile Backend as a Service (MBaaS) and enables companies to create and deploy scalable, robust, and secure mobile applications quickly and easily.


Oracle Mobile Application Framework is a hybrid mobile framework that provides a visual and declarative development experience for the rapid development of multi-platform applications

You can check the full article here: https://community.oracle.com/docs/DOC-996644