Re: infoglue login / logout / invalid login logic
astik <[email protected]>
| Newsgroups | gmane.comp.cms.infoglue.devel |
|---|---|
| Message-ID | <[email protected]> |
Extranet login use the authentication module define for the deliver.
By default, it use the BasicInfoglueAuthenticationModule informations
which looks for user information into IG database.
There is nothing else to do.
If you define your own module, check its behavior in debug mode.
__
Romain
http://blog.astik.info
Le 14 oct. 2009 à 15:26, eric galant a écrit :
> Thank,
> so when I use a correct login and password, Infoglue say :
> "Extranet login:
> The logon information given was incorrect, please verify and try
> again."
>
> May be I didn't anderstand how use ExtranetLogin ?
> And How handling the login ?
>
> Thank for helps.
>
> Eric
>
> astik a écrit :
>> Here is a login component :
>>
>> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
>> <form action="ExtranetLogin!authenticateUser.action" method="post">
>> <input type="hidden" name="returnAddress" value="<c:out value="$
>> {param.returnAddress}" />" />
>> <label>
>> <strong>LOGIN</strong>
>> <input type="text" name="j_username" />
>> </label>
>> <label>
>> <strong>PASSWORD</strong>
>> <input type="password" name="j_password" />
>> </label>
>> <input type="submit" />
>> </form>
>>
>>
>>
>>
>>
>> Le 14 oct. 2009 à 11:21, eric galant a écrit :
>>
>>
>>> Hi,
>>> How I configure infoglue if i want a login form into my website ?
>>> Do I modify a ServerNode properties ?
>>>
>>> Thanks,
>>>
>>> Eric Galant
>>>
>>> astik a écrit :
>>>
>>>> Hi all,
>>>> I'm having some issues with handling login logic ... I don't know
>>>> if
>>>> I'm doing it well or not =/
>>>> I d'ont want my login form to be the default infoglue one, but i
>>>> want
>>>> a login form into my website.
>>>>
>>>> The url is ViewPage.action?siteNodeId=20 defined into repository
>>>> properties :
>>>> loginUrl=ViewPage.action?siteNodeId=20
>>>>
>>>> It works great for login.
>>>> For logout, i just have to give the returnAddress in url parameter
>>>> and
>>>> it works too.
>>>>
>>>> Problem is with invalid login.
>>>>
>>>> Here is what happen :
>>>> - user tries to access a protected page
>>>> - ViewPageFilter forwards to ViewPageAction
>>>> -ViewPageAction call handleExtranetLogic method which uses
>>>> getRedirectUrl method
>>>> - getRedirectUrl method load the url from the authenticationModule
>>>> and
>>>> is overload by the repositoryLoginUrl
>>>> - login form displayed on loginUrl
>>>> - user submit login form, the form action is : ExtranetLogin!
>>>> authenticateUser.action ... it uses
>>>> org.infoglue.deliver.applications.actions.ExtranetLoginAction.class
>>>> - if user credentials are good, user is redirected to
>>>> returnAddress,
>>>> if not invalidLogin is return and webwork redirects user to /
>>>> deliver/
>>>> extranetLoginError.vm
>>>>
>>>> I'd prefer to redirect user on my dynamic page instead of the
>>>> infoglue
>>>> velocity page.
>>>>
>>>> Is there a way to define othere url like logoutUrl,
>>>> invalidLoginUrl,
>>>> noAccess into repository settings ?
>>>>
>>>> Right now, I'm on my way to re-write ExtranetLoginAction to make it
>>>> work the way i want to. I would have like to inherit from this
>>>> class,
>>>> but it is a final one, so I can't inherit ='(
>>>>
>>>> Any idea to make this easier ?
>>>>
>>>> __
>>>> Romain
>>>> http://blog.astik.info
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Let Crystal Reports handle the reporting - Free Crystal Reports
>>>> 2008 30-Day
>>>> trial. Simplify your report design, integration and deployment -
>>>> and focus on
>>>> what you do best, core application coding. Discover what's new with
>>>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>>>> _______________________________________________
>>>> Infoglue-developer mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/infoglue-developer
>>>>
>>>>
>>>>
>>> ------------------------------------------------------------------------------
>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>> is the only developer event you need to attend this year. Jumpstart
>>> your
>>> developing skills, take BlackBerry mobile applications to market and
>>> stay
>>> ahead of the curve. Join us from November 9 - 12, 2009. Register
>>> now!
>>> http://p.sf.net/sfu/devconference
>>> _______________________________________________
>>> Infoglue-developer mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/infoglue-developer
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart
>> your
>> developing skills, take BlackBerry mobile applications to market
>> and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Infoglue-developer mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/infoglue-developer
>>
>>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart
> your
> developing skills, take BlackBerry mobile applications to market and
> stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Infoglue-developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/infoglue-developer
>
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference