none
Mobile App Authentication with Cordova Client RRS feed

  • Question

  • Hi,

    I have created a .NET Mobile App back end in the portal and published the .NET mobile app which requires authentication. I have configured authentication for twitter using the portal Authentication / Authorization blade.

    On the client, I am using the Cordova plugin: Azure Mobile Services v1.2.8.

    When I try to login from the client using twitter, I get the following response:

    "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."

    From the article  Migrate your existing Azure mobile service to App Service, it states:

    "Javascript clients should be using 1.2.7."

    So, my questions are:

    • Is this version compatible with Mobile Apps ?
    • Does it support Authentication with Mobile Apps ?

    Many thanks

    Friday, December 11, 2015 8:18 PM

Answers

  • A migrated mobile service is different than a new Mobile App.  Support for the newer Mobile App auth mechanism is not yet available, as the login endpoints are different between the two.

    Depending on the exact login flow you need, you could build a copy out of https://github.com/Azure/azure-mobile-apps-js-client but not all the required changes are present for server directed login flows scenarios.

    The Apps compatible version will be a 2.0 file, and will be available here instead: https://www.npmjs.com/package/cordova-plugin-ms-azure-mobile-apps (note: the last published version is older and not fully cimpat with recent updates)

    • Marked as answer by Graham Hay Sunday, December 20, 2015 12:54 PM
    Monday, December 14, 2015 10:42 PM
    Moderator

All replies

  • I'm not the authority on this subject, but I believe the initial version of App Service Mobile Apps is not yet compatible with JavaScript clients.  This is high-priority on the team's to-do list, though.  Someone from the Mobile Apps team should be able to provide more information.
    Saturday, December 12, 2015 3:40 AM
  • A migrated mobile service is different than a new Mobile App.  Support for the newer Mobile App auth mechanism is not yet available, as the login endpoints are different between the two.

    Depending on the exact login flow you need, you could build a copy out of https://github.com/Azure/azure-mobile-apps-js-client but not all the required changes are present for server directed login flows scenarios.

    The Apps compatible version will be a 2.0 file, and will be available here instead: https://www.npmjs.com/package/cordova-plugin-ms-azure-mobile-apps (note: the last published version is older and not fully cimpat with recent updates)

    • Marked as answer by Graham Hay Sunday, December 20, 2015 12:54 PM
    Monday, December 14, 2015 10:42 PM
    Moderator