What is the grant type you have for generating token on Postman? Is it JWT Bearer?
We have used of type client credentials and we were able to re-use the same authentication profile for multiple connect RESTs. We can use the same authentication profile for multiple APIs if they also use the same authentication.
We have grant type on Postman as “Token Bearer” and I have created the the authentication profile on Pega as “JWT bearer”. Will JWT work in my case or I need to use something else?
@ManishS96 A bearer token is nothing more than a HTTP header named “Authorization” with the value “Bearer: xyz” where xyz is your token string. Postman should auto construct this for you. Look at the headers section in Postman after you enter the bearer token value in the Authentication screen.
@ManishS96
This seems you have custom token generation.
As discussed then instead of auth profile, data page can be used to store and generate the auth token.
If so then you just create an authentication profile, with Grant type as Client credentials and pass client secret and id. Please let us know if you need further help.