Okay, everything seems to be fine when declared in the spring xml file.

Here's my example :

<bean id="facebookClient" class="org.pac4j.oauth.client.FacebookClient">
<constructor-arg name="key" value="myAppId" />
<constructor-arg name="secret" value="mySecret" />
</bean>
 <bean id="clients" class="org.pac4j.core.client.Clients">
<constructor-arg name="callbackUrl" value="
http://myweb.com:8080/social-callback"; />
<constructor-arg name="clients">
<list>
<ref bean="facebookClient" />
</list>
</constructor-arg>
</bean>
 <bean id="clientsFilter" class="io.buji.pac4j.ClientFilter">
<property name="failureUrl" value="/404.html" />
<property name="clients">
<ref bean="clients" />
</property>
</bean>
 <bean id="clientsRealm" class="io.buji.pac4j.ClientRealm">
<property name="defaultRoles" value="ROLE_USER" />
<property name="clients">
<ref bean="clients" />
</property>
</bean>

But i've encountered a different problem associated with disabledSession
exception,
and i've started a new thread for that.

Thank you !


On Tue, Feb 11, 2014 at 10:59 PM, Albert Kam <[email protected]>wrote:

> Hello again.
>
> I just finished debugging maven issues with pac4j.
> The minor bug was a typo :
> <groupId>org.pac4</groupId>
> <artifactId>pac4j-oauth</artifactId>
>
> I had to try http://central.maven.org/maven2/org/pac4/
> and then http://central.maven.org/maven2/org/pac4j/
> to find out which one is working.
>
> So to fix this, just change from org.pac4 into org.pac4j
>
> Both of this typo exist only at https://github.com/bujiio/buji-pac4j
> but not in https://github.com/leleuj/pac4j
>
> WIll be back for more progress ..
>
>
> On Tue, Feb 11, 2014 at 10:32 PM, Albert Kam <[email protected]>wrote:
>
>> Hello, thanks for the quick helpful response.
>> Yes, i'm currently giving it a go.
>>
>> Sorry for asking before trying.
>> I was a bit clouded after a fail attempt at starting the native session
>> along with the manual login with this approach :
>> http://mrdwnotes.wordpress.com/2011/11/28/using-apache-shiro-security-to-allow-login-via-facebook-part-2/
>>
>> I will be back with the good news.
>>
>>
>>
>> On Tue, Feb 11, 2014 at 10:27 PM, jleleu <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> I must admit that I haven't use Shiro with Spring, but I don't see any
>>> reason why it would not work.
>>> The adaptation seems to be pretty straightforward from:
>>> https://github.com/bujiio/buji-pac4j using:
>>> https://shiro.apache.org/spring.html.
>>> I don't have any example, but I'll be happy if you can post back some
>>> final
>>> Spring config.
>>> Though, if you have any issue, just let me know.
>>> Best regards,
>>> Jérôme
>>>
>>>
>>>
>>> 2014-02-11 16:07 GMT+01:00 Albert Kam [via Shiro User] <
>>> [email protected]>:
>>>
>>> >  Apache shiro has support for spring xml to replace INI configuration.
>>> >
>>> > Is buji-pac4j also supports spring xml configuration ? Or do i have to
>>> mix
>>> > using INI and spring xml in my application ?
>>> >
>>> > And if buji-pac4j supports it, do you sharing a simple example on it ?
>>> >
>>> > Thank you !
>>> >
>>> > --
>>> > Do not pursue the past. Do not lose yourself in the future.
>>> > The past no longer is. The future has not yet come.
>>> > Looking deeply at life as it is in the very here and now,
>>> > the practitioner dwells in stability and freedom.
>>> > (Thich Nhat Hanh)
>>> >
>>> >
>>> > ------------------------------
>>> >  If you reply to this email, your message will be added to the
>>> discussion
>>> > below:
>>> >
>>> >
>>> http://shiro-user.582556.n2.nabble.com/pac4j-buji-spring-xml-support-tp7579628.html
>>> >  To start a new topic under Shiro User, email
>>> > [email protected]
>>> > To unsubscribe from Shiro User, click here<
>>> http://shiro-user.582556.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=582556&code=bGVsZXVqQGdtYWlsLmNvbXw1ODI1NTZ8LTExNzY2MzcxMTY=
>>> >
>>> > .
>>> > NAML<
>>> http://shiro-user.582556.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
>>> >
>>> >
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://shiro-user.582556.n2.nabble.com/pac4j-buji-spring-xml-support-tp7579628p7579629.html
>>> Sent from the Shiro User mailing list archive at Nabble.com.
>>>
>>
>>
>>
>> --
>> Do not pursue the past. Do not lose yourself in the future.
>> The past no longer is. The future has not yet come.
>> Looking deeply at life as it is in the very here and now,
>> the practitioner dwells in stability and freedom.
>> (Thich Nhat Hanh)
>>
>
>
>
> --
> Do not pursue the past. Do not lose yourself in the future.
> The past no longer is. The future has not yet come.
> Looking deeply at life as it is in the very here and now,
> the practitioner dwells in stability and freedom.
> (Thich Nhat Hanh)
>



-- 
Do not pursue the past. Do not lose yourself in the future.
The past no longer is. The future has not yet come.
Looking deeply at life as it is in the very here and now,
the practitioner dwells in stability and freedom.
(Thich Nhat Hanh)

Reply via email to