Project

General

Profile

Actions

Bug #19569

closed

Cannot register a client with a normal user

Added by Justin Sherrill almost 7 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
High
Assignee:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Pgagne, discovered that with this plugin installed, you can no longer register any system with a normal user (admin or otherwise). I do not believe this is intentional.

This seems to be with how the BasicWithHidden SSO module is being used:

https://github.com/theforeman/foreman_virt_who_configure/blob/29a524a1349b1b0f0b8bb2083cafad1ff323ea75/app/services/sso/basic_with_hidden.rb#L4

Steps to reproduce:

Install foreman with the katello and foreman_virt_who_configure plugins
Try to register any client with the 'admin' user (or any other user)

Results:
Unauthorized: Invalid credentials for request.

Note you can also reproduce by simply running:

curl https://hostname.example.com/rhsm/users/admin/owners  -X GET -u admin:changeme

Related issues 1 (1 open0 closed)

Related to virt-who configure - Refactor #19753: Move service users to core and avoid the hackish authentication methodNew06/02/2017Actions
Actions #1

Updated by The Foreman Bot almost 7 years ago

  • Assignee set to Marek Hulán
  • Pull request https://github.com/theforeman/foreman_virt_who_configure/pull/60 added
Actions #2

Updated by Marek Hulán almost 7 years ago

  • translation missing: en.field_release set to 259

Thanks for detailed report. Somehow I didn't receive email notification for this issue and found it today. I sent a workaround but the whole authentication hack should be removed in future and service users should be introduced in core. Reported as #19753

Actions #3

Updated by Marek Hulán almost 7 years ago

  • Related to Refactor #19753: Move service users to core and avoid the hackish authentication method added
Actions #4

Updated by Marek Hulán almost 7 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF