20 Apr 2012 08:58
issue trying to put OAuth in Seam Security External
Hi all,
Antoine SABOT-DURAND
I worked on OAuth integration in Seam Security.
Markek provided some code in Seam Social but I found it more relevant to put it in Security. So I moved and refactored the Authenticator in Seam Security External. Everything seems ok but I can't start the Web example application having this exception.
org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [SamlSignatureUtilForPostBinding] with qualifiers [ <at> Default] at injection point [[field] <at> Inject private org.jboss.seam.security.external.saml.SamlMessageSender.signatureUtilForPostBinding]
I tested my security classes directly in the web app : it works. So I can't put them in external since I need to configure unrelated beans to avoid Weld error at boot time.
I pushed the code for others to test. Start with example/oauth web app. The version works. If you delete org.jboss.seam.security.external.oauth and org.jboss.seam.security.external.oauth.api package from the web app and add security-external (which contains the same classes) as a dependence you'll have the exception.
regards,
Antoine SABOT-DURAND
<div>Hi all,<div><br></div> <div>I worked on OAuth integration in Seam Security.</div> <div><br></div> <div>Markek provided some code in Seam Social but I found it more relevant to put it in Security. So I moved and refactored the Authenticator in Seam Security External. Everything seems ok but I can't start the Web example application having this exception.</div> <div><br></div> <div><div> <span>org.jboss.weld.exceptions.DeploymentException</span>: WELD-001408 Unsatisfied dependencies for type [SamlSignatureUtilForPostBinding] with qualifiers [ <at> Default] at injection point [[field] <at> Inject private org.jboss.seam.security.external.saml.SamlMessageSender.signatureUtilForPostBinding]</div></div> <div><br></div> <div>I tested my security classes directly in the web app : it works. So I can't put them in external since I need to configure unrelated beans to avoid Weld error at boot time. </div> <div><br></div> <div>I pushed the code for others to test. Start with example/oauth web app. The version works. If you delete org.jboss.seam.security.external.oauth and org.jboss.seam.security.external.oauth.api package from the web app and add security-external (which contains the same classes) as a dependence you'll have the exception.</div> <div><br></div> <div>regards,</div> <div> <br><div apple-content-edited="true"> <span class="Apple-style-span"><div><span class="Apple-style-span"><div><span class="Apple-style-span"><div><div><div><div><div> <br class="Apple-interchange-newline">Antoine SABOT-DURAND<br> </div></div></div></div></div></span></div></span></div></span> </div> </div> </div>
RSS Feed