{"id":16486302,"url":"https://github.com/jamesbirtles/hapi-oauth","last_synced_at":"2025-10-15T14:09:49.655Z","repository":{"id":40768935,"uuid":"84659853","full_name":"jamesbirtles/hapi-oauth","owner":"jamesbirtles","description":"Allow your users to login with a number of oauth providers","archived":false,"fork":false,"pushed_at":"2022-06-24T08:00:45.000Z","size":51,"stargazers_count":1,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T15:17:36.653Z","etag":null,"topics":["hapi","hapi-plugin","hapi-v17","oauth","oauth2"],"latest_commit_sha":null,"homepage":"","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/jamesbirtles.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}},"created_at":"2017-03-11T15:29:10.000Z","updated_at":"2020-02-20T09:02:23.000Z","dependencies_parsed_at":"2022-09-04T10:01:50.811Z","dependency_job_id":null,"html_url":"https://github.com/jamesbirtles/hapi-oauth","commit_stats":null,"previous_names":["unwrittenfun/hapi-oauth"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesbirtles%2Fhapi-oauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesbirtles%2Fhapi-oauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesbirtles%2Fhapi-oauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesbirtles%2Fhapi-oauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamesbirtles","download_url":"https://codeload.github.com/jamesbirtles/hapi-oauth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247226195,"owners_count":20904465,"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":["hapi","hapi-plugin","hapi-v17","oauth","oauth2"],"created_at":"2024-10-11T13:28:58.552Z","updated_at":"2025-10-15T14:09:44.617Z","avatar_url":"https://github.com/jamesbirtles.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hapi oauth\n\n## Usage\n```ts\nimport * as HapiOAuth from 'hapi-oauth';\n\n// ...\n\nclass ApiOAuthHandler extends HapiOAuth.OAuthHandler {\n    public onLink(res: LinkSuccess, request: Request, reply: IReply): void {\n        // Do your stuff\n    }\n}\n\nserver.register({\n    register: HapiOAuth,\n    options: {\n        handler: new ApiOAuthHandler(),\n        baseUrl: 'http://localhost:8080',\n        requestConfig: {\n            // Change request config values here, e.g. adding optional auth (for linking existing accounts for example)\n            auth: { mode: 'optional', strategy: 'jwt' }\n        },\n        providers: [\n            new HapiOAuth.MixerProvider(\n                'mixerClientId',\n                'mixerClientSecret',\n                ['user:details:self' /* add more scopes here */]\n            ),\n            // Rinse and repeat for other providers.\n        ]\n    }\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesbirtles%2Fhapi-oauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamesbirtles%2Fhapi-oauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesbirtles%2Fhapi-oauth/lists"}