JasonCochran
Posts: 0
Joined: Fri Sep 30, 2011 7:14 pm

REST service Basic Authentication

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

REST service Basic Authentication

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.

JasonCochran
Posts: 0
Joined: Fri Sep 30, 2011 7:14 pm

REST service Basic Authentication

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

REST service Basic Authentication

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?

JasonCochran
Posts: 0
Joined: Fri Sep 30, 2011 7:14 pm

REST service Basic Authentication

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

REST service Basic Authentication

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

JasonCochran
Posts: 0
Joined: Fri Sep 30, 2011 7:14 pm

REST service Basic Authentication

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

REST service Basic Authentication

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

nmayeur
Posts: 0
Joined: Mon Oct 31, 2011 3:47 pm

REST service Basic Authentication

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?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

REST service Basic Authentication

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?

Return to “Issues”