Authenticating Guest Users for Firebase using Dart's Flutter Framework

in #utopian-io6 years ago (edited)

What Will I Learn?

  • You will learn about Firebase authentication
  • You will learn how to Authenticate a User in a Flutter Application using Firebase
  • You will learn how to login and logout an anonymous user using Firebase in Flutter
  • You will learn about Flutter's Material Widget

Requirements

Difficulty

  • Intermediate

Description

In this Flutter video tutorial, we take a look at the Firebase Auth plugin and how we can use it to anonymously sign in a user so that they have permissions to manipulate parts of our firebase database. Firebase offers many different providers for authenticating users. We can leverage this in our Flutter applications so that we do not need to build out our own authentication systems. We can also use the anonymous provider to work with a local authentication system. This could allow us to store usernames and password hashes into our firebase database to give our local authentication system a bit more security.

In this application, we just make two main page widgets, a login page and a home page. On the login page, the user can click on a button which will generate a unique user ID for the user and authenticate them to our Firebase database anonymously. This button also pushes the user to the home page which then displays some of the user properties. The user then can go back to the login page and click the sign out button to sign out from the Firebase database. We make use of various different widgets to build this application, including the material widget. The material widget is just a container widget with a specific set of properties which align with the material design specification.

The source code for this project can be found here

Video Tutorial

Projects and Series

Stand Alone Projects:
Building a Calculator
Movie Searcher Application

Minesweeper Game

Curriculum



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Excellent contribution @tensor. Thank you for your continued participation. The community is definitely benefiting from your expertise.

Cheers,
@buckydurddle


Need help? Write a ticket on https://support.utopian.io.
Chat with us on Discord.

[utopian-moderator]

Thanks for the compliments and for moderating my contribution.

test comment. please ignore.

Hey @tensor I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Utopian Witness!

Participate on Discord. Lets GROW TOGETHER!

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.030
BTC 61491.31
ETH 3387.53
USDT 1.00
SBD 2.50