20
Views
6
Comments
Solved
Consuming REST API using Bearer
Question
Application Type
Reactive

Hi all,

I have encountered a authentication error when using consuming REST API with bearer.  

The following is my configuration, we still get the error of "Authentication Error".




Solution

Hi,

When you doing Test in Service studio, you need to add the Request headers in the Header and Authentication tab and enter the keys in the Test tab, then do the Test button. 

Champion

Hello

Are you checking this on Personal Environment?

Also Did you checked the same at postman?
Is it working there?

Also have you given space between bearer and token.

Thanks
Tousif Khan


Hi Tousif 

Thanks for your prompt reply.

I am using corporate account, and in development environment.

It works in postman:

I do porovide space between Bearer and Value in the string.

Solution

Hi,

When you doing Test in Service studio, you need to add the Request headers in the Header and Authentication tab and enter the keys in the Test tab, then do the Test button. 

Hi,

You missed to add authorization token in header as @Puja Rani mentioned. 


My God, it works finally, I think my problem is that I placed the parameter in the Headers and Authentication section. Great thanks. Puja Rani you are the best.

 

Glad to know your issue is solved:)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.