Redirect from one App to another App via API

Hi,

We use Auth0 as SAML IdP (users in Auth0 database) with two client applications (SAML Service Providers). The goal is to have SSO between the two applications. We want to do this using PHP APIs, we don’t have any user view(pages).

I’m creating Access token using oauth/token method (First Application) and passing that Access token to authorize method (Second Application) in response_type parameter but I’m getting Access denied error.

https://EXAMPLE.auth0.com/authorize?response_type=ACCESS_TOKEN_FIRST_APP&client_id=EXAMPLE.CLIENT.ID&redirect_uri=http://EXAMPLE.REDIRECT.io/callback&state=STATE&nonce=NONCE&prompt=none"

Please help me to resolve this problem