Solved

How to make an authorized request to a projection endpoint

  • 21 December 2020
  • 1 reply
  • 527 views

Userlevel 4
Badge +9
  • Sidekick (Partner)
  • 59 replies

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

icon

Best answer by dsj 8 January 2021, 08:40

View original

This topic has been closed for comments

1 reply

Userlevel 7
Badge +20

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!