Secure User Authentication | Android + Ktor Server + MongoDB

Securely Authenticate and Store your Users Info on the Back-end Server using a modern One-Tap Sign in with Google.

In this course I’m going to teach you how to successfully authenticate your users, and create you own user database on the back-end server, all by yourself. This course project will include a Mongo DB on our back-end, where you’ll learn how to execute all CRUD operations from an Android application.

What you’ll learn

  • Develop an Android Application.
  • Develop a Backend Server with Ktor.
  • Ktor 2.0.
  • Create your own REST API.
  • Design App UI using Jetpack Compose UI toolkit.
  • Clean Architecture.
  • Authentication.
  • Authorization.
  • ID Token.
  • Access Token.
  • JSON Web Token.
  • OAuth.
  • Open ID Connect.
  • Sessions.
  • Cookies.
  • Session Encryption.
  • One-Tap Sign in for Android.
  • Mongo DB.
  • CRUD operations.
  • Create, Read, Update, Delete.
  • GET, POST, PUT, DELETE HTTP Methods.
  • Server Deployment.
  • Heroku.
  • and more…

Course Content

  • Introduction –> 10 lectures • 50min.
  • Implement One-Tap Sign in on Android –> 14 lectures • 2hr 9min.
  • Back-end Server with Ktor –> 15 lectures • 2hr 10min.
  • Implement Profile Screen on Android –> 12 lectures • 1hr 41min.
  • Server Deployment –> 3 lectures • 34min.

Secure User Authentication | Android + Ktor Server + MongoDB

Requirements

In this course I’m going to teach you how to successfully authenticate your users, and create you own user database on the back-end server, all by yourself. This course project will include a Mongo DB on our back-end, where you’ll learn how to execute all CRUD operations from an Android application.

You don’t need a Firebase anymore, because with this course you’ll get the necessary knowledge to establish a secure communication between your Android application and the back-end server. At the start of this course I will introduce you with some important concepts which we are going to use throughout this course, like the difference between Authentication and Authorization, ID Token and Access Token, OAuth and Open ID Connect, Sessions and Cookies, JSON Web Token and One-Tap Sign in for Android.

You will be able to see how that communication will look like behind the scenes, and we are going authenticate our users using their Google account. In Android app, as a new sign in mechanism, One-Tap for Android will be implemented as well.

 

We will create a rather simple project, so that you can easily follow up this course, and learn everything you need, that later you become qualified to create more complex applications, that include authenticate mechanism and your own user database.

We are going to use the newest technologies and API’s in this project like: Jetpack Compose, Ktor 2.0, One-Tap Sign in for Android and Mongo DB.

Get Tutorial