Renamed MorePublicSaml2SecurityTokenHandler to Saml2PSecurityTokenHandler.
- I've never liked the MorePublic... name, finally come up with something IMHO better as it is a security token handler that is adapted for the SAML2P protocol.
Introduced IOptions interface
- Introduced IOptions interface.
- Added it as a param to ICommand.Run.
- Setting it to null everywhere it's called. This commit does not move any functionality to the new option handling, it just introduces the new interface and the new parameter to Run().
Removed AcsCommand's dependency on KentorAuthServicesSection.Current.
- Created options classes.
- Made existing KentorAuthServicesSection implement the ISPOptions interface for simple reuse.
- Made existing KentorAuthServicesAuthenticationOptions for owin implement the base IOptions interface for simple reuse.
- Added null check tests for AcsCommand.Run's parameters.
- Made sure all existing tests passed - meaning the options param must be correctly inited.
Added nullcheck to AcsCommand.Run for request param.
- Improved test case to ensure that Run actually tests this itself and not just relies on the downstream UnBind() call to do it.
Refactored AcsCommand.Run by extracting helper method.
- With the new null checks the method body had become too long.