{"id":22403115,"url":"https://github.com/hellocoop/client-as","last_synced_at":"2025-08-22T10:09:39.510Z","repository":{"id":228079663,"uuid":"773077918","full_name":"hellocoop/client-as","owner":"hellocoop","description":"Authorization Server for Mobile Apps","archived":false,"fork":false,"pushed_at":"2024-07-30T16:55:44.000Z","size":321,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-29T06:48:52.019Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/hellocoop.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,"publiccode":null,"codemeta":null}},"created_at":"2024-03-16T17:25:15.000Z","updated_at":"2024-07-30T16:55:47.000Z","dependencies_parsed_at":"2024-04-02T00:27:13.415Z","dependency_job_id":"9af6ac15-61d3-47bc-bfca-e1dde9445745","html_url":"https://github.com/hellocoop/client-as","commit_stats":null,"previous_names":["hellocoop/as4mobile"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hellocoop/client-as","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellocoop%2Fclient-as","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellocoop%2Fclient-as/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellocoop%2Fclient-as/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellocoop%2Fclient-as/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellocoop","download_url":"https://codeload.github.com/hellocoop/client-as/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellocoop%2Fclient-as/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271620529,"owners_count":24791566,"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-08-22T02:00:08.480Z","response_time":65,"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":[],"created_at":"2024-12-05T09:16:10.499Z","updated_at":"2025-08-22T10:09:39.447Z","avatar_url":"https://github.com/hellocoop.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# client_as\n\nAuthorization Server for Mobile Apps\n\n## Environment Configuration\n\n### PORT\n- default 3000\nhttp port to listen on \n\n### HOST\n- default `http://localhost:${PORT}`\nhostname to be used in issuer ('iss' claim in access_token) -- will be `https:${HOST}` \n\n### NODE_ENV\n- default is `undefined`\n`'production'|'development'`\n\n### REDIS_HOST\ntbd\n\n\n### USE_DPOP\n- default is `undefined`\nset to any value to enable checking for DPoP header and returns `\"token_type\":\"DPoP\"` rather than `\"token_type\":\"Bearer\"` from token endpoint\n\n## Webview \n```\nPOST /token HTTP/1.1\nHost: app.tiltingpoint.com\nContent-Type: application/x-www-form-urlencoded\n\ngrant_type=cookie_token\n```\nreturns\n```\n200\n{\n    \"loggedIn\":false,\n    \"nonce\":\"1234567890\"\n}\n```\nUser is not logged in. Start a login flow with the returned nonce value. Once logged in, it will return\n\n```\n200\n\n{\n    \"loggedIn\":true\n}\n```\n\nUser is logged in. access_token and refresh_token cookies have been created and updated\n\n\n## SDK\n\nAfter the user has successfully logged in, call \n\n```\nPOST /token HTTP/1.1\nHost: app.tiltingpoint.com\nContent-Type: application/x-www-form-urlencoded\nDPoP: zzzzz\n\ngrant_type=authorization_code\u0026\nclient_id=SDK-1.0.0\ncode=\u003cnonce\u003e\n```\n\nwill return\n```\n{\n    \"access_token\": \"xxx\",\n    \"token_type\": \"DPoP\",\n    \"refresh_token\": \"yyy\",\n    \"expires_in\": 300\n}\n```\nRefreshing an access token\n\n```\nPOST /token HTTP/1.1\nHost: app.tiltingpoint.com\nContent-Type: application/x-www-form-urlencoded\nDPoP: zzzzz\n\nRefresh\ngrant_type=refresh_token\u0026\nrefresh_token=yyy\n```\n\n## Endpoints\n\n### /token // public\n\ngrant_type=\"cookie_token\"\ndevice_info ???\n\n### /jwks\n\n### /revoke\n\n### /.wellknown/oauth-authorization-server\n\n### /login\n    - called by client after successful login\n\n\n\n\n## Development\n\n- clone repo\n- `npm i` to install all node modules\n- `npx playwright install` to install Playwright binaries to test with\n\n`npm test` will run fastify.inject() tests\n\n`npm run playwright` will start all the services with docker compose and then run the Playwright tests for browser interactions","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellocoop%2Fclient-as","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellocoop%2Fclient-as","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellocoop%2Fclient-as/lists"}