Created
March 23, 2018 23:10
-
-
Save adrianhall/6d81fba8ca342dc37e677bf921df4b76 to your computer and use it in GitHub Desktop.
default authenticator activity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.amazon.aws.mobile.samples.tasks.activities | |
import android.support.v7.app.AppCompatActivity | |
import android.os.Bundle | |
import com.amazon.aws.mobile.samples.tasks.providers.AWSProvider | |
import com.amazonaws.mobile.auth.ui.SignInUI | |
class AuthenticatorActivity : AppCompatActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
// Pull in the SignInUI | |
val ui = AWSProvider.instance!!.getClient(this, SignInUI::class.java) as SignInUI | |
ui.login(this, MainActivity::class.java).execute() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment