Azure ACS in a PhoneGap project

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!

October 1st, 2012 5:45pm

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...

Cheers,
-Christian

Free Windows Admin Tool Kit Click here and download it now
October 1st, 2012 6:25pm

Wow! Great news for me :)

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

Thank you very much!

Regards,

Ethan

October 1st, 2012 6:41pm

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

Free Windows Admin Tool Kit Click here and download it now
October 1st, 2012 6:51pm

Makes perfect sense.

Will follow your blog :)

Thanks! you've been very helpful!

Ethan

October 1st, 2012 7:04pm

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?

Thanks!

Ethan

Free Windows Admin Tool Kit Click here and download it now
October 2nd, 2012 5:24pm

OK - no blog post yet. But I think the code is now stable enough to show ;)

https://github.com/ChristianWeyer/MobileTODO

Please get back to me with any questions or issues!

Thanks.

October 4th, 2012 9:46am

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?

Thanks,
Heiko
Free Windows Admin Tool Kit Click here and download it now
October 18th, 2012 6:28pm

Hi Christian,

can you please post the link to the MobileTODO example.

this link in github is broken...

thanks

Wandi

December 29th, 2012 11:35am

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

Free Windows Admin Tool Kit Click here and download it now
July 1st, 2015 8:56am

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

July 1st, 2015 8:58am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics