Skip to content

Not getting username and email from authenticating with Authelia OIDC #429

@brunobeeee

Description

@brunobeeee

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions