split-pro icon indicating copy to clipboard operation
split-pro copied to clipboard

Not getting username and email from authenticating with Authelia OIDC

Open brunobeeee opened this issue 2 months ago • 1 comments

Describe the bug I want my users to authenticate with my authelia instance. The authentication process works and I can login in splitpro. But my username and email don't get forwarded to splitpro. When I look into the db the entry looks like this:

id,name,email,emailVerified,image,currency,preferredLanguage
1,,,,,USD,en

To Reproduce Steps to reproduce the behavior:

  1. Configure OIDC related env vars in splitpro's .env.
OIDC_NAME=authelia
OIDC_CLIENT_ID=split-pro
OIDC_CLIENT_SECRET=****
OIDC_WELL_KNOWN_URL=https://auth.example.com/.well-known/openid-configuration
OIDC_ALLOW_DANGEROUS_EMAIL_LINKING=1
  1. Add splitpro as client to authelias configuration.yml.
  clients:
    -
     client_id: 'split-pro'
      client_secret: '*****'
      redirect_uris:
        - 'https://splitpro.example.com/api/auth/callback/authelia'
      scopes:
        - 'openid'
        - 'profile'
        - 'email'
  1. Login to splitpro using authelia.
  2. Look at your profile or the db to see that the username and email aren't transferred from authelia.

Expected behavior My splitpro account fetches username and email from authelia when logging in the first time. I want to use the dangerous email linking feature so it's nessecary for me to at least have the email.

Thank you very much for your help!

App version v1.5.3

Desktop (please complete the following information):

  • OS: macOS
  • Browser Firefox

brunobeeee avatar Oct 16 '25 09:10 brunobeeee

Hm, I believe this works with other providers, even OIDC ones, so it must be some Authelia specific issues. Unfortunately, I don't have an Authelia instance and can't afford to support all of the myriad auth providers out there. If you can find a fix for that yourself, I can accept a PR tho.

krokosik avatar Oct 19 '25 13:10 krokosik