Repository navigation
What's new
NC Connect V3 migration β the authentication platform moves from a custom OAuth2 server to Keycloak (OpenID Connect).
Features
- Keycloak endpoints β all OAuth2 URLs updated to
/v3/realms/nc-connect/protocol/openid-connect/... - Nonce validation β OIDC nonce generated and validated on id_token to prevent replay attacks
- Token refresh β V3 access tokens expire after 30 minutes;
refreshToken()support built-in - Configurable auth method β
client_secret_basic(default) orclient_secret_post - Typed User accessors β
getVerifiedLevel(),isEmailVerified(),getFirstName(),getFamilyName(),getBirthdate(), etc. - Flexible logout β
generateLogoutURL()accepts optional$idTokenHintand$postLogoutRedirectUriparameters (RP-Initiated Logout) - New claim β
first_name(first given name only, vsgiven_namewhich returns all given names)
Breaking changes
- Package renamed to
gecka/socialite-ncconnect - Requires PHP 8.2+
birthcountryclaim removed β usebirthplaceinsteadgenerateLogoutURL()no longer manages session state β store$user->tokenIdand pass it as parameter
See UPGRADE.md for the full migration guide.
Other
- Added MIT license
- Added CI workflow (Pint lint + PHP 8.2β8.5 syntax check)
- Rewritten README with full documentation