Adding Authentication to Pluto

In the previous section we implemented and tested several authentication features. In this chapter we will use this functions at the relevant places:

  1. In SignInActivity implement the following method stubs. (Just call the functions from the previous chapter, but use values from the UI.)
    1. doSignIn()
    2. doResetPassword()
  2. In ManageAccountActvitiy
    1. doSignOut()
    2. doSendActivationMail()
    3. doDeleteAccount()
  3. In CreateAccountActivity
    1. doCreateAccount()

Finally clean up the options menu from our test calls.

Notes regarding SignInActivity

  1. Calling finish() in an activity is closing the activity and removes it from the current activity stack. It is equivalent to using the Backbutton. Technically the lifecycle method onDestroy() is called. The ActivityResult (if any) is propagated back to whoever launched you via onActivityResult(). Read: https://developer.android.com/reference/android/app/Activity.html#finish()
  2. In SignInActivity you need to implement the onStart() lifecycle method, in order to check, if the user is authenticated. Why?

Notes regardingMainActivity

  1. Make sure, that you check user authentication (using Firebase).

Notes regardingManageAccountActivity

  1. Display account related values in the upper part of the screen.
  2. Explain, why and how deleting the account should be improved.

results matching ""

    No results matching ""