Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
lemonldap-ng
lemonldap-ng
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 244
    • Issues 244
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 2
    • Merge Requests 2
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • LemonLDAP NG
  • lemonldap-nglemonldap-ng
  • Issues
  • #2044

Closed
Open
Opened Dec 17, 2019 by Maxime Besson@maxbes🔧Maintainer

Session upgrade with Auth::SAML

Concerned version

Version: %2.0

Platform: (Nginx/Apache/Node.js)

Summary

  • Configure a SAML identity provider
  • Go to http://auth.example.com
  • Login
  • Go to http://auth.example.com/upgradesession

You are sent back to the portal, but the session isn't upgraded

Logs

[debug] User dwho@idp was granted to access to /saml/proxySingleSignOnPost
[debug] Start routing saml
[debug] Processing _forAuthUser
[debug] Cleaning pdata
[debug] Processing importHandlerData
[debug] Processing controlUrl
[debug] Processing code ref
[debug] Launching ::Auth::Choice::_forAuthUser
[debug] Processing code ref
[debug] Launching ::UserDB::Choice::_forAuthUser
[debug] Processing code ref
[debug] Launching ::Password::Demo::_modifyPassword
[debug] Processing code ref
[debug] Not an issuer request /saml/proxySingleSignOnPost
[debug] Calling autoredirect
[debug] Building redirection to http://auth.example.com/

The SAML auth callback URL (proxySingleSignOnPost) is not picked up.

I have tried forcing the Auth::SAML code to process it:

(Auth/SAML.pm line 1440)

sub handleAuthRequests {
    my ( $self, $req ) = @_;
    if ( $req->uri =~ $self->sloRe or
    $req->uri =~ $self->ssoAssConsumerRe ) {
        return $self->extractFormInfo($req);
    }
    PE_OK;
}

But this only runs the extractFormInfo step. I don't know how to correctly send LLNG back into a real "upgrade" flow. Any ideas?

Assignee
Assign to
3.0.0
Milestone
3.0.0
Assign milestone
Time tracking
None
Due date
None
Reference: lemonldap-ng/lemonldap-ng#2044