logo
down
shadow

How to use federated Auth using aws-amplify API without hosted UI?


How to use federated Auth using aws-amplify API without hosted UI?

By : sojib
Date : October 17 2020, 06:10 PM
Hope this helps Amplify does not use a User Pool API for signing in via a third-party provider, and the APIs offered for third-party providers are just for Identity Pools. Currently, there's a feature request with the AWS Amplify SDK team for the same.
A workaround would be to use the AUTHORIZATION Endpoint directly, and make suited HTTP requests to achieve your requirements.
code :


Share : facebook icon twitter icon
AWS Amplify Auth / react-navigation: How to access auth state?

AWS Amplify Auth / react-navigation: How to access auth state?


By : user2731954
Date : March 29 2020, 07:55 AM
it helps some times using screeProp is not encouraged on react navigation v3
code :
class App extends React.Component {

  componentDidMount = () => {
    this.setState({ someData: 'some data', otherData: 'other data' });
  };

  render = () => {
    return (
      <Authenticator>
        <AppContainer
          screenProps={{ myProp: "test" }}
        />
      </Authenticator>
    );
  };
}
class App extends React.Component {
  render = () => {
    return (
      <FormContext.Provider value={this.state}>
        <AppContainer />
      </FormContext.Provider>
    );
  };
}
class FirstTabScreen extends React.Component {
  render(){
    return(
      <FormContext.Consumer>
        { (context) => ( 
             // your logic 
        )}
      </FormContext.Consumer>
  };
}
createBottomTabNavigator(RouteConfigs, BottomTabNavigatorConfig);
const BottomTabNavigator = StackNavigator(routesConfig, BottomTabNavigatorConfig)
{ initialRouteName: 'Home', navigationOptions: .... }
const parent = navigation.dangerouslyGetParent();
const yourParam = parent.getParam('yourParamName', 'default value')
Using AWS Amplify Auth on the server with custom auth-storage

Using AWS Amplify Auth on the server with custom auth-storage


By : user2801715
Date : March 29 2020, 07:55 AM
I wish this helpful for you I realised that the Auth.CurrentAuthenticatedUser uses the fetch method under the hood, which is why it was failing. The solution was to provide a fetch method polyfill for node using node-fetch, I did it like so:
code :
const fetch = require('node-fetch');
global.fetch = fetch;
Developer authenticated identities federated via an Identity Pool cannot make AppSync calls in Amplify project

Developer authenticated identities federated via an Identity Pool cannot make AppSync calls in Amplify project


By : APittman
Date : March 29 2020, 07:55 AM
will be helpful for those in need It looks like the issue was the additionalAuthenticationProviders in our serverless-appsync-plugin YAML file.
My understanding is that schema-level directives must be applied to type definitions in one's schema if you want additional authentication providers (in our case, AWS_IAM) to have access alongside the default authentication provider (in our case, AMAZON_COGNITO_USER_POOLS).
Passing code challenge to Cognito Federated Identiy via Amplify [Okta]

Passing code challenge to Cognito Federated Identiy via Amplify [Okta]


By : user3639694
Date : March 29 2020, 07:55 AM
Hope that helps There was a mistake in my understanding. Communication between Cognito & Okta is service to service call, which should have been performed as Client Credential Grand Flow. There we don't enable PKCE in Okta.
PKCE is enabled for Client (Web or Mobile App) to Service Authentication.
Error Running Amplify Push after Running Amplify Auth Update

Error Running Amplify Push after Running Amplify Auth Update


By : Claire
Date : March 29 2020, 07:55 AM
I wish this helpful for you I did the following and it resolved my issues.
Follow the instructions here and call amplify hosting add.
Related Posts Related Posts :
  • YAML_FILE_ERROR: YAML file does not exist
  • Can't specify Lambda alias or version for SNS subscription
  • Access token and ID token storage for serverless app
  • Cloudformation: Error: Member must have length less than or equal to 20
  • How to add new origins to an already existing cloudfront distribution through cloudformation?
  • What is the difference between `Ref: logicalName` and `!Ref logicalName` in AWS Cloudformation templates in YAML?
  • Is there a way to determine which functions are invoked from a go module during compilation?
  • Can Lex start the conversation?
  • AWS Glue pushdown predicate not working properly
  • Redshift - Redesign tables to use DIST and SORT keys (performance issue)
  • Can I put nginx on public subnet and the webserver[s] on private subnet of AWS VPC?
  • Does AWS guarantee my lambda function will be triggered 100%?
  • How to consume messages from Apache Kafka which is third party using AWS services
  • How to write a Join query in AWS DocumentDB
  • Resolving dynamic reference in EC2 user data cloudformation template
  • Can I send an HTTP request to an Alexa's Skill Endpoint in order to trigger a reprompt in Alexa?
  • Uploading multiple files in parallel to Amazon S3 with Goroutines & Channels
  • S3 Bucket Notification or CloudWatch Event Rule to call a Lambda on Object level changes?
  • Running multiple ECS tasks based on same task definition but with different environment variables
  • Setting AWS Lambda as Principal in Permission Policy
  • How to Solve unknown_ca error on WSO2IS-5.7 when using MySQL RDS as backstore?
  • AWS S3 Bucket Policy throws Access Denied Error
  • How to prevent AWS SQS from deleting a message when Lambda function triggered fails to process that message?
  • AWS-Cognito: How to assign user roles in the user pool?
  • aws crawler not creating awsdatacatalog
  • Two clusters on EKS, how to switch between them
  • How to set aws proxy host to Spark config
  • Rename an Amazon RDS Option group
  • Internet Access to lambda function without NAT
  • DynamoDB Local Secondary Index vs Global Secondary Index
  • Using an AWS Network ACL versus an SG for access control?
  • Amazon SQS message disappeared
  • How to check if the Key Pair is still used in EC2?
  • Add to product list in AWS Service Catalog and Launch it
  • Cannot Restrict AWS Regions in my Account
  • Ampliy withAuthenticator v/s with withOAuth
  • Setup Ingress-Nginx rate limit rps for a specific path
  • Unable to ping Private IP of DMS Replication Instance from on-premises over Site-to-Site VPN & DMS source DB endpoin
  • Step Functions AWS SAM CLI Local Connection Refused Error
  • Corda Node deployment on aws
  • best way to copy data from one aws queue (SQS) to another SQS
  • Internal networkloadbalancer wont route to instance X when curl from NLB DNS from instance X
  • Trigger email when a new record is created in DynamoDB
  • EB CLI only works as sudo; else gives 'DistributionNotFound'
  • When to use AWS Lambda and when to use Kubernetes (EKS)?
  • AWS IAM User with access to a folder in an Amazon EC2 instance
  • How to invoke lambda when lex does not process the intent automatically?
  • SNS with file attachment
  • How to organize projects in AWS?
  • Can't send message from lambda to aws sqs and no error is returned from aws-sdk
  • How do I make my function run on a schedule instead of an API call using AWS SAM
  • Images folder lost after Elastic Bean Stalk restarted. Any way to restore them?
  • Aws Lambda display progress
  • find a row from DynamoDB w/o hash and range key and delete it
  • Null Response while querying DynamoDB
  • How to architect serverless transformation of files
  • Trying to connect to Sybase and Azure SQL server using python with TLS enabled connections
  • AWS: add second internal load balancer to elastic beanstalk in terraform
  • Alternative to AWS Lambda + NAT gateway
  • Running AWS Glue jobs in parallel
  • shadow
    Privacy Policy - Terms - Contact Us © 35dp-dentalpractice.co.uk