I am currently trying to make a POST request to /oauth2/realms/t/realms/subrealm/access_token with the correct Authorization header and body. I get a 500 Internal Server Error and noticed the following error message in the Authentication debug logs:
ERROR: getServiceBasedConfig SimpleAuthTree|o=subrealm,o=t,ou=services,dc=openam,dc=forgerock,dc=org
com.sun.identity.authentication.config.AMConfigurationException: Configuration not defined in iPlanetAMAuthConfiguration service
I have an Authentication Tree setup where it there is a Page Node (with Username and Password Collectors) and a Datastore Decision Node. However, if I switch from using the Authentication Tree to the default ldapService Authentication Chain, the request works fine and I get back 200.
Does anyone know what configuration is missing and how I can resolve this issue?