-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert \SAML2\Configuration\IdentityProvider to interface #30
Comments
@DRvanR thoughts? |
Most if not all of the methods should already be covered by the existing interfaces. If that is not the case, then that should be fixed (either by adding new or expanding current interfaces). The reason for having these classes is to ease the adoption of this library in the framework it spun off of and by now there are some applications that rely on these classes to exist, converting them to an interface creates two issues: it adds the requirement to always create an implementation as there is no longer a functional default implementation, and it is a major BC break. Both are issues that in my mind should be avoided. By using and expanding the interfaces as illustrated above, these issues are alleviated. So I agree all typehints must be replaced by interfaces, but I do not agree that these classes should be converted to interfaces 😉 |
As you mentioned, just converting the classes to interfaces is a BC break. Introducing new interfaces seems to be a good alternative. |
To me that is an acceptable solution, at the same time the The rationale for having interfaces with an without But as said, that is just my opinion, @relaxnow and @jaimeperez probably need to weigh in on such decisions. As an aside, in the mean time you can always use the classes provided as DTO's, we do the same in another project where the Response processing is actually being used. Cheers! |
We are about 5 years later and much has changed in this regard. Is the need for dedicated interfaces for the ServiceProvider and IdentityProvider classes still an issue? From what I saw in In my personal opinion, the introduction of a IdP and SP interface is still valuable as we can further decouple dependencies on hard implementations. I personally opt for an IdentityProviderInterface and an ServiceProviderInterface, that in turn extend the @jaimeperez, @tvdijen what are your thoughts on this? Also in the naming of the interfaces.. |
Just had a discussion IRL about the future of the IdP and SP classes in the SAML2 library. We should investigate if these concepts should be in the SAML2 lib in the first place. They now are only used by the SimpleSAMLphp project and possibly do not add much value to the library. |
I'd like to integrate this library into my application. However,
\SAML2\Configuration\IdentityProvider
and\SAML2\Configuration\ServiceProvider
are classes.Is there any interest in converting them to pure interfaces such that one can implement completely custom service/identity provider configuration classes (not based on arrays)? If so, should I submit a pull-request and rename the existing class to
QueryableIdentityProvider
?Intent: We'd like to use
\SAML2\Assertion\ProcessorBuilder
to validate our assertions.The text was updated successfully, but these errors were encountered: