xperseguers / t3ext-oidc

TYPO3 Extension oidc. This extension uses OpenID Connect to authenticate users.
https://extensions.typo3.org/extension/oidc
GNU General Public License v2.0
10 stars 33 forks source link

Use #[\SensitiveParameter] attribute for e.g. passwords #177

Closed liayn closed 5 days ago

xperseguers commented 2 weeks ago

Good idea! I did it for ig_ldap_sso_auth in v4.0 :)

liayn commented 2 weeks ago

That's were I found it ;-)

liayn commented 2 weeks ago

Okay, currently we still support PHP 7.4 for v11. I think it is okay to require PHP8.2+ now, so we can actually add this attribute. @xperseguers What do you think?

xperseguers commented 2 weeks ago

Yes, that sounds totally legit, those still in need for PHP 7.4 or PHP 8.0 can stick on the existing version, and the new version supporting v11, v12, and possibly v13 requires PHP 8.1+, that's fair and in line with official support of PHP.

Switching to PHP 8.1+ allows to get much cleaner code, thus prone to good refactoring.

liayn commented 2 weeks ago

I'd go for PHP8.2 actually, because this attribute is supported since then only

xperseguers commented 2 weeks ago

No problem with PHP 8.1, it's just not taken into account, which doesn't hurt since it wasn't there for many versions either. And PHP 8.1 is in ELTS mode, thus I find it makes sense to keep support for it, since that extension doesn't target most up-to-date environments... https://www.php.net/supported-versions.php

liayn commented 2 weeks ago

Wasn't aware that non-supported attributes are silently ignored. Cool actually.

xperseguers commented 2 weeks ago

indeed!

liayn commented 2 weeks ago

will prepare that now then.

xperseguers commented 2 weeks ago

IIRC it would even work with PHP 7.4 but would only require to be specified on a separate line with nothing afterwards as # is considered a comment for the reste of the line until 8.0 or 8.1 where #[...] is a special comment similar to /* ... */

liayn commented 2 weeks ago

Okay, I'd still argue 8.1 is okay to raise