Coder Social home page Coder Social logo

Comments (13)

robdimarco avatar robdimarco commented on July 18, 2024

I have not tested with omniauth 1.1 yet.

Do you have a stacktrace you can attach to this issue?

from omniauth_crowd.

robdimarco avatar robdimarco commented on July 18, 2024

I have tried it out with omniauth 1.1.4 and have had no problems. Can you give me more details (stacktrace/failing unit test) that illustrates the problem?

from omniauth_crowd.

hudecof avatar hudecof commented on July 18, 2024

Next 2 weeks staring today I'm out of office. I will attach the traces. The problem is in argument count.
Maybe ot' a bug related to the gitlab project and the devise odr maybe wrong configuration.

from omniauth_crowd.

robdimarco avatar robdimarco commented on July 18, 2024

Sorry, accidental close.

from omniauth_crowd.

robdimarco avatar robdimarco commented on July 18, 2024

Just wanted to ping on this again and see if you have traces.

from omniauth_crowd.

hudecof avatar hudecof commented on July 18, 2024

Still on vacation ;(

On 8/14/13 3:40 AM, Rob Di Marco wrote:

Just wanted to ping on this again and see if you have traces.


Reply to this email directly or view it on GitHub
#12 (comment).

from omniauth_crowd.

hudecof avatar hudecof commented on July 18, 2024

This is my error form the gitlab. As I wrote, meybe my configuration is wrong

==> ../log/sidekiq.log <==
wrong number of arguments (3 for 1..2)
/usr/local/lib/ruby/gems/2.0.0/gems/omniauth_crowd-2.1.1/lib/omniauth/strategies/crowd.rb:10:in `initialize'
/usr/local/lib/ruby/gems/2.0.0/gems/actionpack-3.2.13/lib/action_dispatch/middleware/stack.rb:43:in `new'
/usr/local/lib/ruby/gems/2.0.0/gems/actionpack-3.2.13/lib/action_dispatch/middleware/stack.rb:43:in `build'
/usr/local/lib/ruby/gems/2.0.0/gems/actionpack-3.2.13/lib/action_dispatch/middleware/stack.rb:113:in `block in build'
/usr/local/lib/ruby/gems/2.0.0/gems/actionpack-3.2.13/lib/action_dispatch/middleware/stack.rb:113:in `each'
/usr/local/lib/ruby/gems/2.0.0/gems/actionpack-3.2.13/lib/action_dispatch/middleware/stack.rb:113:in `inject'
/usr/local/lib/ruby/gems/2.0.0/gems/actionpack-3.2.13/lib/action_dispatch/middleware/stack.rb:113:in `build'
/usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/engine.rb:470:in `app'
/usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/application/finisher.rb:31:in `block in <module:Finisher>'
/usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
/usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
/usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
/usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
/usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
/usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
/usr/local/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
/home/git/gitlab/config/environment.rb:5:in `<top (required)>'
/usr/local/lib/ruby/gems/2.0.0/gems/sidekiq-2.13.0/lib/sidekiq/cli.rb:195:in `require'
/usr/local/lib/ruby/gems/2.0.0/gems/sidekiq-2.13.0/lib/sidekiq/cli.rb:195:in `boot_system'
/usr/local/lib/ruby/gems/2.0.0/gems/sidekiq-2.13.0/lib/sidekiq/cli.rb:39:in `parse'
/usr/local/lib/ruby/gems/2.0.0/gems/sidekiq-2.13.0/bin/sidekiq:7:in `<top (required)>'
/usr/local/bin/sidekiq:23:in `load'
/usr/local/bin/sidekiq:23:in `<main>'

from omniauth_crowd.

robdimarco avatar robdimarco commented on July 18, 2024

OK, can you show me how you are initializing the crowd provider. It should be something like:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :crowd, :crowd_server_url=>"https://crowd.mycompanyname.com/crowd", :application_name=>"app", :application_password=>"password"
end

from omniauth_crowd.

hudecof avatar hudecof commented on July 18, 2024

I want to integrate in into gitlab application. The confguration is a litlle bit different. gitlab is using DEVISE.
I followed the configuration on the https://github.com/gitlabhq/gitlab-public-wiki/wiki/Working-Custom-Omniauth-Provider-Configurations, "Working CAS Configuration".
Of course I changed all relevant parameters.

from omniauth_crowd.

robdimarco avatar robdimarco commented on July 18, 2024

Is there someplace you are trying to instantiate a Omniauth::Strategies::Crowd instance? The bug is that it is trying to pass in 3 arguments in to the constructor and only 1 or 2 are allowed. Any info you can give me on how you are setting up the crowd service would help me debug.

from omniauth_crowd.

hudecof avatar hudecof commented on July 18, 2024

no I did not. The devise should do it. And there is probably the problem. Devise is passing more parameters to the Crowd module.

from omniauth_crowd.

hudecof avatar hudecof commented on July 18, 2024

the problem was not in this module. I needed to change the gitlab sources ;(

from omniauth_crowd.

hudecof avatar hudecof commented on July 18, 2024

I wrote a small blog how to intergrate gitlab with crowd: http://blog.hudecof.net/posts/2014/01/08/gitlab-with-atlassian-crowd.html

from omniauth_crowd.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.