Getting Started with Android Authentication using Kotlin

Published: 27 January 2023
on channel: OktaDev
4,860
60

With 3 billion users worldwide and 70% of the smartphone market, Android is the world's most popular operating system. That's why you want to write Android apps! When the time comes to add login and logout to your Android app, don't roll your own, use Auth0. It's secure, it saves you time, and it lets you focus on your app's functionality. In this screencast, you'll take a basic Android app, give it login and logout functionality, and also display information about about the user from their account while they're logged in.

To follow along with the video, you'll need the starter project, located in this Github repository: https://github.com/auth0-blog/get-sta...

You'll also need an Auth0 account. They're available for free, and the free version supports 10 applications, thousands of users, and unlimited logins! Sign up for your FREE account here: https://auth0.com/signup

Table of Contents

0:00 Introduction
1:00 What you'll build
5:08 Download and run the starter project
5:51 The general idea behind connecting an app to Auth0
7:14 How to sign up for a free Auth0 account
7:56 Accordion break!
8:11 Register the app in the Auth0 dashboard
11:51 Add info to the app so it can communicate with Auth0
14:24 Add info to Auth0 so that it can communicate with the app
18:14 Add the Auth0 libraries and other info to build.gradle
21:06 Give the app permission to access the internet
21:41 Add import statments and properties to the main activity
24:48 Initialize the main activity
27:27 Implement the login() method
32:07 Implement the logout() method
35:38 Implement the updateUI() method
37:44 Run the app
39:37 Next step: Display info about the logged-in user
40:22 A closer look at the ID token
43:09 Extract user info from the ID token with the User class
50:11 Get the user info from the User class and display it onscreen
52:05 Run the app again
53:06 Conclusion

___________________________________________
Learn with Auth0 by Okta
Try for free - https://a0.to/auth0
The Auth0 by Okta blog - https://a0.to/blog
Ask questions on the Community Forum - https://a0.to/community ___________________________________________
Follow Us on Social
Twitter - https://a0.to/twitter
LinkedIn - https://a0.to/linkedin


On this page of the site you can watch the video online Getting Started with Android Authentication using Kotlin with a duration of hours minute second in good quality, which was uploaded by the user OktaDev 27 January 2023, share the link with friends and acquaintances, this video has already been watched 4,860 times on youtube and it was liked by 60 viewers. Enjoy your viewing!