OpenID + HTTPBasicAuth : No UserID found for 'username'

Moderator: crythias

Post Reply
alipioluiz
Znuny newbie
Posts: 13
Joined: 26 Mar 2019, 16:15
Znuny Version: 6.0.17

OpenID + HTTPBasicAuth : No UserID found for 'username'

Post by alipioluiz »

Hey,
I'm trying to authenticate and authorize external database customers (keycloak) using openid connect and HTTPBasicAuth as described here: viewtopic.php?t=42397

However, after authentication, the message 'No UserID found for 'customer_username' appears.. because these users do not exist in the otrs users table..

How can I configure correctly?
root
Administrator
Posts: 4011
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: OpenID + HTTPBasicAuth : No UserID found for 'username'

Post by root »

Hi,

The linked post describes how it's done for agents, not customer users.
Let's start with the basics. Have you verified that the opened configuration works? Typically the username is shown in the access log.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
alipioluiz
Znuny newbie
Posts: 13
Joined: 26 Mar 2019, 16:15
Znuny Version: 6.0.17

Re: OpenID + HTTPBasicAuth : No UserID found for 'username'

Post by alipioluiz »

Hi, root.
I adapted for customers. I've made all configuration lile the linked post and changed Config.pm to use CustomerAuth::HTTPBasicAuth.

The OpenID connection is working..Access log is showing all variables from apache2+openidc, and I'm using OIDC_CLAIM_preferred_username in $User.

No UserID found for 'username'
username is the value of OIDC_CLAIM_preferred_username.
root
Administrator
Posts: 4011
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: OpenID + HTTPBasicAuth : No UserID found for 'username'

Post by root »

Hi,

The it is like the message said: there is no customer user with this login name.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
alipioluiz
Znuny newbie
Posts: 13
Joined: 26 Mar 2019, 16:15
Znuny Version: 6.0.17

Re: OpenID + HTTPBasicAuth : No UserID found for 'username'

Post by alipioluiz »

I managed to get it working. I had to add an authentication module based on HTTPBasicAuth that checks if the user exists; otherwise, it creates the user during the authorization process.

Thanks.
Post Reply