{"id":18614805,"url":"https://github.com/andrewjbateman/angular-graphql-okta","last_synced_at":"2026-04-30T11:32:54.959Z","repository":{"id":96858611,"uuid":"482318604","full_name":"AndrewJBateman/angular-graphql-okta","owner":"AndrewJBateman","description":":clipboard: Angular with Okta used to limit access to data using login","archived":false,"fork":false,"pushed_at":"2023-06-04T19:20:05.000Z","size":2057,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T20:53:27.663Z","etag":null,"topics":["angular","angular-material16","angular16","apollo-angular","authentication","css3","graphql","material","okta","typescript","uuid-generator"],"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/AndrewJBateman.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":"2022-04-16T17:28:21.000Z","updated_at":"2023-06-04T19:16:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"249e4130-0a34-41df-810a-8ce61947bcf1","html_url":"https://github.com/AndrewJBateman/angular-graphql-okta","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndrewJBateman/angular-graphql-okta","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-graphql-okta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-graphql-okta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-graphql-okta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-graphql-okta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/angular-graphql-okta/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-graphql-okta/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32463892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"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-material16","angular16","apollo-angular","authentication","css3","graphql","material","okta","typescript","uuid-generator"],"created_at":"2024-11-07T03:27:04.407Z","updated_at":"2026-04-30T11:32:54.940Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :zap: Angular GraphQL Okta\n\n* Angular used with Material components, Okta access control, GraphQL + Apollo to view a backend data set.\n* **Note:** to open web links in a new window use: _ctrl+click on link_\n\n![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/angular-graphql-okta?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/angular-graphql-okta?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/angular-graphql-okta?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/angular-graphql-okta?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: Angular GraphQL Okta](#zap-angular-graphql-okta)\n  * [:page\\_facing\\_up: Table of contents](#page_facing_up-table-of-contents)\n  * [:books: General info](#books-general-info)\n  * [:camera: Screenshots](#camera-screenshots)\n  * [:signal\\_strength: Technologies](#signal_strength-technologies)\n  * [:floppy\\_disk: Setup](#floppy_disk-setup)\n  * [:wrench: Testing](#wrench-testing)\n  * [:computer: Code Examples](#computer-code-examples)\n  * [:cool: Features](#cool-features)\n  * [:clipboard: Status, Testing \\\u0026 To-Do List](#clipboard-status-testing--to-do-list)\n  * [:clap: Inspiration](#clap-inspiration)\n  * [:file\\_folder: License](#file_folder-license)\n  * [:envelope: Contact](#envelope-contact)\n\n## :books: General info\n\n** Frontend\n\n* Angular frontend uses Okta for auth login/logout with [OAuth 2.0 Authorization Code with PKCE flow](https://developer.okta.com/docs/guides/implement-grant-type/authcodepkce/main/#create-the-proof-key-for-code-exchange)\n* `Data` page displays table of database data with working filter input\n\n** Backend\n\n* Apollo-server resolvers used to process GraphQL operations on database data\n* uuid creates a unique id string for each part\n\n## :camera: Screenshots\n\n![Image](./imgs/data.png)\n\n## :signal_strength: Technologies\n\n* [Angular v16](https://angular.io/) javascript framework\n* [Okta Angular SDK v4](https://github.com/okta/okta-angular)\n* [Okta CLI](https://github.com/okta/okta-cli)\n* [Okta](https://developer.okta.com/) has Authentication and User Management APIs that reduce development time with instant-on, scalable user infrastructure.\n* [GraphQL v16](https://graphql.org/) API query language\n* [Angular Material v16](https://material.angular.io/) menu toolbar \u0026 table to display data  \n* [Apollo Client v3](https://www.apollographql.com/docs/react/) used with [Apollo-Angular v3](https://apollo-angular.com/) GraphQL Client for Angular Framework\n\n* [Node.js v18](https://nodejs.org/) Javascript runtime using the [Chrome V8 engine](https://v8.dev/\n* [Apollo Server v3](https://www.apollographql.com/docs/apollo-server/getting-started/) for unified data communications\n* [uuid v9](https://www.npmjs.com/package/uuid) to create RFC4122 UUIDs\n\n## :floppy_disk: Setup\n\n** Frontend\n\n* `npm i` to install dependencies\n* You will need to [install the Okta CLI](https://github.com/okta/okta-cli#installation). I installed it on Windows 10 Home using the [Chocolatey package manager](https://chocolatey.org/)\n* You will need an Okta developer account then use `okta login` to integrate it with the Okta CLI.\n* In Okta apps, create a client app then add options: Type of Application: SPA, Redirect URI: `http://localhost:4200/login/callback`, Logout Redirect URI: `http://localhost:4200` (You must add these redirect URIs or login will not work)\n* Add issuer and Client-ID to `app.module.ts`\n* `ng serve` runs frontend on `http://localhost:4200` with auto-restart after changes\n\n** Backend\n\n* `npm i` to install dependencies\n* `npm run dev` to start node server\n\n## :wrench: Testing\n\n* tba\n\n## :computer: Code Examples\n\n* Frontend `graphql.queries.ts` code to define what fields should be returned with a `parts` query\n\n```typescript\nimport { gql } from 'apollo-angular';\n\nconst PARTS_LIST = gql`\n  query {\n    parts {\n      name\n      quantity\n      weight\n      criticalPart\n      createdDate\n    }\n  }\n`;\n\nexport { PARTS_LIST };\n```\n\n## :cool: Features\n\n* Material table to display backend data\n* GraphQL uses strong data types and ensures no over or under-fetching od data\n* Okta Authguard to restrict user access to certain pages\n\n## :clipboard: Status, Testing \u0026 To-Do List\n\n* Status: Working, unfinished.\n* To-Do frontend: new nav bar \u0026 Okta access data.\n* To-Do backend: add data API-postgres? Use filter functions or remove.\n\n## :clap: Inspiration\n\n* [Apollo-Angular documentation](https://apollo-angular.com/docs/development-and-testing/using-typescript)\n\n## :file_folder: License\n\n* This project is licensed under the terms of the MIT license.\n\n## :envelope: Contact\n\n* Repo created by [ABateman](https://github.com/AndrewJBateman), email: `gomezbateman@yahoo.com`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-graphql-okta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fangular-graphql-okta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-graphql-okta/lists"}