[aerogear-dev] [JS - auth] isAuthenticated issue...

Matthias Wessendorf matzew at apache.org
Mon Oct 1 12:29:44 EDT 2012


Hi,

I noticed some interesting behavior with the 'isAuthenticated' function.

It returns TRUE even when the pipe is not authenticated, because a
wrong(or no) authenticator has been attached,

See:

https://gist.github.com/3812824


IMO it should return FALSE when no authenticator is attached. Even on
a 'pipe connection' where no auth is required, the
'isAuthenticated:false' would be still wrong, as the connection is not
authenticated - since not required...

Any thoughts ?


Of course, this brings up the question if there should be some
'callback' that is invoke when the 'pipe' receives a 401. To indicate
'wrong' (or no) auth provided.. ?!

-Matthias

-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf


More information about the aerogear-dev mailing list