amazon-cognito-developer-authentication-sample | sample application | AWS library

 by   aws-samples Java Version: Current License: Apache-2.0

kandi X-RAY | amazon-cognito-developer-authentication-sample Summary

kandi X-RAY | amazon-cognito-developer-authentication-sample Summary

amazon-cognito-developer-authentication-sample is a Java library typically used in Cloud, AWS, React Native applications. amazon-cognito-developer-authentication-sample has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can download it from GitHub.

This sample application demonstrates the developer-authenticated functionality of Amazon Cognito. Use this sample in conjunction with the CognitoSyncDemo sample for iOS or Android.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              amazon-cognito-developer-authentication-sample has a low active ecosystem.
              It has 92 star(s) with 43 fork(s). There are 41 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 7 open issues and 3 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of amazon-cognito-developer-authentication-sample is current.

            kandi-Quality Quality

              amazon-cognito-developer-authentication-sample has 0 bugs and 0 code smells.

            kandi-Security Security

              amazon-cognito-developer-authentication-sample has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              amazon-cognito-developer-authentication-sample code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              amazon-cognito-developer-authentication-sample is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              amazon-cognito-developer-authentication-sample releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              amazon-cognito-developer-authentication-sample saves you 790 person hours of effort in developing the same functionality from scratch.
              It has 1816 lines of code, 91 functions and 30 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed amazon-cognito-developer-authentication-sample and discovered the below as its top functions. This is intended to give you an instant insight into amazon-cognito-developer-authentication-sample implemented functionality, and help decide if they suit your requirements.
            • Handles GET request
            • Gets the OpenId token for the DeveloperIdentity
            • Generates credentials for a given user
            • Checks if a timestamp is valid
            • Handle login request
            • Store a device uid in the identity table
            • Validate a login request
            • Generate key for device uuid
            • Register user
            • Returns true if the supplied username is valid
            • Get the value of a required parameter
            • Store a username in the identity table
            • Unwrap a string
            • Decrypt bytes
            • Returns a list of users
            • Deletes the user from the identity table
            • Authenticates a user
            • Checks if a table exists
            • Deletes the device from the identity table
            • Creates the device table
            • Lists the device IDs
            • Extract the element from a json string
            • Creates the identity table
            • Get the logger to use
            • Checks if the specified table name exists
            Get all kandi verified functions for this library.

            amazon-cognito-developer-authentication-sample Key Features

            No Key Features are available at this moment for amazon-cognito-developer-authentication-sample.

            amazon-cognito-developer-authentication-sample Examples and Code Snippets

            No Code Snippets are available at this moment for amazon-cognito-developer-authentication-sample.

            Community Discussions

            Trending Discussions on amazon-cognito-developer-authentication-sample

            QUESTION

            AWS cognito returning - 'Invalid Login Token. Not a Cognito Token'
            Asked 2017-Jun-06 at 15:38

            I am able to successfully retrieve an identity token for my Custom Authentication Provider (Developer Authentication). This is implemented using the Cognito devauth demo servlet.

            This token is returned to a browser running AWS JS SDK. When I make a call to getCredentialsForIdentiy, I receive the 'Invalid Login Token' error.

            ...

            ANSWER

            Answered 2017-Jun-06 at 15:38

            So, the AWS documentation here is either inaccurate or documents an inefficient scenario.

            Using JavaScript Cognito API, my Developer Provider returned token could not be used with GetCredentialsForIdentity against Cognito API. (this is what prompted me to ask this question).

            However, I can use the same token against STS API and invoke AssumeRoleWithWebIdentity which essentially returns the same response parameters as GetCredentialsForIdentity above. This is the approach I took.

            Basic Auth Flow documentation in the first link seems inaccurate. Because it lists 'get credentials' and 'assume role' as required steps but only one is actually needed. Also, from a browser, this is an API call out to an Amazon service. So using Enhanced Flow instead of Basic does not seem like an advantage if it worked.

            Source https://stackoverflow.com/questions/44206202

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install amazon-cognito-developer-authentication-sample

            Do one of the following:.
            Option 1: Do a Quick Start Deployment using the sample using Amazon CloudFormation.
            Option 2: Build the sample yourself and deploy using Amazon Elastic Beanstalk.
            Go to the Amazon Cognito console, and then click the identity pool that you want to use.
            Click Edit Identity Pool.
            On the next screen, expand Authentication providers, and then click the Custom tab. Enter a DeveloperProviderName that you want to use for your application (e.g. login.myapp), if one does not exist.
            Click Save Changes.
            Use the identity pool id provided by the sample code in your application. Instructions on how to use the identity pool id in your desired sample app can be found in the ReadMe instructions for that sample.
            Go to the Amazon Cognito console, and then click New Identity Pool.
            On the next screen: a. Provide a valid identity pool name. b. In the Developer Authenticated Identities section, provide a DeveloperProviderName that you want to use for your application (e.g. login.myapp). c. Click Create Pool.
            On the next page, click Update Roles. This allows Cognito to create roles on your behalf for the identity pool.
            Use the identity pool id provided by the sample code in your application. Instructions on how to use the identity pool id in your desired sample app can be found in the ReadMe instructions for that sample.
            You are now set up to run the sample server application. You can configure the CognitoSyncDemo sample application for iOS or Android to authenticate registered users using this application.
            Build the AWSCognitoSampleDeveloperAuthenticationSample to get the war file by running mvn clean install in the root directory. You will need Apache Maven installed on your system to run this command. The .war file is generated in the /target directory.
            Go to the Elastic Beanstalk console, and then click Create New Application.
            Enter an application name, and then click Next.
            Click Create web server. The Permissions window appears.
            Choose the default profile ("aws-elasticbeanstalk-ec2-role"), and then click Next.
            For Predefined Configuration, choose Tomcat. For Environment type, choose Single instance. Click Next.
            For the source, choose the Upload your own option and upload the CognitoDevAuthSample.war file you generated in Step 1. Click Next.
            On the Environment Information page, enter an environment name, URL, and description, and then click Next.
            On the Additional Resources page, no additional resources are required to configure this sample. Click Next.
            On the Configuration Details page, leave the default configuration, and then click Next.
            On the Environment Tags page, leave the tags blank. This sample does not require any environment tags. Click Next.
            On the Review page, review the details, and then click Launch. The console will begin creating an environment. This process will take several minutes.
            Click Configuration , and then click the settings icon to open Software Configuration.
            Under Environment properties , add the following parameters in the custom input field at the bottom of the Property Name column: a. Add a parameter named IDENTITY_POOL_ID, with the value of identity pool id which you have configured using the Amazon Cognito Console. b. Add a parameter named DEVELOPER_PROVIDER_NAME, with the developer provider name which you used while creating this identity pool in the Amazon Cognito Console c. Optionally add a parameter named REGION with the region to use. Cognito is available in us-east-1 and eu-west-1. d. When finished, click Save.
            Go to the Identity & Access Management console.
            Click Roles.
            Select the entry for "aws-elasticbeanstalk-ec2-role."
            Click Attach" Policy.
            Choose "AmazonCognitoDeveloperAuthenticatedIdentities," and then click Attach Policy.
            Register users using any web browser using ElasticBeanStalkApplicationURL/jsp/register.jsp. This URL is listed at the top of the Elastic Beanstalk console homepage and ends in ".elasticbeanstalk.com."

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/aws-samples/amazon-cognito-developer-authentication-sample.git

          • CLI

            gh repo clone aws-samples/amazon-cognito-developer-authentication-sample

          • sshUrl

            git@github.com:aws-samples/amazon-cognito-developer-authentication-sample.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular AWS Libraries

            localstack

            by localstack

            og-aws

            by open-guides

            aws-cli

            by aws

            awesome-aws

            by donnemartin

            amplify-js

            by aws-amplify

            Try Top Libraries by aws-samples

            aws-cdk-examples

            by aws-samplesPython

            aws-serverless-workshops

            by aws-samplesJavaScript

            aws-workshop-for-kubernetes

            by aws-samplesShell

            aws-serverless-airline-booking

            by aws-samplesJavaScript