{"id":23010039,"url":"https://github.com/dmdhrumilmistry/sso-flask","last_synced_at":"2026-04-29T20:33:00.295Z","repository":{"id":104977894,"uuid":"528157022","full_name":"dmdhrumilmistry/SSO-Flask","owner":"dmdhrumilmistry","description":"SSO API written in python using flask framework","archived":false,"fork":false,"pushed_at":"2022-09-11T13:35:18.000Z","size":82,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-06T22:44:42.170Z","etag":null,"topics":["aws","dynamodb","flask","flask-application"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmdhrumilmistry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-08-23T20:45:00.000Z","updated_at":"2022-09-10T20:54:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"bd258b43-56bb-421c-8951-febd65f0bec9","html_url":"https://github.com/dmdhrumilmistry/SSO-Flask","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dmdhrumilmistry/SSO-Flask","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmdhrumilmistry%2FSSO-Flask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmdhrumilmistry%2FSSO-Flask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmdhrumilmistry%2FSSO-Flask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmdhrumilmistry%2FSSO-Flask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmdhrumilmistry","download_url":"https://codeload.github.com/dmdhrumilmistry/SSO-Flask/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmdhrumilmistry%2FSSO-Flask/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275773430,"owners_count":25526037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-18T02:00:09.552Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","dynamodb","flask","flask-application"],"created_at":"2024-12-15T09:16:47.635Z","updated_at":"2025-09-18T13:29:04.614Z","avatar_url":"https://github.com/dmdhrumilmistry.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSO Flask\n\nA python application written using Flask to reduce creating passwords on several websites for logging in\n\n![SSO-Flask-Arch](.images/SSO-Flask-Arch.png)\n\n## How websites can use it\n\n- Ask user to Sign Up/Login using the hosted API\n- Generate token for website domain\n- Use generated token to authenticate user for accessing website\n- Release generated token for the domain\n\n![Usage](.images/SSO-Flask.png)\n\n## API endpoints\n\n|         Endpoint         | METHOD |        Params         | Desc                                                                                                     |\n| :----------------------: | :----: | :-------------------: | :------------------------------------------------------------------------------------------------------- |\n|    /api/user/generate    |  POST  |      email, name      | returns msg and authToken                                                                                |\n|     /api/user/getId      |  POST  |       authToken       | returns userId                                                                                           |\n|    /api/user/details     |  POST  |       authToken       | returns user details (full name, tokens generated domains, and masked email id)                          |\n| /api/user/token/generate |  POST  | authToken, id, domain | returns new token for requested website, use this endpoint to reset web token                            |\n|  /api/user/token/status  |  POST  | authToken, id, domain | returns if token is still valid or not (should be used by website's backend server to get token status ) |\n| /api/user/token/release  |  POST  | authToken, id, domain | revokes token for assigned domain                                                                        |\n\n## Users table in DynamoDB\n\n|                  id                  |      name      | emailId              | auth_tokens                                                            |\n| :----------------------------------: | :------------: | :------------------- | :--------------------------------------------------------------------- |\n| 0e2xx8fc-5xex-47x1-99xx-0869adxxxxxx | your-full-name | your-email@domain.co | {\"domain-01\":\"token-01\",\"domain-02\":\"token-02\",\"domain-03\":\"token-03\"} |\n\n## Installation and Usage\n\n### For Debian based OSes\n\n- Install curl\n\n  ```bash\n  sudo apt install curl -y\n  ```\n\n- Use `install.sh` script from repo\n\n  ```bash\n  bash -c \"$(curl -fsSL https://raw.githubusercontent.com/dmdhrumilmistry/SSO-Flask/main/install.sh)\"\n  ```\n\n### Manual Method\n\n- Clone/Download repo\n\n  ```bash\n  git clone --depth=1 https://github.com/dmdhrumilmistry/SSO-Flask.git\n  ```\n\n- Change directory\n\n  ```bash\n  cd SSO-Flask\n  ```\n\n- Install requirements\n\n  ```bash\n  python -m pip install -r requirements.txt\n  ```\n\n  \u003e ubuntu/debian users might need to use `python3` instead of `python`\n\n- Create a new `.env` file with AWS creds in `SSO-Flask` directory\n\n  ```bash\n  AWS_ACCESS_KEY_ID='aws-access-key-id'\n  AWS_SECRET_ACCESS_KEY='aws-secret-access-key'\n  AWS_REGION_NAME='your-aws-zone'\n  ```\n\n  \u003e Programmatic access is required to perform this action\n\n- Start waitress server\n\n  ```bash\n  waitress-serve --listen=*:5000 app:app\n  ```\n\n  \u003e Allow HTTP traffic on port 5000 for EC2 instance\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmdhrumilmistry%2Fsso-flask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmdhrumilmistry%2Fsso-flask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmdhrumilmistry%2Fsso-flask/lists"}