aws-samples / amazon-connect-chat-translate

AWS Amplify project to demonstrate Amazon Connect Chat with realtime language detection and translation
MIT No Attribution
9 stars 55 forks source link

Remove Login and Logout page #47

Open Akhtar1997 opened 2 months ago

Akhtar1997 commented 2 months ago

@hyandell @rstrahan We have deployed and run successfully, But i want to remove Login and Logout page. How we can do that. We are trying to remove authenticator in APP.js file after that project build successfully but translate div is not working.

figment216 commented 2 months ago

The solution uses Cognito user pools for defining authentication and identity pools for defining policies for authenticated vs unauthenticated users (ie: what they are authorized to do). If you go to the identity pool that is built by default by the solution, you will see that the unauthenticated role is inactive. The policies and authenticated vs unauthenticated are configurable and you can modify the behavior by a) activating an unauthenticated role and b) defining what that role is authorized to do.

Let me know if you need further assistance.

Akhtar1997 commented 2 months ago

@figment216 Is there any solution to remove login and logout page , because we are using our login page?

figment216 commented 2 months ago

In the App.js file, the login/ logout page is being constructed by the configureAuth function. There are several things that are going on with this including the utilization of Cognito to authenticate and get authorization for authenticated vs unauthenticated users. This is what enables the user to have access to the translate API.

figment216 commented 2 months ago

Please take a look at the App.js file in the src folder.

Akhtar1997 commented 2 months ago

hello, the main concern is that i don't want to use the login page if there is a way by which user is authenticated automatically or some thing like auto sign .

Akhtar1997 commented 2 months ago

@hyandell @figment216 please tell us , How we can resolve that, basically we don't want to sing in page , when we are removed sing in page then translation is not working. Please guide us how we can resolve that issue. Last GitHub repo( voice foundry) we was not facing any such type of issue.