Firebase Authentication Template

Months after my original Firebase Login Template was released and fairly well-received by the community. I’m happy to present to you, the all new Firebase Authentication Template. A lot’s changed, but here’s the important details:

  • Unified Logon! It’s a user management system that relies on Realtime Database instead of Auth. It allows for logging in or signing up with the same button, and will be integrated in the future with other services I make, in the same framework. :wink:
  • Firebase Auth! That’s what you’ve been waiting for. :laughing:
    – E-mail: Sign Up, Log In, Reset Password…
    – Plus, Log in with Google.

The tabbed UI from the original template makes a comeback, and so does the double-tap exit. The “MainContent” screen is not crucial to the core template, and only demonstrates some additional functionality like Logout, and viewing basic user information.

The template is provided completely free of charge, although you can show your support via donations, or a mention in your app’s acknowledgements or “about” section.

:firebase: continues to be a property of :google:. I’m just tinkering.

Download Links:

AIA
APK

Screenshots

Do send me bug reports and suggestions via mail or Telegram. :smile:

That’s all for now;
Happy Koding!

32 Likes

Nothing :face_with_raised_eyebrow:

1 Like

Added screenshots to original post.

@yanquisalexander you might want to see the screenshots. I have no idea whatsoever why CardViews in a ViewPager doesn’t work on your device. :confused:

1 Like

If it works because before I did a similar login, I guess there was a small block overlooked

But it looks good!

1 Like

I didn’t quite get that. What do you mean? :sweat_smile:

1 Like

:point_up_2::point_up_2::point_up_2:

Yes work on my phone

2 Likes

@Kanishka_Developer, Can it work to log in to google calendar?

1 Like

Your buttons in those screenshots heavily relay to my standards of soft because they’re rounded. Nice job!

2 Likes

There is no such login method that I know of. :sweat_smile:

1 Like

Can you guide them in detail with video?

1 Like

Which part do you think needs to be explained more thoroughly? :sweat_smile:

1 Like

50 Downloads on the AIA and just 6 likes? Show the template some love, people! :3

10 Likes

Okay, I need some help with Firebase login. I thought this might help clear it up, but I’m not sure if it does. I don’t need to store user data in the database because my app isn’t open to the public. I do need to make sure the Gmail address is a corporate “G Suite” address before I allow read/write access and I keep getting access denied if I set my rules to anything other than true for read/write across the board. Can anyone help me out?

1 Like

Try auth!=null.

1 Like

That gives me the error as well. it’s weird, the users do show up under the authentication panel in Firebase, so I know they are signing in. I do also call “Firebase_Authentication.Is Signed In” to check if they need to sign in or if I can just load the home screen. should I sign in every time?

1 Like

I think Something is off with how I have things linked to Firebase, but I can’t figure it out. My built in checks in the app are all working.


This checks if they are already logged in and if they aren’t I let them know that they HAVE to have a corporate email before they attempt to log in. if they are logged in I check to make sure they have an ID Token.
ID Token
If the ID Token isn’t Null I let them through, if not I initiate the login.
After Choosing
I also initiate the login after they agree to the corporate email rule.
Email Check
After I initiate login I check to make sure the email is one of our corporate ones and send them to the home screen if it is and log them out if it’s not.

I get the ID token successfully and can even get the UserID on the home screen. but I’m still getting Access Denied for any rule even “auth != null”. Any help would be appreciated.

2 Likes

I’m facing the same problem while testing using the live companion app. The login fields are not displaying on my device (Oneplus X, Android v6.0) in any of the tabs. I tried building the apk for download, however that fails too. i have provided the build log below:

Kodular is unable to compile this project.
The compiler error output was
________Checking dangerous extensions
________Preparing application icon
________Creating animation xml
________Creating fragment xml
________Creating listview xml in res/layout/…
________Creating listview xml in res/layout-v21/…
________Creating xml in res/drawable/…
________Creating splash png in res/drawable/…
________Creating colors xml
________Creating styles xml
________Creating drawables xml v21
________Checking for firebase
________________Firebase components found.
________________Firebase config file error.

I’ve been reading a few other topics about your post, and wanted to know if a user can logout of this system and login using another ID, or signup using a different ID without closing the app?

Amazing effort though! :clap:

That is expected. You need to set up a Firebase project of your own and generate a new google-services.json.


What you’re asking for works with Firebase Auth login via email if I recall correctly. It does not work with Google by design (and there’s nothing we can do about it, I guess). However logging out and back in (in the same or a different account) without closing the app will work with my Unified Logon system. :slight_smile:

1 Like

Thanks for the quick reply.

I’ve worked with Firebase before, but it was mostly for storing data, never for login. I thought it would work with the default setup you had provided in the aia. Didn’t realize you had to setup a separate json file.

I second the idea of you making a tutorial explaining the blocks for educational purposes. Would be really helpful for someone getting their feet wet building their own login system using modular programming.

Like I mentioned, since the Cardview layout doesn’t seem to display on my device, I’m unable to test any of your login templates. I would love to start from scratch, and create my own system. Some kind of explanation on the blocks would be really helpful! :smiley:

2 Likes

I’ll try to make a tutorial, thanks for the suggestion!

1 Like