I have a Zend project where users login through a login page backed by a database. I have implemented IdP initiated SSO functionality using simplesamlphp.
Current flow of the events is :-
What I want simplesaml to do is following :-
But I am unable to find any method to do so. Please help.
To solve this, I initiated the simplesaml session before making user login using
SimpleSAML_Session::getInstance();
//This method makes the $_SESSION empty and stores the required session parameters it wants.
After this I stored the user's login credentials on the session. I don't know if this is the best way to solve this.