I am able to do the account linking without LDAP or ADFS authorization for ServiceNow and retrive the access token.
But when I try the same with LDAP or ADFS(using SSO) authorization for ServiceNow and try account linking, it authorizes and redirects to Servicenow Home page instead of linking the account successfully.
Since it is not redirecting back to the amazon's Account linking successfull page I am unable to complete the account linking and get the access token.
with LDAP or ADFS -> uses SSO (single sign on).
without LDAP or ADFS -> doesn't use SSO.
It would be great if if any body can help out.