Problem/Motivation
While on this path admin/config/people/saml_sp/setup I ran into this warning:
Warning: Declaration of saml_sp_Auth::login($returnTo = NULL, array $parameters = Array, $forceAuthn = false, $isPassive = false, $stay = false, $setNameIdPolicy = true) should be compatible with OneLogin\Saml2\Auth::login($returnTo = NULL, array $parameters = Array, $forceAuthn = false, $isPassive = false, $stay = false, $setNameIdPolicy = true, $nameIdValueReq = NULL)
Proposed resolution
Add this additional parameter
, $nameIdValueReq = NULL
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3156832-2.patch | 4.95 KB | joelpittet |
Comments
Comment #2
joelpittetTurned into a bigger patch because
_lastRequestIDand_lastRequestare private now and can't be written to directly.I removed the saml_sp_AuthnRequest class because it seemed redundant and called the parent::login() and got the variables filled in different ways.
Comment #3
jrglasgow commentedThe saml_sp_AuthnRequest class is there specifically for the debugging options and I won't commit the patch with it out of the chain unless you have a better option for debugging the AuthN request. Specifically I want a way to output the complete XML for the request so it can both be read by a developer working on debugging and easily put into a validator like this one https://www.samltool.com/validate_authn_req.php
Comment #4
joelpittet@jrglasgow Thanks for the quick response.
I moved the debugging that
saml_sp_AuthnRequest, sorry I should have mentioned it was a end of the day rush to post the code, so didn't lose it, just moved it up. The idea is that it would save you from maintaining one less class that apparently has interface changes every so often:Comment #5
joelpittetThoughts? @jrglasgow And could 3.x get a dev branch?
Comment #6
jrglasgow commented@joelpettit
I have added you as a maintainer to make it easier for you to get your changes in.
Comment #7
joelpittetThanks @jrglasgow!
Comment #8
joelpittet