Authentication demo using AngularJS and Firebase Simple Login.
- uses only client-side code
- third-party authentication - google/github/twitter
- email / password authentication
- user profiles
Email / Password Authentication
Authenticating with Google
Authenticating with Twitter
Authenticating with GitHub
Below are the firebase security rules being used.
{
"rules": {
".read": true,
"users": {
"github" : {
"$githubid": {
".write": "auth.uid === newData.child('uid').val() || auth.uid === data.child('uid').val()"
}
},
"google" : {
"$googleid": {
".write": "auth.uid === newData.child('uid').val() || auth.uid === data.child('uid').val()"
}
},
"twitter" : {
"$twitterid": {
".write": "auth.uid === newData.child('uid').val() || auth.uid === data.child('uid').val()"
}
},
"password" : {
"$passwordid": {
".write": "auth.uid === newData.child('uid').val() || auth.uid === data.child('uid').val()"
}
}
}
}
}
built with