Skip to main content
Solved

How to make an authorized request to a projection endpoint

  • December 21, 2020
  • 1 reply
  • 621 views

Forum|alt.badge.img+9

Hi guys,

I’ve created a custom projection to which I’m attempting an authorized request via postman. I received the token using the ROPC method stated here

How I got the token


How I’m trying to use the token (request is made to the int cluster),
 


AS you can see, I’m getting a a 401 Unauthorized response. ​​​​​​​I use I tried using both Bearer and OAuth2 in postman and still ended up getting this. When I use basic auth and enter ifs credentials, I can access the projection data (I see the JSESSIONID cookie is returned when using basic auth, and this is what makes the difference).

Am I doing something wrong here? or is OAuth2 not possible with projections?

Cheers,
Miraj

Best answer by dsj

Hi Miraj,

 

When you are accessing a projection in integration cluster, you have to use basic authentication. OAuth is only relevant to the projections in main cluster.

Refer User Authentication (ifs.com) for details.

 

Cheers!

This topic has been closed for replies.

1 reply

dsj
Ultimate Hero (Partner)
Forum|alt.badge.img+22
  • Ultimate Hero (Partner)
  • Answer
  • January 8, 2021

Hi Miraj,

 

When you are accessing a projection in integration cluster, you have to use basic authentication. OAuth is only relevant to the projections in main cluster.

Refer User Authentication (ifs.com) for details.

 

Cheers!