I'm trying to use client credentials flow with ISAM to access a protected resource. However, it seems like after executing the following steps, the user is still unauthenticated to WebSeal.
1. Get the access token by sending client_id, secret and grant_type in the following command:
curl -k -d grant_type=client_credentials -d client_id=CLIENT_ID -d client_secret=CLIENT_SECRET -d scope=read
https://WEBSEAL_HOST/mga/sps/oauth/oauth20/token 2. Access protected resource/api with the access_token that I received as a result of first command:
curl -k -H "Authorization: Bearer Zt9gNVdwXWLyVani49wx"
https://WEBSEAL_HOST/ProvService/Search/User/E123456OR
curl -k -H "Authorization: Bearer Zt9gNVdwXWLyVani49wx" "https://WEBSEAL_HOST/mga/sps/authsvc?PolicyId=urn:ibm:security:authentication:asf:whoami"
When I execute the second command, I get webseal login page.
I didn't find much help or detailed steps on how to setup Client Credentials flow on IBM Infocenter.
------------------------------
Manish
------------------------------