Closed dyaa closed 6 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I just run into the same issue. For me the solution form https://github.com/strongloop/loopback-component-oauth2/issues/67#issuecomment-305707365 worked fine and solved the issue. Some other potentional solutions can be found here https://stackoverflow.com/questions/16434893/node-express-passport-req-user-undefined
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS
file at the top-level of this repository.
Steps to reproduce
I installed the module and i made the login view and the dialog view. here's my
server.js
configrationand my routes
Expected result
The expected result is that when i try to authorize then login it must i think redirect me to the decisionView to approve and to get the
access_token
and therefresh_token
after that, But when i'm trying to authorize like thishttp://0.0.0.0:3000/oauth/authorize?client_id=a72bc3c6f54bfd9fc1ca6d19c0e031b&response_type=token&redirect_uri=http://localhost:3000/auth/example/callback
it's redirect me to the login view/login
after the successful login it redirects me to/users/login
with this JSON examplei tried manually go to the
/dialog
route and click on allow it redirect me again to the/login
route.Actual result (if bug)
The actual result it's always send me to the
/login
route.Additional information (Node.js version, LoopBack version, etc)
NodeJS Version
v6.9.4
Loopback version1.0.0 (generator-loopback@2.2.0)