By: Alexandre Zia Account Admin 16 Jun 2021 at 7:40 a.m. CDT

6 Responses
Alexandre Zia gravatar
We've noticed that push notifications for iOS devices has stopped working since jun/14 The error in casa logs is: ``` - Casa. isValidAuthenticationMethod called - Casa. prepareForStep 2 - Casa. prepareForStep. ACR = super_gluu - Casa. getAvailMethodsUser [otp, wavy_sms] - Super-Gluu. Prepare for step 2 - Super-Gluu. Prepare for step 2. auth_method: 'authenticate' - Super-Gluu. Prepare for step 2. Adding req_ip and req_loc to super_gluu_request - Super-Gluu. Determine remote location. remote_ip: '__REDACTED__' - Super-Gluu. Prepare for step 2. Prepared super_gluu_request: - {"app":"https://__REDACTED__/casa","licensed":false,"method":"authenticate","req_ip":"__REDACTED__","created":"2021-06-16T09:34:44-03:00","issuer":"https://__REDACTED__","req_loc":"__REDACTED__","state":"__REDACTED__","username":"__REDACTED__"} - Super-Gluu. Send push notification. Loading user '__REDACTED__' devices - Super-Gluu. Get target endpoint ARN. There is already created target endpoint ARN - Super-Gluu. About to send iOS Gluu push notification. targetEndpointArn: arn:aws:sns:us-west-2:989705443609:endpoint/APNS/super_gluu_apns/__REDACTED__, token: '__REDACTED__', message: '{"request":"{\"app\":\"https://__REDACTED__\",\"licensed\":false,\"method\":\"authenticate\",\"req_ip\":\"__REDACTED__\",\"created\":\"2021-06-16T09:34:44-03:00\",\"issuer\":\"https://__REDACTED__\",\"req_loc\":\"__REDACTED__\",\"state\":\"__REDACTED__\",\"username\":\"__REDACTED__\"}","aps":{"sound":"default","badge":0,"alert":{"body":"Confirm your sign in request to: https://__REDACTED__/casa","title":"Super Gluu"},"category":"ACTIONABLE","content-available":"1"}}' - Super-Gluu. Send push notification. Failed to send push notification: - Traceback (most recent call last): - File "/opt/gluu/python/libs/casa-external_super_gluu.py", line 747, in sendPushNotification - self.sendPushNotificationImpl(client_redirect_uri, user, super_gluu_request) - File "/opt/gluu/python/libs/casa-external_super_gluu.py", line 821, in sendPushNotificationImpl - send_notification_result = self.pushAppleService.sendNotification(self.pushAppleServiceAuth, targetEndpointArn, push_message) - InternalServerErrorException: javax.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error - Casa. getExtraParametersForStep 2 - extras are [super_gluu_auth_method, super_gluu_request, ACR, methods, trustedDevicesInfo] - Casa. authenticate 2 - Casa. simulateFirstStep. Calling authenticate (step 1) for otp module - OTP. Authenticate for step 1 - OTP. Authenticate for step 1. otp_auth_method: 'authenticate' - Casa. simulateFirstStep. returned value was True ``` Is that an issue in your backends? Has something changed? Is there another way to send push notifications without using your services? something I can install on my side? thanks in advance

By Mohib Zico staff 20 Jun 2021 at 2:28 p.m. CDT

Mohib Zico gravatar
We will look into it...

By Mohib Zico staff 22 Jun 2021 at 6:18 a.m. CDT

Mohib Zico gravatar
Hello Alexandre, We were able to reproduce the issue. Discussing with SuperGluu team.

By Ayush Jain Account Admin 23 Jun 2021 at 7:08 a.m. CDT

Ayush Jain gravatar
Hi, This issue is primarily with how Apple is managing Apple Push notifications authentications. They have stopped the Binary authentication (https://developer.apple.com/news/?id=uzyxiriy), used by https://github.com/notnoop/java-apns in oxauth. I have been able to fix it by using https://github.com/jchambers/pushy. I have tested this library in version 3.1.4.

By Mohib Zico staff 23 Jun 2021 at 1:22 p.m. CDT

Mohib Zico gravatar
iOS notification should work now.

By Alexandre Zia Account Admin 23 Jun 2021 at 4:27 p.m. CDT

Alexandre Zia gravatar
Working now, thanks a lot!!!!

By Mohib Zico staff 23 Jun 2021 at 10:22 p.m. CDT

Mohib Zico gravatar
Great! Thanks for confirmation, Alexandre.