Skip to main content
Solved

How to make an authorized request to a projection endpoint

  • December 21, 2020
  • 1 reply
  • 606 views

Forum|alt.badge.img+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

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!

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

1 reply

dsj
Superhero (Partner)
Forum|alt.badge.img+22
  • Superhero (Partner)
  • 835 replies
  • 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!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings