Comments (3)
@sisygoboom Thank you. It looks like the issue is that the oAuth info isn't added to your config. We have an issue open for this already: aws-amplify/amplify-backend#1551
I am going to keep this issue open because Amplify Flutter should throw a better error message in this scenario.
from amplify-flutter.
Hello @sisygoboom. Can you share your Amplify Configuration? You can remove any sensitive or app specific information.
from amplify-flutter.
Auth construct:
import { defineAuth, secret } from '@aws-amplify/backend';
/**
* Define and configure your auth resource
* @see https://docs.amplify.aws/gen2/build-a-backend/auth
*/
export const auth = defineAuth({
loginWith: {
phone: true,
externalProviders: {
facebook: {
clientId: secret('FACEBOOK_APP_ID'),
clientSecret: secret('FACEBOOK_APP_SECRET'),
scopes: ['email', 'public_profile'],
},
google: {
clientId: secret('GOOGLE_CLIENT_ID'),
clientSecret: secret('GOOGLE_CLIENT_SECRET'),
scopes: ['email', 'profile'],
},
callbackUrls: ['paritae://callback'], // Ensure these match your actual callback URLs
logoutUrls: ['paritae://logout'], // Ensure these match your actual logout URLs
},
},
userAttributes: {
email: {
required: true,
mutable: true
},
phoneNumber: {
required: false,
mutable: true
},
profilePicture: {
required: false,
mutable: true,
}
}
});
amplify config:
const amplifyConfig = '''{
"UserAgent": "@aws-amplify/client-config/1.0.2",
"Version": "1.0",
"auth": {
"plugins": {
"awsCognitoAuthPlugin": {
"UserAgent": "@aws-amplify/client-config/1.0.2",
"Version": "1.0",
"CognitoUserPool": {
"Default": {
"PoolId": "REDACTED",
"AppClientId": "REDACTED",
"Region": "REDACTED"
}
},
"CredentialsProvider": {
"CognitoIdentity": {
"Default": {
"PoolId": "REDACTED",
"Region": "REDACTED"
}
}
},
"Auth": {
"Default": {
"authenticationFlowType": "USER_SRP_AUTH",
"passwordProtectionSettings": {
"passwordPolicyMinLength": 8,
"passwordPolicyCharacters": [
"REQUIRES_NUMBERS",
"REQUIRES_LOWERCASE",
"REQUIRES_UPPERCASE",
"REQUIRES_SYMBOLS"
]
},
"signupAttributes": [
"EMAIL"
],
"usernameAttributes": [
"PHONE_NUMBER"
],
"verificationMechanisms": [
"PHONE_NUMBER"
]
}
},
"AppSync": {
"Default": {
"ApiUrl": "REDACTED",
"Region": "REDACTED",
"AuthMode": "REDACTED",
"ClientDatabasePrefix": "REDACTED"
},
"data_AMAZON_COGNITO_USER_POOLS": {
"ApiUrl": "REDACTED",
"Region": "REDACTED",
"AuthMode": "REDACTED",
"ClientDatabasePrefix": "REDACTED"
}
}
}
}
},
"api": {
"plugins": {
"awsAPIPlugin": {
"data": {
"endpointType": "GraphQL",
"endpoint": "REDACTED",
"region": "REDACTED",
"authorizationType": "REDACTED"
}
}
}
}
}''';
Command used:
npx ampx sandbox --outputs-format dart --outputs-out-dir lib --outputs-version 0
from amplify-flutter.
Related Issues (20)
- a.customType({}) modelgen issue - Single-Table-Design flutter Amplify-gen2 HOT 2
- feature request: Emit info from signInWithWebUI through Auth Hub HOT 8
- Amplify.configure() incorrectly throws JSON parsing validation error on valid JSON string. Improve error login on Amplify.configure() HOT 4
- fix: expired link at document HOT 1
- Unable to instantiate activity ComponentInfo HOT 4
- Document how to set a model field to null HOT 3
- Document how to get encoded access token HOT 5
- Inspect your amplifyconfiguration.dart and ensure that the string is proper json HOT 5
- Input resolver for TextField errorText and Hint
- Cloud Messaging API (Legacy) will be removed HOT 3
- Face Liveness support HOT 1
- Error occurred awaiting for device token to register device with Pinpoint, Invalid identity pool configuration. Check assigned IAM roles for this pool. HOT 9
- iOS sync stop when app is in background and screen off only in Release HOT 6
- How to pass SignInOptions to Authenticator v2? HOT 15
- [Gen 2] Feature request: Support secondary index query with sorting HOT 3
- Capability to retry the api request as well as handle the cancellation HOT 9
- [Gen2] dynamodb error when having optional sortkeys HOT 3
- How to Use auth resources without an Amplify backend? HOT 9
- S3 Upload Fails With Amplify Gen 2: Error: "S3 access denied when making the API call" (amplify_s3 v2.1+ | Amplify Gen 2) HOT 18
- [Gen2] storage plugin causes 'Lost connection to device.' on debugging session HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amplify-flutter.