{"id":13908500,"url":"https://github.com/rabahs/tvos-oauth-server","last_synced_at":"2025-04-15T18:18:14.479Z","repository":{"id":141932143,"uuid":"85621406","full_name":"rabahs/tvos-oauth-server","owner":"rabahs","description":"tvOS OAuth is Remote oauth2 service (using activation code) for tvOS  (tested with Amazon Login, Dropbox)","archived":false,"fork":false,"pushed_at":"2017-03-22T04:18:50.000Z","size":125,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T18:18:05.345Z","etag":null,"topics":["amazon","amazon-api","authentication","dropbox","dropbox-api","ios","oauth2","secret","tvos"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rabahs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2017-03-20T20:12:59.000Z","updated_at":"2022-12-21T23:19:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"e3c25cb5-2639-42ea-9203-eb0fc3901b8e","html_url":"https://github.com/rabahs/tvos-oauth-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rabahs%2Ftvos-oauth-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rabahs%2Ftvos-oauth-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rabahs%2Ftvos-oauth-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rabahs%2Ftvos-oauth-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rabahs","download_url":"https://codeload.github.com/rabahs/tvos-oauth-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249125998,"owners_count":21216705,"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","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":["amazon","amazon-api","authentication","dropbox","dropbox-api","ios","oauth2","secret","tvos"],"created_at":"2024-08-06T23:02:46.822Z","updated_at":"2025-04-15T18:18:14.460Z","avatar_url":"https://github.com/rabahs.png","language":"Python","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# Remote Authenticator Service for tvOS\n\nEnable users of your tvOS app to authenticate with Amazon (or potentially other oauth services) using an activation code on a mobile or desktop browser.\n\nComes with docker-compose to easily deploy to any Docker hosting service (e.g AWS or Digital Ocean) \n\nAlso check [tvOS client](https://github.com/rabahs/tvos-oauth)\n\n![Diagram](tvos_authenticator.png)\n \n## Production deployment\n\n- Setup docker host with docker-machine \n```\n    # provision a docker machine on Digital Ocean or AWS\n    # https://www.digitalocean.com/community/tutorials/how-to-provision-and-manage-remote-docker-hosts-with-docker-machine-on-ubuntu-16-04\n    # example:\n    docker-machine create --driver digitalocean --digitalocean-access-token $DOTOKEN tvosauth\n    \n    # or AWS\n    docker-machine create --amazonec2-region us-west-2 --amazonec2-vpc-id vpc-1a745a7f --driver amazonec2 tvosauth\n    \n    \n    # Verify docker machine is running\n    docker-machine ls\n    \n    # Point docker client to the new docker machine \n    docker-machine env tvosauth\n    eval $(docker-machine env tvosauth)\n    \n```\n\n\n- Set env variables \n    - Rename .env_example to .env and update your production credentials and settings there  \n        - AWS_CLIENT_ID: Your Amazon app client id\n        - AWS_CLIENT_SECRET: your Amazon app client secret\n        - SECRET_KEY: Your own random generated secret key (can use http://www.miniwebtool.com/django-secret-key-generator/)\n        - PUBLIC_URL: The public url for your authentication url (e.g. \"auth.indiekit.com\" )\n\n\n- Set SSL certificate for https access\n\n    - Create a folder named .ssl under /nginx directory \n    - Copy your SSL certificate file (SSL.crt) and certificate key (server.key) files there  (use the exact file names)\n\n\n- Run all docker containers \n```\n    docker-compose up -d\n```\n\n- Run database migrations\n\t\n```\n    docker-compose run --no-deps --rm web python migrate.py db upgrade\n```  \n\n\n- Generate api key and secret for your client app  (make sure to copy the key and secret after your run the command)\n\t\n```\n    docker-compose run --no-deps --rm web python manage.py create_app --name \"TVOSOAUTH\"\n\n```\n\n- You can now use the $PUBLIC_URL/activate with the generated api key and secret in your tvOS app for authentication \n \n\n\n## For dev environment setup\n\n- Check [development section](/web/README.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frabahs%2Ftvos-oauth-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frabahs%2Ftvos-oauth-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frabahs%2Ftvos-oauth-server/lists"}