Open ether9 opened 5 years ago
It wont close. callback url is your domain url. So you have to render a html page with below content for your callback url.
<html>
<head>
<title>VIDEOMINE</title>
</head>
<body>
<script>
window.close()
</script>
</html>
e.g The golang controller function which calls when callback handler is hit
I have created below file which render when our callback url hits.
My setup: 127.0.0.1:5000 - Frontend app with satellizer served on this port 127.0.0.1:8000 - Backend api/server with required auth urls
Satellizer settings in my apps config:
What happens: When I click the authenticate button the popup loads as expected and goes to the LinkedIn authorizationEndpoint set in the $authProvider.linkedin.
After entering the credentials it authenticates with LinkedIn as expected and then redirects to my callback url (the redirectUri setting in $authProvider.linkedin).
This is the callback url it loads: (blank page, status code 200)
The popup window hangs on this page and does not get the 'code' and POST it to the social auth backend url http://127.0.0.1:8000/api/auth/social/linkedin/login/.