2013年11月20日水曜日

Installing Oracle API Gateway Analytics

1. Navigate to the bin directory of OAG Analytics:
Linux:
cd /opt/OAG/OAG-11.1.2.1.0/oaganalytics/posix/bin
Windows:INSTALL_DIR\oaganalytics\Win32\bin

2. To configure the settings for OAG Analytics, execute the configureserver
command:
./configureserver

3.Download wkhtmltopdf-0.9.9 Windows Installer
https://code.google.com/p/wkhtmltopdf/downloads/detail?name=wkhtmltopdf-0.9.9-installer.exe

4.Install wkhtmltopdf into the following directory in your API Gateway Analytics installation:
Windows INSTALL_DIR\oaganalytics\Win32\lib\wkhtmltopdf
UNIX/Linux INSTALL_DIR/oaganalytics/posix/lib/wkhtmltopdf

2013年10月29日火曜日

Android emulator setting memo

Solution1:
1.Add Android SDK path to system environment variables path.
2.cmd --> start emulator
For example: emulator -avd avd
3.cmd
>>adb shell
>>sqlite3 /data/data/com.android.providers.settings/databases/settings.db "INSERT INTO system VALUES(99,'http_proxy',' 10.33.176.166 :8080')"
>>sqlite3 /data/data/com.android.providers.settings/databases/settings.db "SELECT * FROM system"
4.Restart android emulator

Soultion2:
1. settings->Wireless controls->Mobile networks->Access Point Names
2. Set Parament
- Proxy : your proxy address
- Port : your proxy port
- Username : your username if needed, or <Not set>  Password : your password if needed, or <Not set>
3. set DNS
>>adb shell
>>getprop
>>setprop net.dns1 192.168.1.1
or
>>setprop net.dns1 192.158.0.1

2013年10月2日水曜日

Oracle Mobile and Social Access Service

Overview
Oracle Mobile and Social Access Service is a fully integrated, server-based solution designed to secure mobile access to applications leveraging the enterprise's existing back-end identity management infrastructure. Oracle's Mobile and Social solution also provides client software development kits (SDKs) used by developers to weave security into native mobile applications for tight integration with identity management.

Oracle's Mobile and Social solution secures mobile access to corporate resources by leveraging the services of Oracle Access Management in terms of single sign-on between browser-based and native mobile applications, strong and multi-factor authentication, device fingerprinting and device context based fine-grained authorization. In addition, the Mobile and Social solution also enables enterprises to securely leverage social identity for personalization and federated sign-on.

Key features include:
Authenticating and Authorizing Mobile Users
Mobile Single Sign-on
Device Fingerprinting and Registration
Device Blacklist/Whitelist
Device-context Based Fine-grained Authorization
Log On Using Social Identity from Facebook, Google, Twitter, LinkedIn or Yahoo
REST-based directory interface for User Profile Services
Mobile and Social Client SDKs
http://www.oracle.com/technetwork/middleware/id-mgmt/overview/oamms-1696162.html

ORACLE MOBILE AND SOCIAL ACCESS MANAGEMENT
http://www.oracle.com/technetwork/middleware/id-mgmt/overview/oamms11gr2ds-1697252.pdf

White Paper
http://www.oracle.com/technetwork/middleware/id-mgmt/overview/mobileandsocialaccessmanagementwp-1703656.pdf

2013年9月28日土曜日

Oracle ADF Mobile! Hello!

First we have to setup our JDeveloper (11.1.2.3.0) for the ADF mobile development.
1.Entry:That is the adfmf-feature.xml file.
This file is to configure the features of your application.
The adfmf-feature.xml file enables you to configure the actual mobile application features that are referenced by the element in the corresponding adfmf-application.xml file.So basically, what is says is, that adfmf-feature.xml is the configuration file of all the features your application might have.
All those features are stored in the adfmf-application.xml file.
That file is located in the descriptors section in JDeveloper.
2.What is that DataControl about?
That dataControl handles the operations on your device
Once we understand how it works. one step at a time. it is fairly easy to remember.
This is the beginning!

OAM The requested URL /favicon.ico was not found

