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

Hosting the application on a website #8

Open
DPoSign opened this issue Jan 18, 2017 · 0 comments
Open

Hosting the application on a website #8

DPoSign opened this issue Jan 18, 2017 · 0 comments

Comments

@DPoSign
Copy link

DPoSign commented Jan 18, 2017

Hello, i'm trying the tutorial on a website this time, the homepage is fine, the autorisation page from Github is fine, but the redirection throw me a 404 error.

client/config.json

{
    "PUBNUB_SUBSCRIBE_KEY": "sub-",
    "PUBNUB_PUBLISH_KEY": "pub-",
    "GITHUB_CLIENT_ID": "XXXXXXX",
    "GITHUB_REDIRECT_URI": "http://mywebsiteURL",
    "GITHUB_ACCESS_TOKEN_REQUEST_URL": "http://mywebsiteURL/auth/github",
    "SERVER_URL": "http://mywebsiteURL"
}

server/.env :


PUBNUB_SUBSCRIBE_KEY=sub-....
PUBNUB_PUBLISH_KEY=pub-....
PUBNUB_SECRET_KEY=sec-....
GITHUB_CLIENT_ID=XXXXXXXXX
GITHUB_CLIENT_SECRET=XXXXXXX
GITHUB_REDIRECT_URI=http://mywebsiteURL
GITHUB_ACCESS_TOKEN_REQUEST_URL=http://mywebsiteURL/auth/github

My Github Configuration

Homepage URL : http://mywebsiteURL
Authorization callback URL : http://mywebsiteURL

As you can see, I put the url of my website (http://mywebsiteURL) everywhere.
Someone got an idea for the solution?

Thank you in advance,

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

1 participant