mirror of
https://github.com/netzbegruenung/meteor-accounts-saml.git
synced 2024-05-06 05:43:41 +02:00
13 lines
332 B
JavaScript
Executable file
13 lines
332 B
JavaScript
Executable file
if (Meteor.isClient) {
|
|
Template.samlDemo.events({
|
|
'click .saml-login': function(event, template){
|
|
event.preventDefault();
|
|
var provider = $(event.target).data('provider');
|
|
Meteor.loginWithSaml({
|
|
provider:provider
|
|
}, function(error, result){
|
|
//handle errors and result
|
|
});
|
|
}
|
|
});
|
|
} |