Forum Discussion
karthik_sriniva
Nimbostratus
Apr 09, 2005Authentication status
Hi,
Is there a way to check the status of Authentication, if it's success, failure or etc after the call [AUTH::authenticate $tmm_auth_radius_sid].
I would like to know before the AUTH_SUCCESS or AUTH_FAIL event is fired
Thanx.
- karthik_sriniva
Nimbostratus
Hi, - karthik_sriniva
Nimbostratus
I would appreciate if someone could let me know, if it's possible to check the status of Authentication call. - Tao_Liu_90341Historic F5 AccountThere is no command to retrieve the status of ongoing transaction so far. Once it is rejected or succeeds, relevant EVENT will be triggered, which are AUTH_SUCCESS and AUTH_FAILURE.
- karthik_sriniva
Nimbostratus
Thanks for your clarification. The problem I am facing is, if I put the redirect - Tao_Liu_90341Historic F5 AccountSend your complete rule here, let's take a look.
- karthik_sriniva
Nimbostratus
Please find below the complete iRule. I tried to add comments, but I think the rule is too simple to need additional documentation for you guru's - Tao_Liu_90341Historic F5 AccountI c what you want to do. Per your question, you need to add HTTP::collect after calling AUTH::authenticate, otherwise it will continue implicitly.
- karthik_sriniva
Nimbostratus
Well Sorry to keep bothering u, adding the HTTP::collect throws the following error - Tao_Liu_90341Historic F5 AccountIt is a bit hard. If possible, could you modify the authentication form
when HTTP_REQUEST { log "IN REQUEST" if the cookie exists no need to perform authentication log [HTTP::cookie exists MEDINSTUSRGTW] if { [HTTP::cookie exists MEDINSTUSRGTW] } { set rcvusername [HTTP::cookie $usrcookiename] if { $rcvusername eq [HTTP::username] } { set performAuth 0 } } if auth required, get username and password & perform auth if { $performAuth eq 1 } { set recvData [HTTP::uri] log $recvData set uname [findstr $recvData "username" 9] set username [getfield $uname "&" 1] log $username set upwd [findstr $recvData "password" 9] set userpwd [getfield $upwd "&" 1] log $userpwd AUTH::username_credential $tmm_auth_radius_sid $username AUTH::password_credential $tmm_auth_radius_sid $userpwd AUTH::authenticate $tmm_auth_radius_sid HTTP::collect } }
- karthik_sriniva
Nimbostratus
I will try this, but I can not use plain get. Because when the user submits the form and if anyone else is starring at the monitor, then they could see the password in the address bar. First I have figure out if JavaScript support encoding, so I can modify according.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects