Bug 1159373
| Summary: | IDM Subsystem doesn't authenticate users | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Jan Tymel <jtymel> | ||||||
| Component: | PicketLink | Assignee: | Pedro Igor <psilva> | ||||||
| Status: | CLOSED NOTABUG | QA Contact: | Jan Tymel <jtymel> | ||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 6.4.0 | CC: | anmiller, hmlnarik, psilva, pskopek | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2014-11-05 09:46:31 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
|
Description
Jan Tymel
2014-10-31 17:24:27 UTC
Hi Jan,
Your example is missing some bits. Let me try to give you some background first.
When you are consuming a PartitionManager managed by the subsystem you must tell your application to use it instead of the default that is created by PicketLink if you don't provide any.
To specify which PartitionManager to use you need to provide a @Producer annotated with the @PicketLink qualfier as follows:
public class IdentityManagementConfiguration {
@Resource(mappedName = "picketlink/JpaBasedPartitionManager")
@Produces
@PicketLink
private PartitionManager partitionManager;
}
Basically, the code above is injecting the PM managed by the subsystem (obtained from JNDI) and producing it to your application.
This is not related with PL subsystem, but how PicketLink works. For more details, please take a look at this documentation [1].
Also, I had to add the following property to your app's META
-INF/persistence.xml:
<property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
Please, let me know if this is enough to get your tests working. You can also take a look at my attachment with all changes I did to get it working.
Thanks.
[1] http://docs.jboss.org/picketlink/2/latest/reference/html-single/#Providing_a_Custom_Configuration
Created attachment 952574 [details]
Working WAR.
Rostislav Svoboda <rsvoboda> updated the status of jira EAP6-182 to Resolved Hi Pedro, thanks for your hints and background, it has been working as expected now. However the case using custom PartitionManager should be documented explicitly (apart from the programmatic produce of PartitionManager). Closing as NOTABUG |