0

I am currently integrating aws auth / auth ui into my android app , but i can't find way to use my custom login ui, instread of hosted one , i want to use my own layout, button etc . tried to dig into doc , nothing helped me .

Just to mention , i don't want to impleement my own auth for custom backend or anything else, just ui customization.

thanks in advance.

desire_rawr
  • 3
  • 1
  • 3
  • Seems like more of a aws support forum question than a programming one. But can you tell us if don't want to customize the hosted login, are you trying to integrate and existing flow with cognito? If so, check out https://docs.aws.amazon.com/cognito/latest/developerguide/developer-authenticated-identities.html – navicore Dec 26 '17 at 17:04
  • 1
    Thanks , i will post there too , no i don't want to use my own backend or something like that . currently i implemented google+ login , it's working fine , but it's using amazon's pre-defined ui , button layout etc , i want to configure everything else . – desire_rawr Dec 26 '17 at 17:14
  • 1
    Currently, the AWS Auth UI only supports minimal customization. You can change the font style and background color and enable background color for full screen or not. http://docs.aws.amazon.com/aws-mobile/latest/developerguide/add-aws-mobile-user-sign-in-customize.html – Karthikeyan Dec 26 '17 at 19:18
  • @Karthikeyan i've checked it out already , but there could be trick or something to avoid that . but thanks for answer . – desire_rawr Dec 26 '17 at 20:05

1 Answers1

1

You can use Cognito Userpool's authorization endpoint and Android SDK to implement the same. For Userpool logins, build your custom UI and on login, use the Android SDK to sign in your users. For other providers liek Login with Google or Facebook, use the Authorization endpoint with the correct identity provider specified. See my answer here for login using third-party providers. For Android implementation, check out this sample app (especially MainActivity.java & AppHelper.java).

agent420
  • 3,291
  • 20
  • 27