Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Issue with OAuth #26

Closed
petems opened this issue Apr 22, 2013 · 5 comments
Closed

Issue with OAuth #26

petems opened this issue Apr 22, 2013 · 5 comments
Labels

Comments

@petems
Copy link
Member

petems commented Apr 22, 2013

For some reason I keep getting issues with OAuth for my boxen-web.

Heroku setup:

heroku config:set \
  REPOSITORY="dev-boxen/dev-boxen" \
  GITHUB_CLIENT_ID=[REDACTED] \
  GITHUB_CLIENT_SECRET=REDACTED \
  GITHUB_TEAM_ID=4224291 \
  SECONDARY_MESSAGE="Dev-boxen." \
  SECRET_TOKEN=REDACTED

OAuth setup:
image

The heroku log with the error:

app[web.1]: TypeError (can't convert String into Integer):
app[web.1]:   app/controllers/auth_controller.rb:44:in `[]'
app[web.1]:   app/controllers/auth_controller.rb:44:in `block in team_access?'
app[web.1]:   app/controllers/auth_controller.rb:5:in `create'
app[web.1]:   app/controllers/auth_controller.rb:43:in `each'
app[web.1]:
app[web.1]:   app/controllers/auth_controller.rb:43:in `any?'
app[web.1]:   app/controllers/auth_controller.rb:43:in `team_access?'
@ocxo
Copy link
Contributor

ocxo commented Jun 3, 2013

@petems Did you ever get this resolved? If not I'll try to take a look at what's up.

@petems
Copy link
Member Author

petems commented Jun 5, 2013

Hi @fromonesrc! Nope, not resolved yet, I'll see if I can rebase from master and that fixes it and get back to you. Is there any debug data that you need or would be useful to you? 👍

@rawsyntax
Copy link

I'm having this same problem as well, any news here?

@ocxo
Copy link
Contributor

ocxo commented Jul 18, 2013

There is a problem here with GITHUB_TEAM_ID. If you remove that ENV var it will work fine though all GitHub users will be able to authenticate to your boxen-web. Will try to get a fix in for this soon.

@rawsyntax
Copy link

@petems @fromonesrc -- my mistake I think. I was using my organization's ID, instead of my team's ID

@ocxo ocxo closed this as completed May 5, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

3 participants