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

CRUD api call in the same controller with authentication apis. #1143

Closed
vijeta-singh opened this issue Mar 16, 2018 · 2 comments
Closed

CRUD api call in the same controller with authentication apis. #1143

vijeta-singh opened this issue Mar 16, 2018 · 2 comments

Comments

@vijeta-singh
Copy link

I have users controller I want to have crud apis and authentication apis in the same controller.
But I am getting Unhandled error in POST /user: 500 Error: The key authentication.currentUser was not bound to any value. on other get/post api call.

Also I could not find documentation about login and logout ,how I can use these feature of authentication?

@virkt25
Copy link
Contributor

virkt25 commented Mar 16, 2018

Hi @vijeta-singh are you using @loopback/authentication? Can you share either a sandbox to reproduce this issue or some code so it's easier to debug.

That said, with LoopBack 4 we don't have a built in user model that provides login / logout yet. Authentication / Authorization is something we plan to add in the future. We'll be investigating this in this issue: #1035

Feel free to post in that issue how you would like to see Authentication / Authorization to work :D

@virkt25
Copy link
Contributor

virkt25 commented Apr 20, 2018

Closing the issue due to inactivity. Comment / Ping me to have it re-opened.

@virkt25 virkt25 closed this as completed Apr 20, 2018
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