Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7681361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:19:28+00:00 2026-05-31T18:19:28+00:00

How can I set the Basic Auth user id and password when using a

  • 0

How can I set the Basic Auth user id and password when using a RestyGWT Rest Services?

The RestyGWT User Guide describes how to set the user id and password used in basic authentication for the RestyGWT REST API but I haven’t found any docs describing how to do basic auth with the RestyGWT Rest Services

I’m using RestyGWT v1.2

***** UPDATE *******
I tried the following with no luck. The browser is still opening a prompt for User ID / Password when I call the service method.

final Map<String, String> headers = new HashMap<String, String>();
headers.put("Authorization", "Basic anJvYmPpbnKAbGl4ZXByb2N4c3OuZ29tOmpyb2JiaW6z");
final Resource workflowResource = new Resource("", headers);
((RestServiceProxy)workflowService).setResource(workflowResource);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T18:19:29+00:00Added an answer on May 31, 2026 at 6:19 pm

    I think the code example provided in the question should work. I found another person experiencing problems adding a custom header to a RestyGWT service as described in this post to the RestyGWT group and this bug in Github.

    As a temporary workaround, I’m using the @HeaderParam and passing the Base64 encoded Authorization header through the RestService method call.

    public void getRestData(@HeaderParam("Authorization") String authHeader, MethodCallback<List<Workflow>> callback);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working with an HttpListener. I can set the Authentication mode to basic using:
I can set data in JTable constructor, and then user can change this data
I have basic authentication set up in a simple CakePHP 2.0 application. I first
I'm trying to protect a folder using '.htaccess' and '.htpasswd'. I used http://www.tools.dynamicdrive.com/password/ to
So I decided to use digest HTTP authentication for my REST API. I googled
What is the best way to use preemptive basic http authentication using HttpUrlConnection. (Assume
I'm using Paramiko to connect through SSH to a server. Basic authentication works well,
I want to create an alarm app in wp7. I can set basic alarms
How can I set up a business facebook page that when a user enters
When using Authlogic's HTTP Basic auth, UserSession.find returns nil since the session appears not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.