vanheek
1
Hello,
I have 2 Domains.
DomainA is a SPA (Angular).
DomainB is a “normal” website using PHP.
On DomainA the user logs in and browses through the site, everything is fine.
Now I want to add a link with DomainB as target.
What I try out:
DomainA:
this.auth0Service.loginWithRedirect({
authorizationParams: {
redirect_uri: DomainB
}
})
DomainB:
$auth0 = new \Auth0\SDK\Auth0([
‘domain’ => $_ENV[‘AUTH0_DOMAIN’],
‘clientId’ => $_ENV[‘AUTH0_CLIENT_ID’],
‘clientSecret’ => $_ENV[‘AUTH0_CLIENT_SECRET’],
‘cookieSecret’ => $_ENV[‘AUTH0_COOKIE_SECRET’]
]);
$auth0Sessions = $auth0->getCredentials();
The problem:
I never get credentials on the DomainB (PHP) site.
I also don’t have a “Authentication: Bearer” in the header.
How can I link to domainB without the user login again?
Please help.
I studied the documentation for days now, but I don’t find the right solution.
Hi @vanheek
Welcome to the Auth0 Community!
I am sorry about the delayed response to your post.
It appears that you are talking about Seamless SSO between your two applications.
Please review the following posts and knowledge articles regarding implementing Seamless SSO for your applications:
Things to take into consideration:
- Both applications use the same database connection
- If you are using custom domains, it is work reading this Knowledge Article
- Both applications are on the same tenant
- If you want to go with the silent authentication approach, it is recommended to configure a custom domain.
If you have any other questions or if you already found a solution to the issue, feel free to leave a reply on the post.
Kind Regards,
Nik
system
Closed
4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.