Open busharthussain opened 5 years ago
Good day @busharthussain
Simply extend Aacotroneo\Saml2\Http\Controllers\Saml2Controller
and overwrite the login
function providing the desired parameters you want added.
e.g.
public function login()
{
$returnTo = '/';
$parameters = array(); // specify parameters here
...
$this->saml2Auth->login($returnTo, $parameters, $forceAuthn, $isPassive, $stay, $setNameIdPolicy);`
}
I want to add extra paramters in that login function but this function is present in vendor file. how i can send extra paramters in that function before redirect ?
public function login($returnTo = null, array $parameters = array(), $forceAuthn = false, $isPassive = false, $stay = false, $setNameIdPolicy = true) { $authnRequest = new AuthnRequest($this->_settings, $forceAuthn, $isPassive, $setNameIdPolicy);