Announcement Announcement Module
Collapse
No announcement yet.
android rest basic authentication Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • android rest basic authentication

    i'm using android spring library like client for a RestFull Service. This service requires BASIC http authentication.
    how can i put user and password in the request?

    thanks so much

  • #2
    @androidgal We are currently discussing this functionality in the following pull request. I've also created a JIRA for it.

    https://github.com/SpringSource/spring-android/pull/2

    https://jira.springsource.org/browse/ANDROID-70

    Comment


    • #3
      Why do not use android build-in apache httpclient? I think spring android can handle several features, but for the basic usage, the basic android package is helpful.

      Comment


      • #4
        any example?

        Thanks for add support for basic authentication in 1.0.0.RC1 Released.

        Are there any sample for use about that?

        thanks.

        Comment


        • #5
          @jiechu there is built in support, using the Authenticator class [1]. However, there are also issues with regard to this on versions prior to Gingerbread [2]. Still, I'll look into leveraging the Authenticator class where it can be used.

          [1] http://developer.android.com/referen...enticator.html
          [2] http://code.google.com/p/android/issues/detail?id=4326

          @androidgal there are no samples available yet, but I've added a task to include one [3].

          [3] https://jira.springsource.org/browse/ANDROID-79

          Comment

          Working...
          X