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

invalid cookie #2

Open
palewire opened this issue Nov 23, 2016 · 0 comments
Open

invalid cookie #2

palewire opened this issue Nov 23, 2016 · 0 comments

Comments

@palewire
Copy link

palewire commented Nov 23, 2016

Hello. Great idea for a library!

I've started to get it try and get it going by configuring a blank cloud server with the code. But I've run into a problem. After completing the OAuth loop with Slack, I get the following error:

2016/11/23 21:26:18 invalid cookie

Any ideas what I'm doing wrong?

I'm trying this get this going without SSL just as a start. Here's my config.yml and nginx conf.

client_id: <myid>
client_secret: <mysecret>
slack_team: <myteam>

redirect_uri: http://<amazon ec2 server public IP>/oauth2/callback/

cookie_hash_key: <my the slack_auth_proxy function generated>
cookie_block_key: <my the slack_auth_proxy function generated>

upstreams:
  - host: "<the URL to a private S3 bucket I want to let users view via the proxy>"
server {
    listen 80;
    server_name <amazon ec2 server public IP>;
    add_header Strict-Transport-Security max-age=2592000;

    location / {
        proxy_pass http://127.0.0.1:4180;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Scheme $scheme;
        proxy_connect_timeout 1;
        proxy_send_timeout 30;
        proxy_read_timeout 30;
    }
}
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