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

VueJs Server Side Rendering support #162

Open
John0x opened this issue Apr 10, 2017 · 4 comments
Open

VueJs Server Side Rendering support #162

John0x opened this issue Apr 10, 2017 · 4 comments

Comments

@John0x
Copy link

John0x commented Apr 10, 2017

Hey, there does not seem to be any advanced control over the login/auth process for users.
I need to be able to support server side rendering with vuejs 2 and therefore I need to be able to use cookies to store the auth token or whatever is used for authentication.
Is there already a solution to this?

@nawazdhandala
Copy link
Contributor

So, you need to access the session on your custom server?

@John0x
Copy link
Author

John0x commented Apr 11, 2017

I have an express server, that renders my vuejs app on the server and then sends the rendered html to the client. Therefore I need to be able to login the user on the server in order to be able to render user content on the server.
Currently I'm using loopback for my backend. I have the access token stored in a cookie which I can access from both the client(browser) and the server (express), that token gets sent with every request I make to my rest api in order to login the user and request protected data.

What's the process of cloudboost for this?
I need to able to give the session or token or whatever cloudboost uses manually to the client sdk.

@nawazdhandala
Copy link
Contributor

If you're already doing a session management with loopback, you can still use the CloudUser on the client and log the user in on the client side, once the user is successfully logged in you can create a session (with the CloudBoost UserID, ofcourse the session will be encrypted) on your loopback server.

Let me know if this helps.

@John0x
Copy link
Author

John0x commented Apr 13, 2017

@nawazdhandala I'm planning on replacing loopback with cloudboost, so that's sadly not a solution.

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

No branches or pull requests

2 participants