Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window Popup facebook doesn't close after log in #1113

Open
alfredrumss opened this issue Dec 5, 2017 · 0 comments
Open

window Popup facebook doesn't close after log in #1113

alfredrumss opened this issue Dec 5, 2017 · 0 comments

Comments

@alfredrumss
Copy link

alfredrumss commented Dec 5, 2017

after log in the pop doesn't close. Just the same window popup is redirected to redirectUri on the route with the code returned by facebook. i.e

http://localhost:3000/?code=AQDP2YYluGkMQJhrG3Vec8J69KLukp-jeKRB_j4EOfwSIew5AohdTYmn9yA3F-cTS9RkB4au4p1dOfUwmxv3ye0PN5B_XlZ9Rek-k3CNghXmZY__kVgkJ9h7_IV5VbXDBoI7IegQX9VYS64s1eMA1qzongqhYZBOIqEZdvmzV8MFVd6f17TNRMmbCmzxUYIhEsbfsoQTTHQDjxe3cwo1g2HyGoF6V2CeobE-g9LGGZRSEKMD6ypLj1jyrClxtMuDBj2hSb_xWUmVNHNO2Tv8kDmNBcIb-_-3f7DNgR7sB3waS178YvT4EQP34H0j_ib8aAE#_=_

Why is not closing and run the callback function?

this is my router:

(function () {
'use strict';

angular.module('visitbh').config(routerConfig);
/** @ngInject */
function routerConfig($stateProvider, $urlRouterProvider, $windowProvider) {

	var $window = $windowProvider.$get();
	$stateProvider
		.state('app', {
			abstract: true,
			url:'',
			views: {
				'main': {
					templateUrl: 'app/layouts/base/app.html',
					controller: 'BaseController',
					controllerAs: 'Base'
				},
				'header@app': {
					templateUrl: 'app/partials/header/header.html',
					controller: 'HeaderController'
				}
			}
		})
		.state('app.home', {
			url: '/',
			views: {
				'content@app': {
					templateUrl: 'app/home/home.html',
					controller: 'HomeController',
					controllerAs: 'Home'
				}
			}
		})

	$urlRouterProvider.otherwise('/');
}

})();

And this is my setting facebook:

$authProvider.facebook({
clientId: '1970924993155966',
url: 'http://localhost:8000/auth/facebook',
redirectUri: location.origin + location.pathname
})

my Angular Version is 1.6.5 and the satellizer version is 0.15.5

please Help me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant