Giter Club home page Giter Club logo

apigw-cognito's Introduction

Amazon Cognito 기반 Amazon API Gateway 인증

Amazon Cognito 사용자 풀을 통해서 Amazo API Gateway를 통해서 생성한 REST API 매서드 인증 데모

AWS 데모 환경 생성

  1. 테라폼 코드가 있는 디렉토리로 이동

    cd terraform
    
  2. 테라폼 코드 실행

    terraform apply
    
  3. 테라폼 코드 실행 후 출력되는 변수 확인

    aws_cognito_user_pool_client_id=xxxxxxx
    api_invoke_url=xxxxxxx
    

테스트

  1. 데모 애플리케이션 코드가 있는 디렉토리로 이동

    cd source
    
  2. 애플리케이션 실행에 필요한 라이브러리 설치

    pip install -r requirements.txt
    
  3. 애플리케이션 소스 코드 수정 - cognito.py

    CLIENT_ID=테라폼 출력에서 확인한 aws_cognito_user_pool_client_id 값
    API_URL=테라폼 출력에서 확인한 api_invoke_url 값
    
  4. 애플리케이션 실행

    python cognito.py
    

apigw-cognito's People

Contributors

youngwjung avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.