-
Notifications
You must be signed in to change notification settings - Fork 31
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
Undefined method 'new' for Slack:Module #6
Comments
Hi @mknarciso , Just at a glance, it looks like |
I'm also seeing this when trying to switch to this fork. It seems as if the config:
is being called in my app, but the Slack module is not accessible by I have a bunch of OmniAuth strategies setup in my config/initializers/omniauth.rb, and I'm calling provider(provider_config[:omniauth_strategy_name], *provider_config[:omniauth_args]) For Slack, {
display_name: "Slack",
omniauth_strategy_name: "slack", # I've tried a symbol here too
omniauth_args: [
ENV["SLACK_CLIENT_ID"], ENV["SLACK_CLIENT_SECRET"],
scope: "files:read users:read users:read.email team:read identify"
],
}, I've added omniauth 1.8.1 I guess I will look at upgrading the omniauth version? BTW, thank you for creating as fork of this library for the community to rally behind. It's a shame the other one was abandoned. |
Hi @aguynamedben , thanks for the info. Maybe it's a load-order issue somewhere in the library... I'll dig into the code and see what I can find. |
Hey folks, I had a look through the code, and I couldn't find any obvious point where this would happen. I wasn't able to reproduce it in my own examples, either. If this is an omniauth-slack bug, it's a tricky one. I do have a couple of ideas on what might be happening, however. 1. It's possible that your middleware definition block has an error in the call to If your code has use OmniAuth::Builder do |env|
provider :slack,
SLACK_OAUTH_KEY,
SLACK_OAUTH_SECRET,
scope: 'string-of-space-delimited-scopes'
end 2. I have an as-yet-unreleased version that did have a bug confusing the If neither of these fits your situation, please post the full stack trace from the error, if possible, and I'll look deeper into it. |
Thanks for looking into this. I'm pretty sure our Candidly I don't have time to dig into this right now. We pinned the repo to:
In the future I will try switching to your fork and let you know if this pops up again. |
hey @aguynamedben - just a quick sanity check, are you including the gem as follows in your gemfile? I was banging my head against the exact same error until I realized I forgot the 'require' :( |
@talecK I have not tried that, but will at some point soon... thanks so much! |
Hi @ginjo !
Trying to change 'omniauth-slack' for 'ginjo-omniauth-slack' on the Gemfile gives me this error when I run the server:
Using:
Any advice on debbuging this?
The text was updated successfully, but these errors were encountered: