Azure ACS in a PhoneGap project RRS feed

  • Question

  • Hi all,

    I don't see a forum for Azure ACS so if I'm in the wrong place please let me know and i will move the question to the right place.

    Have someone tried to implant Azure ACS in a PhoneGap project?

    I have a working mobile web application (FrontEnd based on MVC + JQM) that i want to convert into a PhoneGap project in order to have a "native client" application.

    The application users management based on ACS and forms authentication membership.

    I wonder how can I work with the STS token? my first thought is writing a WCF service which will be approached by the client (the mobile device) on success (by realm parameter). the service will authenticate the token and will redirect the application to the authorized zone.

    Am I missing something? is there a better faster way to do that?

    Thanks in advance!

    Monday, October 1, 2012 5:45 PM


All replies

  • Hi Ethan,

    how timely :)

    Yes, we have it working in a prototype here.
    Dominick and I managed to get it working in a PG solution just yesterday.

    I plan to blog about it at the end of this week...


    Christian Weyer | thinktecture | Microsoft MVP Windows Azure [Architecture]

    Monday, October 1, 2012 6:25 PM
  • Wow! Great news for me :)

    May I ask for a teaser? just the basics / topology?

    Thank you very much!



    Monday, October 1, 2012 6:41 PM
  • Sure.
    We used a Web API-based approach (not WCF).
    ACS posted back to one of our Web API actions. This action parses the token (optionally transforms it) and returns a new token in a query string to a redirect URL.

    This redirect URL is then picked up by the ChildBrowser in the PG app - from there we are back in the PG/JS world...

    Makes sense? ;)


    Christian Weyer | thinktecture | Microsoft MVP Windows Azure [Architecture]

    Monday, October 1, 2012 6:51 PM
  • Makes perfect sense.

    Will follow your blog :)

    Thanks! you've been very helpful!


    Monday, October 1, 2012 7:04 PM
  • Hi,

    I'm having hard time with the redirection back to the local sources (html) in PG.

    For now I  have an action controller which using the data in the call back from the ACS and suppose to return a redirect, thought I can't get the phone pick up the local file.

    The symptom, as you can guess, is the emulator looking for a resource on the web server.

    What is the method to do that?



    Tuesday, October 2, 2012 5:24 PM
  • OK - no blog post yet. But I think the code is now stable enough to show ;)

    Please get back to me with any questions or issues!


    Christian Weyer | thinktecture | Microsoft MVP Windows Azure [Architecture]

    Thursday, October 4, 2012 9:46 AM
  • Hi Christian,

    I also plan to use ACS in combination with phonegap. I took a look at your sample project. It really good and helps me a lot!

    I'm quite new in Azure ACS, so I have a question about this. To get the access token you catch the url (which comes back from the ACS) in the onLocationChange event.

    Is there a way, to ensure, the caller of the My Azure ACS login page is My app and not any other app?

    Otherwise every other developer can use my Azure ACS in their own apps... Or I am wrong?

    Thursday, October 18, 2012 6:28 PM
  • Hi Christian,

    can you please post the link to the MobileTODO example.

    this link in github is broken...



    Saturday, December 29, 2012 11:35 AM
  • Hi Ethan

    Did you manage to solve this issue? I am faced with same integration task and have no clue how to proceed. 

    Thank you in advance

    Wednesday, July 1, 2015 12:53 PM
  • Hi Christian

    Resource is not available by link that you posted, can you be so kind and provide actual link to the code.

    Thank you in advance

    Wednesday, July 1, 2015 12:56 PM