{"id":21069306,"url":"https://github.com/selcuksert/oauth-oidc-spa","last_synced_at":"2025-05-16T04:34:23.203Z","repository":{"id":42834662,"uuid":"254187887","full_name":"selcuksert/oauth-oidc-spa","owner":"selcuksert","description":"A sample project on OAuth \u0026 OpenID Connect using Angular as SPA Client, SpringBoot as ResourceServer and Keycloak as IdP","archived":false,"fork":false,"pushed_at":"2022-10-17T16:33:01.000Z","size":3249,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T20:21:42.063Z","etag":null,"topics":["angular","keycloak","oauth2","openidconnect","singlepageapplication","springboot"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/selcuksert.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}},"created_at":"2020-04-08T20:00:36.000Z","updated_at":"2025-01-17T15:32:47.000Z","dependencies_parsed_at":"2023-01-20T02:17:38.770Z","dependency_job_id":null,"html_url":"https://github.com/selcuksert/oauth-oidc-spa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selcuksert%2Foauth-oidc-spa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selcuksert%2Foauth-oidc-spa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selcuksert%2Foauth-oidc-spa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selcuksert%2Foauth-oidc-spa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/selcuksert","download_url":"https://codeload.github.com/selcuksert/oauth-oidc-spa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254470303,"owners_count":22076566,"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":["angular","keycloak","oauth2","openidconnect","singlepageapplication","springboot"],"created_at":"2024-11-19T18:34:10.844Z","updated_at":"2025-05-16T04:34:18.184Z","avatar_url":"https://github.com/selcuksert.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oauth-oidc-spa\nThis repository hosts a sample project on [OAuth \u0026 OIDC Authorization Code Flow with PKCE](https://tools.ietf.org/html/rfc7636) that comprises of an Angular \u0026amp; Polymer based SPA (Single Page App) [client](/client/auth-app), Spring Boot based [resource server](/resourceserver), Keycloak [authorization server](/idp) and an [OpenLDAP](https://www.openldap.org/) based directory server.\n\nThis is a PoC for the Linkedin Blog: [Single Page Application Security with OAuth and OpenID Connect](https://www.linkedin.com/pulse/single-page-application-security-oauth-openid-connect-selcuk-sert?trk=public_profile_article_view)\n\n## Authorization Code Flow \u0026 PKCE\nThe project relies on [OAuth \u0026 OIDC Authorization Code Flow with PKCE](https://tools.ietf.org/html/rfc7636) that is the [recommended method](https://developer.okta.com/blog/2019/08/22/okta-authjs-pkce) to use for SPA clients instead of implicit flow:\n\n![PKCE](/doc/images/OAuth2-OIDC.jpg)\n\nThe libraries/solutions in place are in [Certified OpenID Connect Implementations](https://openid.net/developers/certified/) list:\n\n* [**Client:**](/client/auth-app) Two alternatives are available for use:\n  * [angular-oauth2-oidc](https://github.com/manfredsteyer/angular-oauth2-oidc)   \n  * [oidc-client-js](https://github.com/IdentityModel/oidc-client-js)\n* [**Authorization Server:**](/idp) [Keycloak](https://www.keycloak.org/)\n\nThe basic project architecture is as follows (in Archimate standard):\n\n![Architecture](/doc/images/arch.jpg)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselcuksert%2Foauth-oidc-spa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fselcuksert%2Foauth-oidc-spa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselcuksert%2Foauth-oidc-spa/lists"}