Open 3kynox opened 8 years ago
Anybody here ?
@3KyNoX Popup will close if it satisfies the following.
error
in which case the entire promise is rejected, so you will have to use .catch()
to see what was the error.#access_token=
or ?code=
.So to start add some console.log messages to help you with debugging.
$auth.authenticate(provider)
.then(function() {
console.log('You have successfully signed in!');
})
.catch(function(error) {
if (error.error) {
// Popup error - invalid redirect_uri, pressed cancel button, etc.
console.error(error.error);
} else if (error.data) {
// HTTP response error from server
console.error(error.data.message, error.status);
} else {
console.error(error);
}
});
Hello !
I'm trying to get satellizer to work with my actual configuration :
I already catch some REST responses from Symfony with ng-admin & RestAngular (auth by token) :
Here is what the index.html looks like :
Following installation, I then did a _bower install satellizer_, imported script _bower_components/satellizer/satellizer.min.js_ in my index.html and then back to main.js... :
I finally added the button in main.html
And my question is :
Popup shows, login is done, allow button is pressed, the window is closed, my mouse animates quickly :
... and nothing more... localStorage is empty, sessionStorage also, nothing related to any access_token on page headers, ng-admin can't load my REST resources (403 forbidden). What do I have missed please ?
Thanks for help in advance.
Regards.