After signing up a new user , I would like to add that user to an existing Cognito Group . Is this possible in android?
This is the API you can call to add a user to a group - https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminAddUserToGroup.html
In the Android AWS SDK, you can call this api.
Here's some documentation on using the Android SDK to call cognito -https://aws.amazon.com/blogs/mobile/using-android-sdk-with-amazon-cognito-your-user-pools/
Just simply call the aforementioned api to add a user to a group
Related
Is there a way to manually change a user's password through firebase functions with Admin SDK?
I tried to do this using updateUser method in the Admin SDK but I'm not sure if it's the right approach.
What I'm trying to do is to have an action button which defaults the password to "Password#123" on the dashboard.
You have to use the updateUser() method, as shown in the Admin SDK doc.
If you want to call the Cloud Function (which uses this method) from your app you can use a Callable Cloud Function.
As I am new to mobile development and I am using react native. I am trying to implement external login(Facebook/Google) login, I got libraries using which I am able to get the details of user profile such as firstName, lastName, email from both Facebook and Google. Here my question is, is it right and safe to get details of the user profile, and calling register api to register/login and get the JWT token to land the application to home screen? Or is there any way that we can just click on Facebook/Google button by passing just provider name we can get all details from web api itself.
I feel, fetching the user profile details from web api is safer than getting user profile using react native library/sdk and then calling register api to register/login the same.
If there any link or Github reference please share the same for better and in details understanding.
Thanks In Advance.
You seems to have it figured out yourself. Call Google or other third party to retrieve user details such as email and name. Then call your own backend to register that user to your platform.
The next time user login using social login do a similar call to your backend to check if user with the details exist in your database and send a corresponding response back.
Check this link Google Login React Native. This reference is a little old one but might give you a heads up.
Note: You will need to have corresponding permissions enabled in providers developer console. Some cases you will get an access token after login/signup using social media. You will then need to fetch user data from corresponding provider using their api or SDK.
I am developing an app with React Native and need to get Facebook, Twitter, Instagram account link when the user signups. And I need to send it to the server with API.
How can I get the account links? Should I add any SDK for that?
You can use Firebase auth for your app, refer the following link
https://firebase.google.com/docs/auth
I am using CognitoAuth Sample to implement sign-in and sign-out using AWS iOS SDK.
I have a signout button inside my app. When I click the button I need to clear the keychain details instead of calling the signout block and showing the safari view controller. Is there any way to do so? The only thing I could see to do was using the signout block, but I don't want this.
Now the API is exposed by Amazon iOS Cognito for above ask.
When I create a test app from one that's been approved for the Facebook Ads API that test app doesn't receive the ads_api_extern feature.
Am I missing a setting or other way that I can make ads api requests using a test app?
No, a test app doesn't inherit special permissions like access to the ads api
That would need to be whitelisted separately by whomever granted your existing app that access