Tiqr / tiqr-server-libphp

A PHP library for using the tiqr authentication mechanism
6 stars 7 forks source link

Add FCM_DIRECT and APNS_DIRECT message types #37

Closed pmeulen closed 2 years ago

pmeulen commented 2 years ago

Updated Tiqr_Service::sendAuthNotification() to accept the new DIRECT message types for FCM and APNS. These types do not use the token exchange. Tiqr_Service::translateNotificationAddress() is a no-op for these types.

Additionnally Tiqr_Service::sendAuthNotification() will use the FCM message class for messages of type GCM. There should be no need in a tiqr server to inspect or change the message type (anymore).

The TestServer has been updated to warn when it receives an unsupported message type and the conversion from GCM to FCM in the TestServer was removed as that is now handled by sendAuthNotification().

This is part of the effort to phase out the token exchange. See: https://egeniq.atlassian.net/browse/TIQR-263