{"id":37403469,"url":"https://github.com/oslokommune/okdata-token-service","last_synced_at":"2026-01-16T05:48:23.949Z","repository":{"id":37962214,"uuid":"379855186","full_name":"oslokommune/okdata-token-service","owner":"oslokommune","description":"REST API for generating user tokens with Keycloak","archived":false,"fork":false,"pushed_at":"2026-01-12T08:44:32.000Z","size":823,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-01-12T18:28:30.926Z","etag":null,"topics":["dataplatform"],"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/oslokommune.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":"2021-06-24T08:23:41.000Z","updated_at":"2026-01-12T08:44:35.000Z","dependencies_parsed_at":"2023-10-03T12:46:36.728Z","dependency_job_id":"6a030228-48a6-48fc-9b8d-d5fbb9c945af","html_url":"https://github.com/oslokommune/okdata-token-service","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oslokommune/okdata-token-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oslokommune%2Fokdata-token-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oslokommune%2Fokdata-token-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oslokommune%2Fokdata-token-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oslokommune%2Fokdata-token-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oslokommune","download_url":"https://codeload.github.com/oslokommune/okdata-token-service/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oslokommune%2Fokdata-token-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dataplatform"],"created_at":"2026-01-16T05:48:23.850Z","updated_at":"2026-01-16T05:48:23.929Z","avatar_url":"https://github.com/oslokommune.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Token Service\n======================\n\nREST API for creating access tokens in Keycloak from user and client credentials.\n\n## Setup\n\n1. [Install Serverless Framework](https://serverless.com/framework/docs/getting-started/)\n2. Install plugins:\n```\nsls plugin install -n serverless-python-requirements\nsls plugin install -n serverless-aws-documentation\n```\n\n## Running tests\n\nTests are run using [tox](https://pypi.org/project/tox/).\n\n```\n$ tox\n```\nOr\n```\n$ make test\n```\n\n## Deploy\n\nDeploy to both dev and prod is automatic via GitHub Actions on push to\n`main`. You can alternatively deploy from local machine with: `make deploy` or\n`make deploy-prod`.\n\n## Input event\n\nInput event is a [lambda http proxy request event](https://serverless.com/framework/docs/providers/aws/events/apigateway/#example-lambda-proxy-event-default) with body:\n```json\n{\n  \"username\": \"user1\",\n  \"password\": \"password123\"\n}\n```\n\n## Output\n\nOutput is a [lambda http proxy response event](https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html#api-gateway-simple-proxy-for-lambda-output-format) with body:\n```json\n{\n    \"access_token\": \"some-access-token\",\n    \"expires_in\": 300,\n    \"refresh_expires_in\": 1800,\n    \"refresh_token\": \"some-refresh-token\",\n    \"token_type\": \"bearer\",\n    \"not-before-policy\": 1563194597,\n    \"session_state\": \"some-uuid\",\n    \"scope\": \"profile email\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foslokommune%2Fokdata-token-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foslokommune%2Fokdata-token-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foslokommune%2Fokdata-token-service/lists"}