Hi,

I'm just putting ezcAuthentication inside a new app and find some
thinks, that just don't feel right. Since neither arbit nor TheWire use
Authentication as indicated in the tutorial[1], I believe that there may
be some thinks broken by design(tm):

* ezcAuthenticationSession makes sense only as a singleton, but doesn't
  have a getInstance method.

* ezcAuthenticationSession::isValid() needs to be called with
  $credentials, but that doesn't make sense, since I don't have
  credentials if I only want to check, whether a user is logged in.

* I can only set an instance of ezcAuthenticationSession in
  ezcAuthentication->session, but not my own session implementation.[2]

Is it me, or is Authentication a bid weird?

[1] arbit has it's own session class and TheWire directly accesses
    $_SESSION['ezcAuth_id'].
[2] Yes. I could extend.

Best regards,
-- 
Thomas Koch, Software Developer
http://www.koch.ro

Young Media Concepts GmbH
Sonnenstr. 4
CH-8280 Kreuzlingen
Switzerland

Tel    +41 (0)71 / 508 24 86
Fax    +41 (0)71 / 560 53 89
Mobile +49 (0)170 / 753 89 16
Web    www.ymc.ch

-- 
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components

Reply via email to