Error: The requested URL /favicon.ico was not found.
Possible Solution:
this is not a request made for something you didn't know you were pointing to on a Web page.Instead, it's a request for the favicon.ico file that Internet Explorer (and many other browsers) expect you to have on your site.
The favicon.ico file is a small graphic that is associated with a page or Web site, and allows the Web developer to customize the site in the Web browser,both in the tab bar that is displayed in many browsers as well as in the bookmarks when a site is saved.
So, you can try following step:
Step1:Create a favicon
http://www.favicon.cc/?
http://www.degraeve.com/favicon/
http://www.favicongenerator.com/
Step2:Upload icon to specified location.

2013年9月25日水曜日

2 legged OAuth & 3 legged OAuth

English
In short, they describe two different usage scenarios of OAuth involving two respectively three parties.
3-legged OAuth describes the scenario for which OAuth was originally developed: a resource owner wants to give a client access to a server without sharing his credentials (i.e. username/password). A typical example is a user (resource owner) who wants to give a third-party application (client) access to his Twitter account (server).
On a conceptual level it works in the following way:
  • Client has signed up to the server and got his client credentials (also known as “consumer key and secret”) ahead of time
  • User wants to give the client access to his protected resources on the server
  • Client retrieves the temporary credentials (also known as “request token”) from the server
  • Client redirects the resource owner to the server
  • Resource owner grants the client access to his protected resources on the server
  • Server redirects the user back to the client
  • Client uses the temporary credentials to retrieve the token credentials (also known as “access token”) from the server
  • Client uses the token credentials to access the protected resources on the server
2-legged OAuth, on the other hand, describes a typical client-server scenario, without any user involvement. An example for such a scenario could be a local Twitter client application accessing your Twitter account.
On a conceptual level 2-legged OAuth simply consists of the first and last steps of 3-legged OAuth:
  • Client has signed up to the server and got his client credentials (also known as “consumer key and secret”)
  • Client uses his client credentials (and empty token credentials) to access the protected resources on the server
Chinese
3-legged oauth
resource owner, client, server.
resource owner 给client访问权限去访问resource owner在server上的resource,但是resource owner和client不共享credentials(用户名和密码)。
1. client在server上注册,获得client credentials(包括consumer key和consumer secret)
2. client从server获得temporay credentials(即request token)
3. client将user-agent定向到server
4. user授权client访问server上的resource
5. server将user-agent定向到client
6. client用temporary credentials(request token)从server换取token credentials(即 access token)
7. client使用access token访问server上的protected resource

2-legged oauth
没有user参与的 server/client形式
1. client在server上注册,获得client credentials(包括consumer key和consumer secret)
2. client使用client credential(和空的token credential)访问server上的protected resource

三条腿的OAuth(3-Legged OAuth),这也是OAuth的标准版本。这里所谓的“三条腿”,指的是授权过程中涉及前面提到的三种角色,也就是:客户端,服务提供方,用户。不过有 些情况下,不需要用户的参与,此时就产生了一个变体,被称作两条腿的OAuth(2-Legged OAuth),一般来说,访问私有数据的应用需要三条腿的OAuth,访问公共数据的应用需要两条腿的OAuth。
两条腿的OAuth和三条腿的OAuth相比,因为没有用户的参与,所以在流程中就不会涉及用户授权的环节,也就不需要使用Token,而主要是通 过Consumer Key和Consumer Secret来完成签名的,此时的Consumer Key和Consumer Secret基本等价于账号和密码的作用。

Japanese
Auth Coreはフロー上の登場人物がConsumerとSPとEnd Userの三者であることから3-legged OAuthと呼ばれているのに対し、ConsumerがEnd Userとは紐づかないSPのリソースにアクセスする2者間通信の仕組みを通称2-legged OAuthと呼んでいます。

Refrence:
http://maeshima.hateblo.jp/category/oauth
http://www.tuicool.com/articles/6JnmMn
http://cakebaker.42dh.com/2011/01/10/2-legged-vs-3-legged-oauth/
https://drupal.org/node/1839550
http://www.kaiyuanba.cn/html/1/131/227/7672.htm
http://baike.baidu.com/view/6619164.htm
http://techblog.yahoo.co.jp/web/auth/oauth_1/