dev@glassfish.java.net

Re: The security not work.

From: Dyego Souza Dantas Leal <dyego.leal_at_gmail.com>
Date: Mon, 22 May 2006 15:26:35 -0300

Shing Wai Chan escreveu:
>
>
> Dyego Souza Dantas Leal wrote On 05/17/06 01:56 PM,:
>
>> I have this lines in my web.xml
>>
>> <security-role>
>> <role-name>test</role-name>
>> </security-role>
>>
>> <security-constraint>
>> <display-name>Security Test</display-name>
>> <web-resource-collection>
>> <web-resource-name>AcessosGerais</web-resource-name>
>> <url-pattern>/welcomeJSF.jsp</url-pattern>
>> <url-pattern>/faces/welcomeJSF.jsp</url-pattern>
>> <http-method>GET</http-method>
>> <http-method>POST</http-method>
>> <http-method>HEAD</http-method>
>> <http-method>PUT</http-method>
>> <http-method>OPTIONS</http-method>
>> <http-method>TRACE</http-method>
>> <http-method>DELETE</http-method>
>> </web-resource-collection>
>> <auth-constraint>
>> <role-name>test</role-name>
>> </auth-constraint>
>> </security-constraint>
>>
>> <login-config>
>> <auth-method>FORM</auth-method>
>> <realm-name>dbAuth</realm-name>
>> <form-login-config>
>> <form-login-page>/login.jsp</form-login-page>
>> <form-error-page>/loginerr.jsp</form-error-page>
>> </form-login-config>
>> </login-config>
>>
>>
>>
>>
>> But, if the user access localhost/welcomeJSF.jsp the security
>> container does not call LOGIN FORM !!!!
>
> What is the context root in your application?
> Is it suppose to be localhost/<context-root>/welcomeJSF.jsp?



Yes , the situation is very strange , because i Download the b02 of v2
glassfish and goto admin page , but the Admin Console not prompted to me
the login !!!

I'm powerfull acess to administration ins't login...

If press the "logout" button , this not work... only admin page is
refreshed...

is a bug ?


>
>>
>> Is very strange... because the administration not call LOGIN too !!!
>>
>> Is default disabled ?
>>
>> My web.xml is wrong ?
>>
>> How to enable this feature?
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>
>


-- 
-------------------------------------------------------------------------
++  Dyego Souza Dantas Leal   ++           Dep. Desenvolvimento   -------------------------------------------------------------------------
               E S C R I B A   I N F O R M A T I C A
        ***        http://javacoffe.blogspot.com        ***
-------------------------------------------------------------------------
The only stupid question is the unasked one (somewhere in Linux's HowTo)
Linux registred user : #230601
--                                        ICQ   : 1647350
$ look into "my eyes"                     Phone : +55 041 2106-1212    
look: cannot open my eyes                 Fax   : +55 041 3296-6640     -------------------------------------------------------------------------
             Reply: dyego_at_escriba.com.br