Jump to content
Sign in to follow this  
azrael_11

REST BASIC Authentication

Recommended Posts

Try to connect to cscart Rest API Server

The documentation here says that Uses Basic HTTP authentication so but the e-mail and the api-key must encode to base64 encoder.

 

So i encode the email and api and try with the rest tool that embracedero provides.

 

I add in the authentication tab the basic and in user name the encoded with base64 email and in the password the encoded with base64 Apikey.

 

And returns that

 

pic_01.thumb.png.6ffff828f5b73d2a431c6729a2f8c848.png

 

pic_02.thumb.png.d3cee59ff1c5880288ffa9a6b128e4a4.png

 

Share this post


Link to post
Posted (edited)

Do not read too much documentation. Just enter the plaintext l/p into the boxes.

Edited by Attila Kovacs

Share this post


Link to post
5 minutes ago, Attila Kovacs said:

Do not read too much documentation. Just enter the plaintext l/p into the boxes.

Sorry but i don't understand where to put the plaintext l/p?

Share this post


Link to post
3 minutes ago, Attila Kovacs said:

on the second screenshot

username: Joe

password: 12345

I try that not working i also add in the content-type the application/json but nothing i get the same responce

 

Share this post


Link to post

Try the Inline passing in the URL .

pic_04.thumb.png.bdf593374bae3adabe1975c79aeae54f.png

I set the correct username and api key.

In the browser everything works just fine it ask me if i want to see this content with the current username i press ok and json with response is here.

 

In the rest debugger i do the same but it returns anauthorised.

 

Any help please

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×