You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by MAD789 <ma...@gmail.com> on 2009/08/20 11:38:14 UTC
Integration of Roller with website
Hi ,
I am new to Roller. i downloaded and istatlled as per the Guides
provided.now my prob is how i can integrate roller with mysite.
my problems are
a) how to make a user login to our site at the same time user has able to
login to roller
with respect to session etc.
b)please provide step by step guide if u have .
bcz i am struggling for 2 days. i found in forums by changing in
security.xml we can achive . but i am unable to finf any solution.
THanks in adv ... thanks
--
View this message in context: http://www.nabble.com/Integration-of-Roller-with-website-tp25058916s12275p25058916.html
Sent from the Roller - User mailing list archive at Nabble.com.
Re: Integration of Roller with website
Posted by MAD789 <ma...@gmail.com>.
Thanks mraible..
i will try to impement that logic in a customized filter and call it that
along with Acegi filters.
i will reply to u,if is there any issue
MAD789 wrote:
>
>
>
> mraible wrote:
>>
>> You could probably write a custom Authentication Provider for Spring
>> Security so it recognizes your session. Here's how I've programmatically
>> logged into Spring Security in the past (from an unprotected Action in
>> the
>> same webapp).
>>
>> UsernamePasswordAuthenticationToken auth = new
>> UsernamePasswordAuthenticationToken(
>> user.getUsername(), user.getConfirmPassword(),
>> user.getAuthorities());
>> auth.setDetails(user);
>> SecurityContextHolder.getContext().setAuthentication(auth);
>>
>> Hope this helps,
>>
>> Matt
>>
>> On Fri, Aug 21, 2009 at 1:58 AM, MAD789 <ma...@gmail.com> wrote:
>>
>>>
>>> Thanks Mraible . But my site is running on jsp's i.e 2 tier
>>> architecture.
>>> there is only Db authentication for users . once db authenticated .then
>>> in
>>> login.jsp we create a httpsession with the credentials .
>>>
>>> that was the prob . we are not using any CAS and LDAP. if i deploy the
>>> roller.war in different server. is there any possibility to get the
>>> session
>>> of the login.jsp to the Roller. means writing a filter with acegi(before
>>> logining into roller and directly accessing the home page of roller
>>> user)
>>> of roller to check the httpsession like that....
>>>
>>> thanks in adv
>>>
>>> mraible wrote:
>>> >
>>> > What are you using for Security on your own site? Container-managed
>>> > authentication or Spring Security per chance? The best way to
>>> integrate
>>> > Roller with some sort of single sign-on system is to use CAS.
>>> >
>>> >
>>> http://cwiki.apache.org/confluence/display/ROLLER/Roller+4.0+with+LDAP+and+CAS
>>> >
>>> > Matt
>>> >
>>> > On Thu, Aug 20, 2009 at 5:38 AM, MAD789 <ma...@gmail.com>
>>> wrote:
>>> >
>>> >>
>>> >> Hi ,
>>> >>
>>> >> I am new to Roller. i downloaded and istatlled as per the Guides
>>> >> provided.now my prob is how i can integrate roller with mysite.
>>> >> my problems are
>>> >> a) how to make a user login to our site at the same time user has
>>> able
>>> to
>>> >> login to roller
>>> >> with respect to session etc.
>>> >> b)please provide step by step guide if u have .
>>> >> bcz i am struggling for 2 days. i found in forums by changing in
>>> >> security.xml we can achive . but i am unable to finf any solution.
>>> >>
>>> >> THanks in adv ... thanks
>>> >>
>>> >> --
>>> >> View this message in context:
>>> >>
>>> http://www.nabble.com/Integration-of-Roller-with-website-tp25058916s12275p25058916.html
>>> >> Sent from the Roller - User mailing list archive at Nabble.com.
>>> >>
>>> >>
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Integration-of-Roller-with-website-tp25058916s12275p25074538.html
>>> Sent from the Roller - User mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Integration-of-Roller-with-website-tp25058916s12275p25111322.html
Sent from the Roller - User mailing list archive at Nabble.com.
Re: Integration of Roller with website
Posted by MAD789 <ma...@gmail.com>.
mraible wrote:
>
> You could probably write a custom Authentication Provider for Spring
> Security so it recognizes your session. Here's how I've programmatically
> logged into Spring Security in the past (from an unprotected Action in the
> same webapp).
>
> UsernamePasswordAuthenticationToken auth = new
> UsernamePasswordAuthenticationToken(
> user.getUsername(), user.getConfirmPassword(),
> user.getAuthorities());
> auth.setDetails(user);
> SecurityContextHolder.getContext().setAuthentication(auth);
>
> Hope this helps,
>
> Matt
>
> On Fri, Aug 21, 2009 at 1:58 AM, MAD789 <ma...@gmail.com> wrote:
>
>>
>> Thanks Mraible . But my site is running on jsp's i.e 2 tier
>> architecture.
>> there is only Db authentication for users . once db authenticated .then
>> in
>> login.jsp we create a httpsession with the credentials .
>>
>> that was the prob . we are not using any CAS and LDAP. if i deploy the
>> roller.war in different server. is there any possibility to get the
>> session
>> of the login.jsp to the Roller. means writing a filter with acegi(before
>> logining into roller and directly accessing the home page of roller user)
>> of roller to check the httpsession like that....
>>
>> thanks in adv
>>
>> mraible wrote:
>> >
>> > What are you using for Security on your own site? Container-managed
>> > authentication or Spring Security per chance? The best way to integrate
>> > Roller with some sort of single sign-on system is to use CAS.
>> >
>> >
>> http://cwiki.apache.org/confluence/display/ROLLER/Roller+4.0+with+LDAP+and+CAS
>> >
>> > Matt
>> >
>> > On Thu, Aug 20, 2009 at 5:38 AM, MAD789 <ma...@gmail.com>
>> wrote:
>> >
>> >>
>> >> Hi ,
>> >>
>> >> I am new to Roller. i downloaded and istatlled as per the Guides
>> >> provided.now my prob is how i can integrate roller with mysite.
>> >> my problems are
>> >> a) how to make a user login to our site at the same time user has able
>> to
>> >> login to roller
>> >> with respect to session etc.
>> >> b)please provide step by step guide if u have .
>> >> bcz i am struggling for 2 days. i found in forums by changing in
>> >> security.xml we can achive . but i am unable to finf any solution.
>> >>
>> >> THanks in adv ... thanks
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Integration-of-Roller-with-website-tp25058916s12275p25058916.html
>> >> Sent from the Roller - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Integration-of-Roller-with-website-tp25058916s12275p25074538.html
>> Sent from the Roller - User mailing list archive at Nabble.com.
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Integration-of-Roller-with-website-tp25058916s12275p25111298.html
Sent from the Roller - User mailing list archive at Nabble.com.
Re: Integration of Roller with website
Posted by Matt Raible <ma...@raibledesigns.com>.
You could probably write a custom Authentication Provider for Spring
Security so it recognizes your session. Here's how I've programmatically
logged into Spring Security in the past (from an unprotected Action in the
same webapp).
UsernamePasswordAuthenticationToken auth = new
UsernamePasswordAuthenticationToken(
user.getUsername(), user.getConfirmPassword(),
user.getAuthorities());
auth.setDetails(user);
SecurityContextHolder.getContext().setAuthentication(auth);
Hope this helps,
Matt
On Fri, Aug 21, 2009 at 1:58 AM, MAD789 <ma...@gmail.com> wrote:
>
> Thanks Mraible . But my site is running on jsp's i.e 2 tier architecture.
> there is only Db authentication for users . once db authenticated .then in
> login.jsp we create a httpsession with the credentials .
>
> that was the prob . we are not using any CAS and LDAP. if i deploy the
> roller.war in different server. is there any possibility to get the session
> of the login.jsp to the Roller. means writing a filter with acegi(before
> logining into roller and directly accessing the home page of roller user)
> of roller to check the httpsession like that....
>
> thanks in adv
>
> mraible wrote:
> >
> > What are you using for Security on your own site? Container-managed
> > authentication or Spring Security per chance? The best way to integrate
> > Roller with some sort of single sign-on system is to use CAS.
> >
> >
> http://cwiki.apache.org/confluence/display/ROLLER/Roller+4.0+with+LDAP+and+CAS
> >
> > Matt
> >
> > On Thu, Aug 20, 2009 at 5:38 AM, MAD789 <ma...@gmail.com> wrote:
> >
> >>
> >> Hi ,
> >>
> >> I am new to Roller. i downloaded and istatlled as per the Guides
> >> provided.now my prob is how i can integrate roller with mysite.
> >> my problems are
> >> a) how to make a user login to our site at the same time user has able
> to
> >> login to roller
> >> with respect to session etc.
> >> b)please provide step by step guide if u have .
> >> bcz i am struggling for 2 days. i found in forums by changing in
> >> security.xml we can achive . but i am unable to finf any solution.
> >>
> >> THanks in adv ... thanks
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Integration-of-Roller-with-website-tp25058916s12275p25058916.html
> >> Sent from the Roller - User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Integration-of-Roller-with-website-tp25058916s12275p25074538.html
> Sent from the Roller - User mailing list archive at Nabble.com.
>
>
Re: Integration of Roller with website
Posted by MAD789 <ma...@gmail.com>.
Thanks Mraible . But my site is running on jsp's i.e 2 tier architecture.
there is only Db authentication for users . once db authenticated .then in
login.jsp we create a httpsession with the credentials .
that was the prob . we are not using any CAS and LDAP. if i deploy the
roller.war in different server. is there any possibility to get the session
of the login.jsp to the Roller. means writing a filter with acegi(before
logining into roller and directly accessing the home page of roller user)
of roller to check the httpsession like that....
thanks in adv
mraible wrote:
>
> What are you using for Security on your own site? Container-managed
> authentication or Spring Security per chance? The best way to integrate
> Roller with some sort of single sign-on system is to use CAS.
>
> http://cwiki.apache.org/confluence/display/ROLLER/Roller+4.0+with+LDAP+and+CAS
>
> Matt
>
> On Thu, Aug 20, 2009 at 5:38 AM, MAD789 <ma...@gmail.com> wrote:
>
>>
>> Hi ,
>>
>> I am new to Roller. i downloaded and istatlled as per the Guides
>> provided.now my prob is how i can integrate roller with mysite.
>> my problems are
>> a) how to make a user login to our site at the same time user has able to
>> login to roller
>> with respect to session etc.
>> b)please provide step by step guide if u have .
>> bcz i am struggling for 2 days. i found in forums by changing in
>> security.xml we can achive . but i am unable to finf any solution.
>>
>> THanks in adv ... thanks
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Integration-of-Roller-with-website-tp25058916s12275p25058916.html
>> Sent from the Roller - User mailing list archive at Nabble.com.
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Integration-of-Roller-with-website-tp25058916s12275p25074538.html
Sent from the Roller - User mailing list archive at Nabble.com.
Re: Integration of Roller with website
Posted by Matt Raible <ma...@raibledesigns.com>.
What are you using for Security on your own site? Container-managed
authentication or Spring Security per chance? The best way to integrate
Roller with some sort of single sign-on system is to use CAS.
http://cwiki.apache.org/confluence/display/ROLLER/Roller+4.0+with+LDAP+and+CAS
Matt
On Thu, Aug 20, 2009 at 5:38 AM, MAD789 <ma...@gmail.com> wrote:
>
> Hi ,
>
> I am new to Roller. i downloaded and istatlled as per the Guides
> provided.now my prob is how i can integrate roller with mysite.
> my problems are
> a) how to make a user login to our site at the same time user has able to
> login to roller
> with respect to session etc.
> b)please provide step by step guide if u have .
> bcz i am struggling for 2 days. i found in forums by changing in
> security.xml we can achive . but i am unable to finf any solution.
>
> THanks in adv ... thanks
>
> --
> View this message in context:
> http://www.nabble.com/Integration-of-Roller-with-website-tp25058916s12275p25058916.html
> Sent from the Roller - User mailing list archive at Nabble.com.
>
>