{"id":19542531,"url":"https://github.com/goldenbearkin/angular-cognito-demo","last_synced_at":"2025-08-02T13:33:57.160Z","repository":{"id":113623454,"uuid":"81823584","full_name":"goldenbearkin/angular-cognito-demo","owner":"goldenbearkin","description":"Showcase of Angular authentication flow with Amazon Cognito","archived":false,"fork":false,"pushed_at":"2017-02-13T12:43:00.000Z","size":102,"stargazers_count":8,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-26T17:46:58.916Z","etag":null,"topics":["angular","angular-cli","angular-material","aws-cognito","typescript"],"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/goldenbearkin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2017-02-13T12:37:09.000Z","updated_at":"2018-12-09T05:53:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"2b4ca3cf-ea9e-4493-8fa8-99116f228c65","html_url":"https://github.com/goldenbearkin/angular-cognito-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/goldenbearkin/angular-cognito-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldenbearkin%2Fangular-cognito-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldenbearkin%2Fangular-cognito-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldenbearkin%2Fangular-cognito-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldenbearkin%2Fangular-cognito-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goldenbearkin","download_url":"https://codeload.github.com/goldenbearkin/angular-cognito-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldenbearkin%2Fangular-cognito-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268399369,"owners_count":24244434,"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-02T02:00:12.353Z","response_time":74,"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":["angular","angular-cli","angular-material","aws-cognito","typescript"],"created_at":"2024-11-11T03:15:00.005Z","updated_at":"2025-08-02T13:33:57.142Z","avatar_url":"https://github.com/goldenbearkin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular Cognito Demo\nAn showcase of Angular web app utilizing Amazon Cognito.\n\n## Todos (priority order)\n* intergrate with Apollo client\n* migrate to ngrx v3 (not yet released)\n* write unit tests for widget components\n\n## Known issues\n1. The callback type of cognitoUser.authenticateUser hasn't marked the newPasswordRequired, mfaRequired, customChallenge\nas optional. Now just declare as no-op. Need to remove after #238 get fixed.\n``` typescript\nexport class UserLoginService {\n\n  constructor(private cognitoUtilityService: CognitoUtilityService) { }\n\n  private _authCognito$(alias: string, password: string): Observable\u003c{ idToken: string }\u003e {\n    ...\n\n    return Observable.create((observer: Observer\u003c{ idToken: string }\u003e) =\u003e {\n      cognitoUser.authenticateUser(authenticationDetails, {\n        onSuccess: session =\u003e {\n          observer.next({ idToken: session.getIdToken().getJwtToken() });\n          observer.complete();\n        },\n        onFailure: error =\u003e observer.error(error),\n        newPasswordRequired: () =\u003e {}, // no-op\n        mfaRequired: () =\u003e {},  // no-op\n        customChallenge: () =\u003e {} // no-op\n      });\n    });\n  }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoldenbearkin%2Fangular-cognito-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoldenbearkin%2Fangular-cognito-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoldenbearkin%2Fangular-cognito-demo/lists"}