Error during foreman proxy registration

Hello,

We get this error on our puppet masters when they try to register to
foreman:

2016-04-30 11:28:48 [app] [I] Started GET
"/api/v2/smart_proxies?search=name=%22puppet.company.net%22" for
10.100.3.70 at 2016-04-30 11:28:48 -0400
2016-04-30 11:28:48 [app] [I] Processing by
Api::V2::SmartProxiesController#index as JSON
2016-04-30 11:28:48 [app] [I] Parameters: {"search"=>"name="
puppet.company.net"", "apiv"=>"v2"}
2016-04-30 11:28:48 [app] [W] Oauth: mapping to user '' failed
2016-04-30 11:28:48 [app] [W] SSO failed
2016-04-30 11:28:48 [app] [I] Rendered
api/v2/errors/unauthorized.json.rabl within api/v2/layouts/error_layout
(1.4ms)
2016-04-30 11:28:48 [app] [I] Filter chain halted as :authorize rendered or
redirected
2016-04-30 11:28:48 [app] [I] Completed 401 Unauthorized in 23ms (Views:
6.9ms | ActiveRecord: 2.6ms)

Where can we configure oauth? Or how can we disable it on foreman side?

Thank you,
Cristian Falcas

How are you registering them? If you're using our installer or Puppet
module, then the providers only support OAuth so I'm not sure you'd want
to disable it.

It looks more like the effective_user parameter's blank or there's a bug
in the request.

··· On 30/04/16 17:42, Cristian Falcas wrote: > Hello, > > We get this error on our puppet masters when they try to register to > foreman: > > 2016-04-30 11:28:48 [app] [I] Started GET > "/api/v2/smart_proxies?search=name=%22puppet.company.net > %22" for 10.100.3.70 at 2016-04-30 11:28:48 > -0400 > 2016-04-30 11:28:48 [app] [I] Processing by > Api::V2::SmartProxiesController#index as JSON > 2016-04-30 11:28:48 [app] [I] Parameters: > {"search"=>"name=\"puppet.company.net \"", > "apiv"=>"v2"} > 2016-04-30 11:28:48 [app] [W] Oauth: mapping to user '' failed > 2016-04-30 11:28:48 [app] [W] SSO failed > 2016-04-30 11:28:48 [app] [I] Rendered > api/v2/errors/unauthorized.json.rabl within api/v2/layouts/error_layout > (1.4ms) > 2016-04-30 11:28:48 [app] [I] Filter chain halted as :authorize rendered > or redirected > 2016-04-30 11:28:48 [app] [I] Completed 401 Unauthorized in 23ms (Views: > 6.9ms | ActiveRecord: 2.6ms) > > Where can we configure oauth? Or how can we disable it on foreman side?


Dominic Cleal
dominic@cleal.org