OpenSAML how-to: adding transport to context
Brent Putman
putmanb at georgetown.edu
Wed May 20 15:13:13 EDT 2015
On 5/20/15 2:22 PM, Misagh Moayyed wrote:
> Sure, but on the idp side, I am not finding anything that explicitly
> defines the set of algorithms that are passed to that instance. Are they
> retrieved from "shibboleth.DefaultSecurityConfiguration"?
Scott already described the general mechanism. For each of the 4 cases
of signing, validation, encryption and decryption, you pass 1 or more
instances of a corresponding -Configuration into a -Resolver to produce
a -Parameters instance.
Btw, the SAML Metadata-aware versions of the signing and encryption
-Resolvers will also pull algorithm preferences from the peer's SAML
metadata, if they are present present and as long as the relevant
config whitelist/blacklist policy doesn't exclude them from consideration.
It's pretty sophisticated and flexible. But all of that is decoupled
from the contract you honor for purposes of the signing handler (and
the other handlers). All it cares about is that the -Parameters
instance is in the MessageContext. So you can populate that anyway you
want.
> and in the code
> deemed to be the same as signatureAlgorithms?
No, those are only the signature/HMAC algorithms. C14N has its own
config and params slot called signatureCanonicalizationAlgorithm.
>
> I ask because "BasicSignatureSigningParametersResolver" requires those to
> pass validate, and I am not seeing how they are set by the idp to begin
> with.
You may not see the c14n algorithms explicitly declared in the IdP
wiring, I don't remember. Most of the config "slots" have OpenSAML
library-wide defaults stored in global -Configuration instances
available in the ConfigurationService (after initialization), so
declaring them in the IdP is optional unless you want to override or
make them explicit. If you want to see what those default values are,
look at DefaultSecurityConfigurationBootstrap in xmlsec-impl. You can
get at those global -Configuration instances easily with
SecurityConfigurationSupport in xmlsec-api
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20150520/ef4c9979/attachment-0001.html>
More information about the dev
mailing list