简体   繁体   English

AWS Cognito自定义登录UI

[英]AWS Cognito custom login ui

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 . 我目前正在将aws auth / auth ui集成到我的android应用程序中,但是我无法找到使用自定义登录ui的方式,可以托管托管的ui,我想使用自己的布局,按钮等。 tried to dig into doc , nothing helped me . 试图研究doc,没有任何帮助。

Just to mention , i don't want to impleement my own auth for custom backend or anything else, just ui customization. 只是提及,我不想为自定义后端或其他任何东西实现我自己的身份验证,仅是ui定制。

thanks in advance. 提前致谢。

You can use Cognito Userpool's authorization endpoint and Android SDK to implement the same. 您可以使用Cognito Userpool的授权端点和Android SDK来实现它们。 For Userpool logins, build your custom UI and on login, use the Android SDK to sign in your users. 对于Userpool登录,请构建您的自定义UI,并在登录时使用Android SDK登录用户。 For other providers liek Login with Google or Facebook, use the Authorization endpoint with the correct identity provider specified. 对于其他使用Google或Facebook登录的提供商,请使用带有指定的正确身份提供商的Authorization端点。 See my answer here for login using third-party providers. 在此处查看我的答案以使用第三方提供商进行登录。 For Android implementation, check out this sample app (especially MainActivity.java & AppHelper.java). 对于Android实施,请查看示例应用程序(尤其是MainActivity.java和AppHelper.java)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM