Created
April 7, 2015 13:56
-
-
Save yuchi/0672e525549b2ff6adc9 to your computer and use it in GitHub Desktop.
Liferay Connector Snippet #2 (callback authentication)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
liferay.authenticate('http://localhost:8080', { | |
login: 'test@liferay.com', | |
password: 'test' | |
}).then(function (session) { | |
console.log("Yay! I got a session!"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment