Git Product home page Git Product logo

awscognitomanagement-api's Introduction

AWS Cognito Management RESTful API

Simple and complete Restful API that allows you to manage users, appclients and resource servers.

codebeat badge

The problem

You want to access AWS Cognito resources through a customize API without touching the AWS UI. As part of this goal, AWS Cognito Management API allows you to access different Cognito resources very easy and efficient.

This solution

The AWS Cognito Management API is a very lightweight solution for using this Restful API for managing different services from AWS. It provides light utility functionality.

Instalation

Start by building a development environment

  1. Install the dependencies of project
$ pip install -r requirements.txt
  1. Config the file with the correct env variables
$ config.py
  1. Run the AWS Cognito Management API
$ export FLASK_APP=api
$ flask run

Endpoints Structure

Endpoint Method Description
/users/ GET List all users
/users/ POST Create a new user
/users/{username} GET Get the specific user based on the username
/users/{username} DELETE Delete the specific user based on the username
/users/{username} PUT Update the specific user based on the username
/appclients/ GET List all appclients
/appclients/ POST Create a new appclient
/appclients/{clientId} GET Get the specific appclient based on the clientId
/appclients/{clientId} DELETE Delete a specific appclient based on the clientId
/scopes/ GET List all scopes
/scopes/ POST Create a new scope
/scopes/{identifier} DELETE Delete the specific scope based on the identifier

Deployment

Used gunicorn for production, because Gunicorn is a WSGI server that takes care of everything which happens in-between the web server and the web application. It is used because it is stable and can handle more requests at once and is very fast.

Docker deploy

  1. Go to your root folder where the Dockerfile is located: Run this
docker build -t aws-api .
  1. Run the docker image
docker run -d -p 5000:5000 aws-api

Access the aws-api on localhost:5000/api/v1

License & Author

License ยฉ MIHAIL BUTNARU

Made with ๐Ÿ’– Mihail Butnaru

awscognitomanagement-api's People

Contributors

mihailbutnaru avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  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.