{"id":19686353,"url":"https://github.com/closeio/authalligator-client","last_synced_at":"2025-10-13T06:33:15.303Z","repository":{"id":66129435,"uuid":"298583054","full_name":"closeio/authalligator-client","owner":"closeio","description":"A python client for the authalligator service","archived":false,"fork":false,"pushed_at":"2023-02-27T13:04:39.000Z","size":63,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-06-10T14:01:22.101Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/closeio.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}},"created_at":"2020-09-25T13:37:56.000Z","updated_at":"2022-09-26T21:57:31.000Z","dependencies_parsed_at":"2024-11-11T18:32:48.546Z","dependency_job_id":"5bd39c52-a8ee-4f46-8f02-ff95a5d0efef","html_url":"https://github.com/closeio/authalligator-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/closeio/authalligator-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/closeio%2Fauthalligator-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/closeio%2Fauthalligator-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/closeio%2Fauthalligator-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/closeio%2Fauthalligator-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/closeio","download_url":"https://codeload.github.com/closeio/authalligator-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/closeio%2Fauthalligator-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260427397,"owners_count":23007503,"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":[],"created_at":"2024-11-11T18:27:41.851Z","updated_at":"2025-10-13T06:33:10.246Z","avatar_url":"https://github.com/closeio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AuthAlligator Client\nA python client for the AuthAlligator OAuth token management service.\n\n## Usage\n\n```python\nfrom authalligator_client.client import Client\nfrom authalligator_client.enums import ProviderType\nfrom authalligator_client.exceptions import AccountError\n\nclient = Client(token='my-secret-token', service_url='authalligator.example.com')\n\ntry:\n    authorize_result = client.authorize_account(\n        provider=ProviderType.MICROSOFT,\n        authorization_code='my-code',\n        redirect_uri='mysite.example.com/oauth2/microsoft/callback',\n    )\n    print(\"Got an access token + key for refreshing!\")\n    print(\"Access Key:\", authorize_result.access_key)\n    print(\"Username:\", authorize_result.account.username)\n    print(\"Provider:\", authorize_result.account.provider)\n    print(\"Access Token:\", authorize_result.account.access_token)\n    print(\"Access Token Expiry:\", authorize_result.account.access_token_expires_at)\nexcept AccountError as e:\n    print(\"encountered an error!\", e.code, e.message)\n\ntry:\n    account_result = client.query_account(\n        provider=authorize_result.account.provider,\n        username=authorize_result.account.username,\n        account_key=authorize_result.account_key,\n    )\n    print(\"New Access Token:\". account_result.access_token)\nexcept AccountError as e:\n    print(\"Encountered an error!\", e.code, e.message)\n```\n\n## Running Tests\n\nRunning tests is simple with docker:\n\n```bash\n$ docker-compose run --rm authalligator_client pytest\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloseio%2Fauthalligator-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloseio%2Fauthalligator-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloseio%2Fauthalligator-client/lists"}