88 questions
0
votes
0
answers
125
views
Amplify error module-not-found even though previous deployments had no issue
I built a next.js SSR project and I have been trying to get host it on amplify. Previously there were no issues but all of a sudden I am getting module-not-found.
This is happenning for most of my ...
1
vote
0
answers
431
views
How to get Google OAuth 2.0 Client to pass client_id to AWS Cognito User Pool domain with Google Social Identity Provider
I am getting an error when trying to sign-in to my single-page application (SPA) using the signInWithRedirect export of the aws-amplify/auth node package and using Google as a Social Identity Provider....
0
votes
0
answers
27
views
AWS amplify with custom UI: how to return a code?
We implemented a custom ui with amplify (gen 1) logging against a cognitor user pool + some lambdas for migrate user from previous user database, etc...
A customer asked to be able to login interface ...
1
vote
0
answers
652
views
Error Accessing Secrets from Secrets Manager via Amplify: [CredentialsProviderError]: Could not load credentials from any providers
I have a NextJS 14.2.4 app deployed via the Amplify Console (Gen 2). I am not using Amplify CLI. I created the app with create-next-app. I am leveraging Simple Email Service to send an email with info ...
0
votes
0
answers
323
views
How can I list all users from my Cognito Pool?
I'm making a new fullstack app using aws amplify gen2. I've just started working, and a critical functionality of my app is listing and managing current users in the cognito pool, however, the amplify ...
1
vote
2
answers
485
views
Amplify Gen 2: Filter by Case-Insensitive String
I'm trying to do the equivalent of a basic SQL LIKE filter on a list, and it seems the closest option using GraphQL is to use contains, which is case-sensitive. Is there a way to do a case-insensitive ...
1
vote
1
answer
1k
views
Mock AWS Amplify API and Storage for Unit Testing with V6
I have a Typescript/React Application leveraging Amplify to run in AWS.
My Application leverages Amplify API (GraphQL) and Amplify Storage for working with Amazon Services.
in Amplify V5 I was able to ...
1
vote
0
answers
126
views
Getting [Error: Credential is missing] using @aws-sdk/client-verifiedpermissions with AWS Cognito for getting Permissions
I am using the IsAuthorizedWithTokenCommand Command from @aws-sdk/client-verifiedpermissions to get authorization using the identity token generated by cognito, but i am getting the error: ...
0
votes
1
answer
350
views
Amplify v6 IdentityPool IAM authentication
In Amplify V5 library, I was able to provide guest access to a GraphQL/App Sync api that I used in a registration user flow. To call the Appsync API as a guest, I would authenticate to using Cognito ...
0
votes
0
answers
142
views
Trouble with AWS Cognito, API Gateway, Amplify. Requests are always anonymous and return a 403
I'm trying to make authenticated requests to API Gateway where I've set a Resource Policy which restricts access to some resources to a IAM role.
No matter the settings I try, all requests to a ...
3
votes
1
answer
2k
views
Problem in configure method of AWS Amplify JavaScript library after upgrade to 5.3.7
I just upgraded my NodeJS project which upgraded my aws-amplify library and encountered with multiple breaking changes. I was able to fix all except the two. Following is my updated package.json file:-...
0
votes
1
answer
463
views
how to rectify this error "InvalidIdentityPoolConfigurationException"
i'm trying to create a AWS cognito login with fb. the proble is it is throwing error from this API (
https://cognito-identity.us-east-1.amazonaws.com/ --> 400 error) like:
{
"__type": ...
3
votes
1
answer
605
views
Error when adding mock to Amplify API in React Native project
I'm currently working on a React Native project where I'm using AWS Amplify for my backend API. I am trying to add a mock to my Amplify API for testing purposes, but I encountered an error using this ...
1
vote
1
answer
258
views
AWS Amplify and AppSync custom domain
I have created and associated a custom domain name to access my AppSync API using the web interface. When I run amplify pull and regenerate the aws-exports.js file the aws_appsync_graphqlEndpoint does ...
1
vote
0
answers
85
views
Using AWS Amplify allow access to an owner restricted model from a Lambda function using an API key
I have a model that is restricted to an owner currently. We need to be able to access and update all models from a background lambda process. This is currently possible when the model is set to public ...
0
votes
2
answers
562
views
How to use S3 on a react-native project without AWS Amplify
For a multitude of reasons, mostly ease of use and internally broken imports, I don't want to add AWS amplify to my current react-native project. Is there any way I can directly read objects from S3 ...
0
votes
1
answer
992
views
AWS Amplify API (AppsSync / GrapthQL) Error "Not Authorized to access listXbiis on type Query"
I am building a WebApp With AWS Amplify.
I have the following object as part of my schema.graphql file.
type Xbiis @model @auth(rules: [{ allow: private,
operations: [...
8
votes
1
answer
4k
views
Unable to use aws-amplify with NextJS 13.4 api routes
I have successfully used pages/api routes in previous versions of NextJS to connect to AWS API Gateway. I'm trying to use new app router to do the same thing in app/api/route. But I'm unable to get ...
0
votes
1
answer
903
views
AWS Cognito with Vue and Amplify how to resolve Error: Username and Pool information are required
I am developing an application using Vue.js and the Amplify SDK to work with AWS Cognito for authentication. My Cognito user pool is federated through Azure AD and is working properly.
I am not using ...
2
votes
0
answers
315
views
Best practice for refreshing tokens after 60 min idle (javascript + AWS Amplify / Cognito)
I use below (simplified) code with AWS libraries to get access to AWS resources like DynamoDB through browser javascript. The ID/access tokens expire in 60 minutes; the refresh tokens in 30 days (the ...
2
votes
0
answers
809
views
Bitbucket Pipeline for amplify
I have setup the CICD pipeline in bitbucket and I have amplify the folder in the repository to get the backend configuration.
Right now I have setup the development environment and works fine.
...
0
votes
1
answer
232
views
Amplify with react - relationship - not able to associate a related item in create form
I am very new to the amplify/react world and stuck on below.
How do I attach an existing item in the create form?
I have two data models with a 1:1 relationship. In the autogenerated create form I do ...
0
votes
1
answer
309
views
How to allow a user to choose a Group Pool on sign-up in VueJS with AWS Amplify?
I am building a VueJS app with AWS Amplify for authentication, and I want to allow users to choose between two group pools (Teachers and Students) when they're signing up. I have already added ...
1
vote
0
answers
198
views
Check User Credentials Without Logging In
Is there any way to check if a user's username and password are valid without logging them in? Using:
import { Auth } from 'aws-amplify';
Auth.signIn(email, password);
Has the issue whereby upon ...
2
votes
3
answers
4k
views
Getting credentials for logged in user via Amplify Auth
I am using AWS Amplify for a ReactJS application. The only two functional areas I am using from Amplify are Authentication and Hosting. These two are working fine, and a Cognito user pool associated ...
0
votes
1
answer
530
views
Appsync Subscriptions do not work with modular AWS Amplify packages
I do have a React application where I want to replace the aws-amplify monolithic package with the module @aws-amplify/<package-name> ones.
Please note that everything is working if I use the ...
1
vote
1
answer
1k
views
AWS Amplify & React - Storage.put return 403 Forbidden
I've been searching through the web for an answer but was unable to find something ... so I'm trying here. Sorry if the question has already been solved, it would mean I need to fix my search skills !
...
1
vote
0
answers
768
views
Where does AWS Amplify DataStore store its data?
I have been looking for a Firebase Firestore equivalence to AWS World, I came across AWS Amplify and saw the DataStore module. From watching this video I see it does pretty much exactly what I ...
1
vote
2
answers
3k
views
I have a graphQL query and wanted to convert it GraphQL Transformer v1 to v2
I was working on an existing project using amplify with GraphQl API.
The query shows issues with @Key as Your GraphQL Schema is using "@key" directive from an older version of the GraphQL ...
2
votes
0
answers
370
views
How to use AWS Cognito with a web app and REST API
I have a React.js web app that talks to a Golang REST API and I'm using AWS Cognito for authentication. It is all working but I am not confident that it is correct.
The web app provides username/...
1
vote
2
answers
2k
views
Inaccessible host: `amplify-***-deployment.s3.ap-southeast-1.amazonaws.com' at port `undefined'
I am trying to do an 'amplify push' to my environment but keep getting this error.
Please help.
Full message:
An error occurred during the push operation: Inaccessible host: amplify-berry-akbox-184738-...
0
votes
1
answer
2k
views
Configuring AWS Amplify to use a proxy server for Cognito
I want to setup a service which is accessible from AWS Amplify, that acts as a proxy service to AWS Cognito. The point being, that such a service would provide greater flexibility, along with the ...
0
votes
1
answer
1k
views
AWS Amplify Auth Error in Angular project using pre-existing backend: "Error: Amplify has not been configured correctly."
I'm in the process of trying to update a project I built in 2020 that no longer works but I keep running into this issue.
[ERROR] 04:09.562 AuthError -
Error: Amplify has not been ...
3
votes
1
answer
149
views
Attempt to recreate AWS Demo ends up recreating error within demo
I started following the demo at https://youtu.be/NLN-q47uPo0 and ran into the (almost) identical error shown at https://youtu.be/NLN-q47uPo0?t=2880 . Anyone know the cause and resolution for it? It ...
1
vote
4
answers
2k
views
AWS amplify react - can't start the project
I've installed aws-amplify and aws-amplify-react packages and this is my index.js:
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import ...
2
votes
1
answer
1k
views
Amplify gives "No current user" only in Safari?
Context: I'm using Amplify for authentication in a static site that is composed of 2 sites frankensteined together by building Website A, putting it into an S3 bucket and the building website B and ...
0
votes
1
answer
410
views
How do I disable Submit button in Amplify Default Auth UI?
I want to hide the Submit Button in Amplify Default UI, but not sure how to achieve it. Didn't observe any documentation at Amplify.
Here is my code:
function App() {
return (
<...
1
vote
0
answers
286
views
Working with AWS Amplify and Securing GraphQL API Calls
const client = new AWSAppSyncClient({
url: AWSConfig.aws_appsync_graphqlEndpoint,
region: AWSConfig.aws_appsync_region,
auth: {
type: AWSConfig.aws_appsync_authenticationType,
jwtToken: (...
1
vote
1
answer
605
views
Separating user pools for JavaScript AWS Amplify SDK / AWS Cognito based authentication in React app
I have a React-native web application working with the authentication completely based on a user pool managed by AWS Cognito. All the authentication-related screens (login, registration, change ...
0
votes
1
answer
1k
views
Why does user gets automatically logged out when user is logged in or confirms registered account react native aws amplify?
I am facing an interesting problem. When user registers to the application it succeeds and user receives the verification code to the email and is taken to confirm account screen. There when user puts ...
1
vote
0
answers
1k
views
Amplify API REST with AWS_IAM: Request failed with status code 403
I'm trying to execute API calls from ReactNative AWS Amplify to API Gateway endpoint using AWS_IAM authorization.
I do it by calling (all Amplify initialization params are set):
import { API, Auth } ...
0
votes
1
answer
390
views
Amazon S3 fails uploading of 1000+ files s3 bucket with 403 forbidden after 900 ms
Environment details:
Back end :AWS Amplify
Front end : NextJS
I am implementing a solution where the user need to upload 1000+ individual files ranges from 500mb to 1gb to Amazon S3 bucket from ...
1
vote
1
answer
2k
views
cognito custom auth (CUSTOM_CHALLENGE) ignore retry because session expiration
my goal is to implement otp by sending a sms to user mobile. im able to achieve this using cognito custom auth flow, but, only works if the user success in the firts attemp, if the user enter a bad ...
1
vote
1
answer
3k
views
Use Amplify to generate Credentials from Auth.currentCredentials() after Auth.currentSession()
I am trying to run
const credentials = await Auth.currentCredentials()
const creds = await Auth.essentialCredentials(credentials)
AWS.config.credentials = new AWS.Credentials(creds.accessKeyId, creds....
12
votes
1
answer
3k
views
Amazon Cognito - OpenID Connect - Invalid+ProviderName/Username+combination
I am trying to configure the Microsoft Azure AD B2C identity provider in my Cognito user pool.
I am using the https://www.npmjs.com/package/@aws-amplify/auth library on my front-end.
I have named the ...
1
vote
1
answer
1k
views
AWS Amplify Datastore AppSync not synchronize IndexDB with DynamoDB
I followed this tutorial. It worked just fine before I updated aws-amplify to v3.3.26. After the update it stopped to synchronize IndexDB with DynamoDB. I didn't have any errors when I set Amplify....
0
votes
1
answer
6k
views
React native proper handling of amplify Auth.federatedSignIn
so I am a bit new to react native, I am currently trying to implement Cognito social logins for my application, and the 3rd party sign ins work but the code itself does not wait for the successful ...
1
vote
0
answers
516
views
AuthorizationHeaderMalformed Error when upload a file on S3 using Amplify
I had this part of code to send a file to S3 using Amplify
const file = e.target.files[0];
try {
console.log(Storage.vault)
await Storage.put(file.name,...
4
votes
0
answers
2k
views
Unable to query Many to Many relationship in Amplify Datastore
I have 2 model with Many-to-Many Relationship. The 2 model is Order and Product. An Order will have many Product and Product will in many Order.
My Goal is : Given a orderID, get a list of productID ...
1
vote
0
answers
78
views
Recognize user who has signed up with Google but tries to sign in with email in AWS Cognito
I'm using AWS Cognito Federated Identities to enable social login with Google in a web app.
Attempts:
User (with email [email protected]) signin/signup by Google
User login by email [email protected]
Normal ...