Last active
August 29, 2015 14:18
-
-
Save yuchi/7f352721b096b1d2687e to your computer and use it in GitHub Desktop.
Liferay Connector Snippet #1 (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( | |
// The Portal URL | |
'http://localhost:8080', | |
// The authentication parameters | |
{ | |
login: 'test@liferay.com', | |
password: 'test' | |
}, | |
// The callback | |
function (err, session) { | |
if (err) console.log("Oh gosh an error!"); | |
else 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