Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Getting Started with Android Authentication Using Kotlin

Okta via YouTube

Overview

Learn how to implement secure authentication in Android applications using Kotlin and Auth0. Follow along with this comprehensive 53-minute tutorial to add login and logout functionality to a basic Android app, as well as display user information from their account. Download the starter project from GitHub, set up a free Auth0 account, and configure your app to communicate with Auth0. Explore key concepts such as registering your app in the Auth0 dashboard, adding necessary libraries, implementing login and logout methods, and extracting user information from ID tokens. By the end of this screencast, you'll have a fully functional Android app with robust authentication features, allowing you to focus on developing your app's core functionality.

Syllabus

Introduction
What you'll build
Download and run the starter project
The general idea behind connecting an app to Auth0
How to sign up for a free Auth0 account
Accordion break!
Register the app in the Auth0 dashboard
Add info to the app so it can communicate with Auth0
Add info to Auth0 so that it can communicate with the app
Add the Auth0 libraries and other info to build.gradle
Give the app permission to access the internet
Add import statments and properties to the main activity
Initialize the main activity
Implement the login method
Implement the logout method
Implement the updateUI method
Run the app
Next step: Display info about the logged-in user
A closer look at the ID token
Extract user info from the ID token with the User class
Get the user info from the User class and display it onscreen
Run the app again
Conclusion

Taught by

Okta

Reviews

Start your review of Getting Started with Android Authentication Using Kotlin

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.