Results 1 to 5 of 5

Thread: android rest basic authentication

  1. #1
    Join Date
    Jan 2012
    Posts
    2

    Default 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. #2
    Join Date
    Nov 2010
    Posts
    174

    Default

    @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
    Roy Clarkson
    Spring Mobile Projects Lead

  3. #3
    Join Date
    Feb 2012
    Posts
    1

    Default

    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.

  4. #4
    Join Date
    Jan 2012
    Posts
    2

    Default any example?

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

    Are there any sample for use about that?

    thanks.

  5. #5
    Join Date
    Nov 2010
    Posts
    174

    Default

    @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
    Roy Clarkson
    Spring Mobile Projects Lead

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •