Android App Signin for Spring Social/Security Web Application
===

I'm currently developing a web application with Spring Social and Spring Security. In the web application, specific users can signin on Facebook with `ProviderSignInController`. When staff members authenticate with FB successfully, they are programatically signed in for my local webapp with Spring Security, too. This concept is adapted from the [spring-social-showcase][1]. Spring Social then enables authenticated users to create Events, which are also created on a facebook page.

Now i want to write a android app which enables users to post to my guestbook and view/create events via my web application. My question now is how to realize the signin from my andoid app. On my web application, a `UsersConnectionRepository` maps facebook accounts to local accounts. Can i simply reuse this data and signin from my android app in the exact same way as from the web application?
`ProviderSignInController` adds a path mapping for `http://_webapp_/signin/facebook` which redirects to a facebook signin page. Can this simply be done with a WebView on android?

Looking on the [spring-android-facebook-client][2] im confused. This example seems to manually manage the OAuth authentication. But i havent figured out yet, whether this is the way to go or just another possibility to implement it, when there is no other web application in the background that already manages the authentication.

Any feedback is welcome. Thanks.

Jeyp


  [1]: https://github.com/SpringSource/spring-social-samples/tree/master/spring-social-showcase
  [2]: https://github.com/SpringSource/spring-android-samples/tree/master/spring-android-facebook-client