Posts

Showing posts with the label Authentication

Sign in using firebase

Image
Introduction to Authentication with Firebase I want to continue my exploration of firebase by going through the authentication service provided by firebase. If you navigate to the  firebase console  and select the project you are working on, select  Authentication  from the left sidebar then select  SIGN-IN METHOD you'll see the seven ways you can allow your user to login. (If you haven't read my previous tutorials in this series, I highly recommend going through the first tutorial on  firebase's real-time database  where other than learning how to use the database, I also go through setting up the project. Then, if you are interested, but not required, you can read the other tutorial on  storage ) 01. Setup The setup will be exactly the same as in  firebase's real-time database . We have an HTML and a JavaScript file. The html is going to be slightly different though <!DOCTYPE html> <html lang= "en" > <head> <meta c

Complete Django Project

Image
In this tutorial we’ll learn how to properly start a new Django project with a custom user model and add Gmail social authentication via  django-allauth . I I believe these features are  must haves  in any new Django project in 2018. A custom user model is  highly recommended  in the official docs and allows for future customization. Adding social authentication via third-party services like Gmail, Facebook, and other services is also common. By using  django-allauth  from the beginning, we can add social auth as needed. I want to express my appreciation upfront to the work of Raymond Penners on  django-allauth  as well as the open-source  cookiecutter-django  and  demo-allauth-bootstrap  projects. The outline of our work is as follows: start a basic Django project add a pages app for the homepage implement a custom user model signup, login, logout install django-allauth get Google credentials update templates Basic Django This tutorial assumes your computer i