AzureAD / omniauth-azure-activedirectory

MIT License
50 stars 103 forks source link

Error for '/auth/azureactivedirectory' (AWS Elastic Beanstalk) #21

Open abezulski opened 8 years ago

abezulski commented 8 years ago

I have my azure ad up and running, my app works fine on my local machine, but once deployed to AWS EB, I am getting the following error for route '/auth/azureactivedirectory'.

A really lowlevel plumbing error occured. Please contact your local Maytag(tm) repair person.

I have checked logs in AWS and getting this one:

Rack app error: #<NameError: uninitialized constant OmniAuth::Strategies::AzureActiveDirectory::Net>

Any ideas what is causing this?

aj-michael commented 8 years ago

Hey @abezulski , what versions of Ruby are you using locally and on AWS?

abezulski commented 8 years ago

Hi @aj-michael, locally I have 2.1.2 with RubyGems 2.2.2

Here is the AWS Elastic Beanstalk breakdown: 64bit Amazon Linux 2015.09 v2.0.6 running Ruby 2.1 (Puma)

flojon commented 7 years ago

I fixed this issue by adding require 'net/http' to lib/omniauth/strategies/azure_activedirectory.rb I'm using ruby 2.4.1

abezulski commented 7 years ago

Thanks @flojon, I see that you created pull request but it has not been done yet. Looking forward to get that done, thanks for your input!

nerdinand commented 6 years ago

I had the exact same problem. Thanks for the fix! This should really be merged... @aj-michael any chance of getting this merged?

aj-michael commented 6 years ago

Hi @nerdinand, unfortunately I no longer have write access to this repository. You will need to reach out to someone in the @AzureAD organization.