Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to implement login page in lex-web-ui #15

Closed
tusharIndore opened this issue Dec 12, 2017 · 6 comments
Closed

how to implement login page in lex-web-ui #15

tusharIndore opened this issue Dec 12, 2017 · 6 comments

Comments

@tusharIndore
Copy link

Hi,

I want to implement login functionality in lex web ui and after successful login i want to set user id in session attribute which i want to pass using get method. how this can be done ,Kindly let me know.

Thanks,
Tushar Choudhary

@atoa atoa self-assigned this Dec 12, 2017
@atoa atoa added the question label Dec 12, 2017
@atoa
Copy link
Contributor

atoa commented Dec 12, 2017

Hi Tushar,

The Lex web UI uses AWS credentials to authenticate to the Lex and Polly services. From your web application, you can use Cognito User Pools to provide the login functionality and to obtain AWS credentials associated to the users. Once your application obtains AWS credentials, it can instantiate the Lex and Polly clients with the credentials from Cognito and pass the client instances to the Lex web UI.

This use case would require you to build the login functionality in your own web application and import the Lex web UI into your project. In this setup, the Lex web UI is consumed as an imported library which can be used as a Vue plugin.

The Tracking Bot project integrates the Cognito hosted UI with the Lex web UI using the approach described above. You can see the integration of it in the following file: App.vue.

Hope this helps.

-- Oliver

@tusharIndore
Copy link
Author

Hi Oliver,

Can you please elaborate more ,even i don't have knowledge of "vue".Please specify the location and file which require changes for this task, also provide the code with example if possible.

Thanks,
Tushar Choudhary

@atoa
Copy link
Contributor

atoa commented Dec 13, 2017

Tushar,

I am unable to provide specific code or a list of files/changes beyond the references I provided above. My first impression is that this functionality is beyond the scope of this project and may be better suited to be an external component that just integrates by passing credentials or AWS client instances to the Lex web UI.

I'll leave this ticket open for a while to track the level of interest or ideas.

-- Oliver

@rstrahan
Copy link
Contributor

+1 for integrating Cognito login to lex-web-ui (with ability to enable/disable via config)

@dileephell
Copy link

Hi if am trying to access this http://localhost:8080/parent.html from this aws-lex-web-ui-master\lex-web-ui folder then i am getting this error iframe-component-loader.js:271 GET http://localhost:3000/admin/index.html 404 (Not Found) in my console. But if I am trying to access the url localhost:8080/ i am able to see the bot which i have made.

My requirement is towards loading the iframe. Any help is appreciated. Thanks.

@JohnCalhoun
Copy link
Contributor

we are tracking this feature in #51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants