Drupal login cannot happen after Saml Auth Login

Created on 19 June 2024, 9 days ago

I have implemented SAML authentication settings in my project but when I want to check it, SAML login is happend but when I want to check current user id by \Drupal::currentUser()->id(); => it shows 0. For this reason I could not implement authenticate checking in every webform,

πŸ’¬ Support request
Status

Active

Version

3.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Jana Shreyasee
  • πŸ‡³πŸ‡±Netherlands roderik Amsterdam,NL / Budapest,HU

    "SAML login is happend"

    "\Drupal::currentUser()->id(); => it shows 0"

    These two things are mutually exclusive.

    When SAML login happens (i.e. you arrive back at the /saml/acs endpoint and the login is processed), SamlService code eventually always throws an error, or calls $this->externalAuth->userLoginFinalize(). (See the code, if curious.)

    After $this->externalAuth->userLoginFinalize() is called, the current user must never be 0.

    I don't know what else to tell you.

Production build 0.69.0 2024