ubuntu / authd

Authentication daemon for external Brokers
GNU Lesser General Public License v3.0
58 stars 8 forks source link

Display a meaningful error when no tenant is configured #481

Open jibel opened 3 weeks ago

jibel commented 3 weeks ago

Test Case

  1. Remove the client_id and the issuer from broker.conf so you just have the sections
[oidc]

[users]
  1. Login with a remote user
  2. Select a broker other than local

Expected result

An error is displayed that a user can understand

Actual result

root@ls:~# login user@domain.tld
  Select your provider

  1. local
> 2. Microsoft Entra ID

can't select broker: The name com.ubuntu.authd.MSEntraID was not provided by any .service files

Login incorrect
ls login:
denisonbarbosa commented 3 weeks ago

This is not something that we can show on authd. If you don't have these values configured, the broker service won't even start, so you should take a look at the service logs for the broker instead.

adombeck commented 3 weeks ago

Similar issue: https://github.com/ubuntu/authd/issues/466