Page 1 of 3

REST service Basic Authentication

Posted: Fri Sep 30, 2011 7:14 pm
by JasonCochran

how do you setup a rest service that uses Basic HTTP authentication?


REST service Basic Authentication

Posted: Fri Sep 30, 2011 7:56 pm
by maxkatz

The service URL would look like this:

code
https://{user}:{password}@some.host.com
/code

{user} and {password} are defined as service input parameters and can be mapped from the UI (or local storage).

Let me know if this helps.


REST service Basic Authentication

Posted: Fri Sep 30, 2011 8:31 pm
by JasonCochran

I have added a service for the Parse API ([url=http://www.parse.com)]www.parse.com)[/url]. I can view my objects if I just type the service url in a browser - I get back json data.

How would you set this up the tiggr editor? Do I replace {user} and {password} in the url with the correct values or do I use the parameters window to supply them?

How do I hook up a list to a data source control?

Here are some screen shots from tiggr:
Image


REST service Basic Authentication

Posted: Fri Sep 30, 2011 9:01 pm
by maxkatz

Let's try the service in Tiggr. Turn off Echo mode and go to Request Parameters panel. If you haven't, define 'user' and 'password' parameters and then click Test. Enter your user name and password. What do you get back?


REST service Basic Authentication

Posted: Fri Sep 30, 2011 9:12 pm
by JasonCochran

I get the following:

----------------------------------------------------------------------------------------------------

URL: https://{user}:{password}@api.parse.c...
Method: get
Data Type: json
Content Type:
Security Context: 0
Request header parameters: none
Request body parameters: user=12345&password=67890

GET https://12345:67890@api.parse.com/1/c... returned a response status of 401 Unauthorized

----------------------------------------------------------------------------------------------------

I removed my real u/p for security. Like I said I can type the url into a browser and get back json data. But, it does not work from tiggr.

-- I just sent you an email with the URL I am using to pull json data from Parse.


REST service Basic Authentication

Posted: Fri Sep 30, 2011 9:18 pm
by maxkatz

And you have exact the same URL in Tiggr as you type in Web browser?


REST service Basic Authentication

Posted: Fri Sep 30, 2011 9:21 pm
by JasonCochran

Yes.

I got a bounce from the email I sent to you. I used the email address on your blog. Send me an email at dotnetprodev {at} gmail.com and I send you the real url.


REST service Basic Authentication

Posted: Fri Sep 30, 2011 9:27 pm
by maxkatz

Sent. Email from here bounced http://mkblog.exadel.com/about-me/?


REST service Basic Authentication

Posted: Mon Oct 31, 2011 3:47 pm
by nmayeur

I have the exact same problem. I am testing tiggr with my REST backend.
I cannot call the web-services with basic auth. Do you have any solution?


REST service Basic Authentication

Posted: Mon Oct 31, 2011 4:54 pm
by maxkatz

What kind of authentication does your service require? Are you able to share the service URL with a href="mailto:support@gotiggr.com" rel="nofollow"support@gotiggr.com/a?