I have a question regarding google admin api push service
When registering for user update push notification, is it posting to my url, when any of the security parameters are changed? parameters such as Authorized access?
(The case as follows: A new user of my domain installs a new application. I want to get a push notification for that event)
Thank you!
Related
I am trying to authenticate and add a user to the user pool using google sign in by following the video tutorial given here . This does almost exactly what I want to achieve with my application , i.e, provide a login page with an option to authenticate through google (using hosted UI), the user then gets added to the user pool in cognito if not already present and gets redirected along with access token in the redirected url. I wanted to add the sign in with google button on the already existing login page I have currently and authenticate user from there.
Is there a way through which I can receive access and ID tokens for an end user without using Hosted UI ? Can someone explain(or point me out to documentation) explaining flow along with the APIs hit from the moment a user clicks on the sign in with google button that redirects to a google sign in page to the point cognito returns access and ID tokens for the user ?
Behind the scene the Hosted UI is a set of HTTPS endpoints that you can call yourself with specific parameters. What you are interested in is the AUTHORIZATION endpoint (https://docs.aws.amazon.com/cognito/latest/developerguide/authorization-endpoint.html).
There you must submit the identity_provider parameter (in your case the one for Google) and the callback that is https://HOSTED_UI_DOMAIN/oauth2/idpresponse.
This will hit the Hosted UI with a specific client ID (so that it can create a new user in User Pool). In your client configuration you need to specify the callback URL being your application. This endpoint will then receive an authorization code from Cognito that can be exchanged for a set of JWT by calling another endpoint in Hosted UI: https://HOSTED_UI_DOMAIN/oauth2/token.
I am new on Amazon SNS.
I have apps that are using APNS and GCM through Amazon SNS.
So every time a user installs my app, I would register them into GCM or APNS.
I wanted to know when app my app has been uninstalled so that I can remove them in my database and they won't be sent a push notification.
I read somewhere about Apple Feedback Services and GCM returning NOTREGISTERED, but explanations are very unclear to me like where can I get these services and responses?
Any help is greatly appreciated!
Thanks.
Based from this blog, In order to push mobile notifications to an app using SNS, that app’s token needs to be first registered with SNS using the CreatePlatformEndpoint API method.
The best practice presented below creates a working, current, enabled endpoint in a wide variety of starting conditions. This approach works whether this is a first time the app is being registered or not, whether or not the PlatformEndpoint for this app already exists, and whether or not the endpoint is enabled or disabled, or has the correct token, and so on. The approach is also idempotent. It is safe to run it multiple times in a row and it will not create duplicate PlatformEndpoints or alter an existing PlatformEndpoint if it is already up to date and enabled.
retrieve the latest token from the mobile OS
if (endpoint arn not stored)
# first time registration
call CreatePlatformEndpoint
store returned endpoint arn
endif
call GetEndpointAttributes on the endpoint arn
if (getting attributes encountered NotFound exception)
#endpoint was deleted
call CreatePlatformEndpoint
store returned endpoint arn
else
if (token in endpoint does not match latest) or
(GetEndpointAttributes shows endpoint as disabled)
call SetEndpointAttributes to set the
latest token and enable the endpoint
endif
endif
We have the WSO2 API Manager deployed and working, although we are unable to figure out an issue about users addition. We want to add the users via the management console (Carbon) and after being added we want the user to receive an email saying that his/her account was successfully created.
Although there is documentation for a workflow extension when the user signs up, we were unable to find any documentation regarding the matter we've pointed out, is this possible to achieve via the API Manager or with some kind workflow extension?
Thanks in advance!
EDIT: We are using WSO2 API Manager 1.10.0.
If your requirement is to create a user through the management console and allow the created user to define a password, you can configure APIM server to support 'Ask password from user' feature. (In this feature, APIM server administration can create a user through the management console and provide the email address of the user, so that user can set the password through the redirection URL provided in the email). To configure 'Ask password from user' feature follow the instructions given in https://docs.wso2.com/display/IS510/Creating+Users+Using+the+Ask+Password+Option.
If you want the APIM server administrator to set the username and password through the APIM management console and only send a notification to the user that his/her account is created successfully, then you have to write a custom component, because this is not supported by default.
We have an application where in we need to notify a URL whenever a new user is created in the Google Apps Domain. The notifying url is https://projectId.appspot.com/userWatcher. Have verified the domain in the app engine console as https://projectId.appspot.com even then unuable to receive the push notification messages to the notifying URL. Kindly help me out
To use push notification make sure you do this things:
Register the domain of your receiving URL.
For example, if you plan to use https://example.com/notifications as your receiving URL, you need to register https://example.com.
Set up your receiving URL, or "Webhook" callback receiver.
This is an HTTPS server that handles the API notification messages that are triggered when a resource changes.
Set up a notification channel for each resource endpoint you want to watch.
A channel specifies routing information for notification messages. As part of the channel setup, you identify the specific URL where you want to receive notifications. Whenever a channel's resource changes, the Reports API sends a notification message as a POST request to that URL.
For more information check this page.
making a django app to send push notifications to gcm devices using django push notifications, but unable to register the device on my server. Followed the docs on python.org and filled in all the necessary details in settings.py. Is there any particular url where the registration from the device should be accessed?
All the places I have looked have tutorials for php and java.
Someone please help!!!
django-push-notifications does not have urls. To be able to send push notification first you have to associate the device with a user:
device = GCMDevice(name=device_name, user=user, device_id=device_id, registration_id=device_registration_id)
device.save()
You can do this for example after a user has registered.
Then when you want you can send a push notification to the user like this:
devices = GCMDevice.objects.filter(user=user)
devices.send_message("Push notification message!")
I hope this helps you.