From the course: Writing Secure Code for Android by Infosec
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Activity: Implementing session management
From the course: Writing Secure Code for Android by Infosec
Activity: Implementing session management
- [Instructor] Session Management. Activity. Implementing Session Management. In Android Studio, open an existing project and browse to your Student Activities. Go to Course Six and go to Session Management and select SignUpWithPrefs and open it. Now, this activity is very simple. What we're going to do is have the user put in a username and password, and it can really be anything. We're asking for email address, but it can be totally fake. We'll have them save it in shared preferences and we'll have them move away from the app. They'll background the app or they'll do something without logging out. When they go back to the app, the shared preferences will retrieve the data and the data will be right there. And that data will only be destroyed when the session is destroyed. So when they actually log out. We only have the main activity here. We set up a companion object, and in it, we're putting constants. And we know that in a companion object, we have to have constants. The first…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Authentication, part 111m 34s
-
(Locked)
Authentication, part 211m 3s
-
(Locked)
Activity: Implementing a password checker, part 114m 53s
-
(Locked)
Activity: Implementing a password checker, part 215m 3s
-
(Locked)
Google sign-in5m 50s
-
(Locked)
Activity: Signing in with Google and Facebook7m 48s
-
(Locked)
Keys, tokens, and secrets6m 55s
-
(Locked)
Biometrics9m 30s
-
(Locked)
Activity: Implementing biometrics12m 13s
-
(Locked)
Two-factor authentication12m 5s
-
(Locked)
Authorization, part 111m 48s
-
(Locked)
Authorization, part 25m 40s
-
(Locked)
Authorization, part 35m 40s
-
(Locked)
Activity: Implementing runtime permissions6m 35s
-
(Locked)
Activity: Role-based access control14m 39s
-
(Locked)
OAuth8m 52s
-
(Locked)
Insecure direct object reference5m 37s
-
(Locked)
Session management, part 111m 41s
-
(Locked)
Session management, part 24m 10s
-
(Locked)
Activity: Implementing session management11m 21s
-
(Locked)
-
-