I have two applications APP_A and APP_B. While logged into APP_A I wish to provide a redirect (or equivalent) to APP_B that would include a header authorization token. APP_B will then take that token and automatically log in the user without them needing to input their credentials again.
I use PHP (Laminas framework). On the APP_B side I am able to read the header values without issue. However within the APP_A redirect I don't know how best to assign an authorization bearer token. I was hoping the following would work but it does not:
Header("Location: https://APP_B");
Header("Authorization: Bearer test1234");
exit;
The following does work:
Header("Location: https://APP_B?Authorization=test1234");
exit;
However I do not want to include the token in that manner.
Can anyone help me out, or even point me in the right direction?