MobileFirst-Platform-Developer-Center / PreemptiveLoginAndroid

0 stars 0 forks source link

WLAuthorizationManager.Login() API is not working #1

Open prasanna-narshim opened 8 years ago

prasanna-narshim commented 8 years ago

We are using the given sample code and when we try to Login using the WLAuthorizationManager.Login() API , we are getting error response as " "Invalid request body - JSON mapping failed ". By debugging, we saw that the the JSON value we are sending is proper.

The same MFP security check is working for iOS platform using the provided sample code. What we are doing wrong.

IdanAdar commented 8 years ago

I have tested the sample app and it is working fine for me.

To test it I have deployed the UserLogin security check and Resource adapter, register the app in the console, built it and ran it in the Android Emulator. In the app I used my name as the username/password. The login passed and I could retrieve the balance.

Make sure that you are using GA-level MobileFirst Android SDK with GA-level MobileFirst Server.

For the SDK you need only to build the app and it should pull the latest SDK.
For the Server you have the following options:

  1. If you are an IBM customer, then log in to IBM Passport Advantage and download the latest available DevKit, or use the Mobile Foundation Bluemix service
  2. If you are an evaluator, use the Mobile Foundation Bluemix service (evaluation DevKit is not yet available).