Browse Category by MAF
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.



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

Oracle MAF: configuring Windows 10 development environment

One of the main features that includes Oracle MAF 2.3 released early this week is the ability to deploy applications in any Windows 10 device.

Downloading and Installing JDeveloper 12.2.1

To develop an application with Oracle MAF 2.3 we need JDeveloper 12.2.1 that can be downloaded in this link:

http://www.oracle.com/technetwork/developer-tools/jdev/downloads/index.html

You have to download both files.

Once we have installed JDeveloper, we have to install Oracle Mobile Application Framework extension.
This is a known step for JDeveloper users, under ‘Help’ menu click on ‘Check for updates’ and select MAF extension.

Downloading and Installing Visual Studio 2015 Community Edition

First of all we have to download Visual Studio in this link:

https://www.visualstudio.com/products/visual-studio-community-vs


We can use Community, Professional or Enterprise versions


 And click on download button.

Once we have executed the installer, in the wizard we have to select this items and finish the installation.
Creating and Installing the PFX file

Now we need to create a Personal Information Exchange (.pfx file). 
The tools we are going to use are in this folder:

cd C:Program Files (x86)Windows Kits10binx64
First we need to create a .cer and .pvk files.
makecert.exe -sv E:mafmaf.pvk -n “CN=Ruben Rodriguez,OU=MAF,O=rsantrod,C=ES” -r -h 0 -eku “1.3.6.1.5.5.7.3.3,1.3.6.1.4.1.311.10.3.13” E:mafmaf.cer
A brief explanation of the arguments
  • -sv path of the private key
  • -n name of the certificate
  • -r means that is self signed
  • -h 0 means that cannot be used as a CA (Certification Authority)
  • -eku 
    • 1.3.6.1.5.5.7.3.3 the certificate can be used to sign code
    • 1.3.6.1.4.1.311.10.3.13 lifetime signing
  • The last one is the path of the .cer file

Once we execute the command, we will have to set a password for the certificate.
The second command will allow us to copy both .cer and .pvk files into a pfx file.

pvk2pfx.exe -pvk E:mafmaf.pvk -spc E:mafmaf.cer -pfx E:mafmaf.pfx -pi rsantrod -po rsantrod

  • -pvk path of the .pvk file
  • -spc path of the .cer file
  • -pfx path of the pfx file
  • -pi password of the key file
  • -po password of the certificate file

Once we have executed both command we will have this 3 files.

Now we have to import the PFX file into the certificate stores by clicking on the PFX file. 
We have to run this wizard 3 times.
The first one will be in Current User location.

We have to select the pfx file.

We have to set a password for the password for the pfx file and click next.

In this first import we have to select Personal certificate store.

Click on finish to import the file.

The second time we execute the import wizard we have to use Current User location and Trusted People Certificate Store.

And the third time we have to select Local Machine location and Trusted People Certificate Store.

Enabling Developer Mode in Windows 10

We need to enable Developer Mode in Windows 10 as by default we will not be allowed to run applications if are not installed from Windows Store.
We have to open settings and click on Update & Security.
Then click on For Developers and click on Developer Mode.

Configuring JDeveloper

The last step is to configure Windows Platform in JDeveloper preferences.
We need to provide Windows SDK location, the PFX file and its password.

Oracle MAF 2.3 has been released

The most  awaited version of Oracle Mobile Application Framework (Oracle MAF 2.3.0) has been released. This is a big announcement as we can now build Windows 10 applications that can be run on any Windows 10 devices, even on computers. 

These are some of the new features of this release:

JDeveloper 12.2.1


Oracle MAF 2.3.0 is now available in JDeveloper 12.2.1, released in November just before Oracle Open World.

Windows 10 support

Oracle MAF now allows to deploy the application to Windows 10 devices, event desktops or laptops but there are some limitations as you can only deploy the applications to devices based on x86 chipset.



Mobile Cloud Service Analytics integration

This release also provides built-in support for generating analytics events in Oracle Mobile Cloud Service. This will allow us to create custom analytics events and also for lifecycle events like startup, user login, etc… without any line of code.

Data Visualization Tools enhancements

Some of this enhancements are that we can individually style the axis labels or tooltips.

We can also set vertial orientation  for Rating Gauge.

In conclusion I think that this is a step forward and that Oracle MAF is now one of the best choices to build cross-platform single-code mobile applications that makes the development simpler thanks to the declarative programming.

You can check step by step how to configure the development environment in this link: Oracle MAF: configuring Windows 10 development environment

You can get more information in these links: link 1 and link 2.

First Mobile Cloud Service project in Spain is now in prodution!

This is an important week in the mobile scene where Mobile World Congress is taking place in Barcelona, I think there is no better time to announce that the first Oracle Mobile Cloud Service in Spain is now in production. If you don’t know what Mobile Cloud Service is, you can check all my previous posts here. Posts about Mobile Cloud Service.

In avanttic we developed this project combining Oracle Mobile Application Framework with Oracle Mobile Cloud Service, which has allowed us to implement a mobility solution for the sales force of Industrial Farmacéutica Cantabra (IFC) in no time. The application will allow IFC to gain efficiency in their sales process and increase the turnover.

About the technology:


Oracle Mobile Application Framework is a hybrid mobile framework that enables developers to rapidly develop multi-platform single-source applications Oracle MAF provides a visual and declarative development experience and maximizes code reuse resulting in faster development of mobile applications.”


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, and empowers developers to leverage enterprise IT systems—without having to get IT involved”








  • 1
  • 2