Showing posts with label OMA. Show all posts
Showing posts with label OMA. Show all posts

Wednesday, August 23, 2017

Oracle Mobile Authenticator (OMA) Offline secret key generation curl command


Curl command to generate Oracle Mobile Authenticator account registration in OMA app.

curl --user <<USERID>>:<<PASSWORD>> --data "" http://<<HOST_NAME>>:14100/ms_oauth/resources/userprofile/secretkey


Click Here for Oracle Mobile Authenticator integration with OAM.

Thanks
Siva Pokuri.

Tuesday, July 12, 2016

Fix: OAAM 11g R2 PS3 issue to generate OMA offline secret key

Issue:

Unable to generate OMA offline secret key when using OUD as OAM user store(there is no issue when tested with weblogic embedded LDAP).

Error from log file:

<Jul 12, 2016 11:30:49 AM EDT> <Warning> <oracle.ods.virtualization.engine.backend.jndi.OUD> <LIBOVD-40066> <Remote Server Failure:pokuri.demo.com:1389.
javax.naming.NamingException: [LDAP: error code 123 - You do not have sufficient privileges to use the proxied authorization control]; remaining name 'cn=users,dc=demo,dc=com'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3169)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3013)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2820)

at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1829)

Solution:

Uncheck "Proxy Authentication" option in "OAuth User Profile Service Configuration"(Proxy Authentication is enabled by default) then click on Apply.




Saturday, May 2, 2015

How to integrate OAM with Oracle Mobile Authenticator(OMA)

Integrate OAM 11g R2 PS2 and Oracle Mobile Authenticator

Assumptions:

-- Oracle Access Manager 11g R2 PS2 installed and configured
-- Oracle HTTP Server(OHS) installed
-- OAM WebGate for OHS 11g installed and configured

Click Here to watch testing DEMO video!!!

Steps:

-- Enable Mobile and Social Service in OAM Admin Console(If not already enabled)




-- Configure OAuth for OMA(Oracle Mobile Authenticator)














-- Edit "TOTPModule" Authentication Module settings in OAM Admin Console






-- Configure "TOTPPlugin" parameters in "Plug-ins" as shown in the below screen shots




-- Create New OTP Authentication Scheme. In this screen shot below i used existing "LDAPScheme"  and duplicated to create new OTP Authentication Scheme.









-- Update Application domain 













Oracle Mobile Authenticator Configuration with Oracle Access Manager

-- Download and Install "Oracle Mobile Authenticator" App from "Google Play" or "Apple Store"
-- Create a HTML page with below content and drop it in any web server(which you should be able to access from your mobile device where you install)

Sample


<html>
    <head>
        <title>Oracle Mobile Authenticator</titile>
    </head>
    <body>
        <a href="oraclemobileauthenticator://settings?LoginURL::=http://<<HOSTNAME>>:14100/ms_oauth/resources/userprofile/secretkey">Click Here</a>
    </body>
</html>



-- Access HTML page from mobile device browser. It will navigate to "Oracle Mobile Authenticator" and prompt to update. Click on "Accept".





-- Click "OK".


-- Now click on "Sign In" 

-- Enter valid OAM credentials and click on "Submit".


-- If everything is good and credentials are valid One-time Password will be configured as shown in the screen shot below.

Note: Multiple user accounts can be configured in same Oracle Mobile Authenticator.

Sample Screen Shot:




Testing:

-- Access OAM protected resource


-- Enter valid credentials and click "Login"


-- Get One-Time Password from Oracle Mobile Authenticator associated to the login ID "sivapokuri"



-- Enter One-Time Password got from Oracle Mobile Authenticator and click "Login"



-- Displayed welcome page.



Hope this will be useful!!

-- Siva Pokuri.