1

I'm trying to add a social authentication to my project, which I created with Yeoman. But there is a problem with callback. It can't find my local server.

http://localhost:9000/oauth2callback#access_token=...

Cannot GET /oauth2callback

I found that this is node js issue, that mentions on stackoverflow there but it doesn't work with http://hostname/ in routes, and there where grunt connect module conflicts with other connect modules in Yeoman seed app (perhaps I couldn't setup it properly).

Project code stored on github and based on angular-oauth which works. This is routes file. The project is pretty simple.

Also I would be grateful for any help with this or more general solution of this problem.

2 Answers 2

2

Here is the approach I have taken with using subdomains, for an Angular App and Express JS (both are completely separated code, but share the same domain name).

https://gist.github.com/amitaibu/6573250

Sign up to request clarification or add additional context in comments.

Comments

1

I found a solution on someone github files. https://gist.github.com/zishe/6925726 Works great!

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.