Get started with satellizer CDN
MIT licensed
Satellizer is a library that simplifies the process of implementing OAuth authentication in Angular applications.
Tags:- authentication
- angularjs
- foursquare
- github
- yahoo
- oauth
- sign-in
- twitch
Stable version
Copied!
How to start using satellizer CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with satellizer CDN - cdnhub.io</title>
<script src="https://cdn.jsdelivr.net/npm/rxjs@6.6.3/bundles/rxjs.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/angular@1.7.9/umd/angular.min.js"></script>
<script src="https://cdn.cdnhub.io/satellizer/0.15.5/satellizer.min.js"></script>
<script src="main.js"></script>
</head>
<body ng-app="myApp">
<div ng-controller="MyController">
<button ng-click="loginWithGoogle()">Login with Google</button>
</div>
<script>
angular.module('myApp', ['satellizer'])
.controller('MyController', ['$scope', '$auth', function($scope, $auth) {
$scope.loginWithGoogle = function() {
$auth.authenticate('google')
.then(function() {
console.log('Logged in as:', $auth.getPayload().email);
})
.catch(function(error) {
console.log('Error:', error);
});
};
}]);
</script>
</body>
</html>
All versions
0.10
0.10.1
0.11.0
0.11.1
0.11.2
0.11.3
0.12.0
0.12.1
0.12.2
0.12.3
0.12.4
0.12.5
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.14.0
0.14.1
0.15.0
0.15.1
0.15.2
0.15.3
0.15.4
*** 0.15.5
0.2.0
0.3.0
0.3.1
0.3.2
0.3.3
0.3.4
0.4.0
0.4.1
0.5.0
0.6.0
0.6.1
0.6.2
0.6.3
0.6.4
0.7.0
0.7.1
0.8.0
0.8.1
0.8.2
0.8.3
0.8.4
0.8.7
0.8.8
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4