By: Jason Chan user 26 Jun 2017 at 4:50 a.m. CDT

5 Responses
Jason Chan gravatar
I'm trying to enabled two factor authentication using SuperGluu. Followed the document, I enabled the SuperGluu custom script. However Gluu server doesn't not able to send Push Notification to the SuperGluu app on my iOS device. I checked the script log and found the super_gluss_creds.json file is not completed. There is missing info like GCM api key and ios p12 file. I'm wonder should I use my own gcm key and p12 file, or Gluu should provide those to us? Otherwise how would our Gluu server send push notification to the SuperGluu app??

By Mohib Zico staff 27 Jun 2017 at 7:41 a.m. CDT

Mohib Zico gravatar
Hi Jason, You need to specify your gcm api_key and make 'enabled' true in super_gluu_creds.json ( location: /etc/certs/ ). Plus, please note that.. you need to make sure that your Gluu Server's hostname is reachable from internet, otherwise Google authenticator won't work.

By Jason Chan user 27 Jun 2017 at 9:07 a.m. CDT

Jason Chan gravatar
I'm newbie to mobile development, from my understanding, the gcm api key is generated by registering my own mobile app. How would I use my GCM api key to send push notification to the official SuperGluu app? In addition, what is the procedure for iOS?

By Mohib Zico staff 27 Jun 2017 at 1:41 p.m. CDT

Mohib Zico gravatar
>> I'm newbie to mobile development, from my understanding, the gcm api key is generated by registering my own mobile app. You can create any sample app in Firebase and grab their api key. >> How would I use my GCM api key to send push notification to the official SuperGluu app? After getting that api key... you can use them in super_gluu configuration file.

By Jason Chan user 28 Jun 2017 at 12:51 a.m. CDT

Jason Chan gravatar
How about the procedure for iOS device?

By Nazar Yavornytskyy staff 29 Jun 2017 at 2:31 a.m. CDT

Nazar Yavornytskyy gravatar
Hi Jason, according the IOS, you should do next steps: 1) On server you need to configure script to send Push, for that you need .p12 certificate and password. To get this you need: 2) In dev.apple.com create and configure your app to enabled to push notifications. 3) Create and generate certificate via web page of your app 4) Download this certificate and load to your local KeyChain 5) Generate .p12 file, setup password There can be two certificates - for debug and production Also you need to write few lines of code in AppDelegate for your app to enable receiving push. When app runs at first time, method "didRegisterForRemoteNotificationsWithDeviceToken" show device token, this token you need to send push If summarize - on server side you need: .p12 certificate, password to use this certificate and device token. On App side: in dev.apple.com turn on Push enabling, write some code in app To test Push without server side I use this project for mac - NWPusher, easy to use and if NWPusher sends Push to your app then all is fine with your configuration Maybe it's so complicated, feel free to ask me if you stuck