{"id":20307448,"url":"https://github.com/oktadev/okta-angular-material-login-example","last_synced_at":"2025-04-11T15:12:00.558Z","repository":{"id":45078904,"uuid":"229346920","full_name":"oktadev/okta-angular-material-login-example","owner":"oktadev","description":"Angular Material Login Example","archived":false,"fork":false,"pushed_at":"2022-01-10T13:55:03.000Z","size":532,"stargazers_count":20,"open_issues_count":0,"forks_count":23,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T11:21:26.134Z","etag":null,"topics":["angular","angular-material","login","material-design"],"latest_commit_sha":null,"homepage":"https://developer.okta.com/blog/2020/01/21/angular-material-login","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"holgerschmitz/angular-material-tic-tac-toe","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oktadev.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":"2019-12-20T22:45:32.000Z","updated_at":"2025-03-18T22:22:26.000Z","dependencies_parsed_at":"2022-12-13T12:27:22.000Z","dependency_job_id":null,"html_url":"https://github.com/oktadev/okta-angular-material-login-example","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/oktadev%2Fokta-angular-material-login-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-angular-material-login-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-angular-material-login-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-angular-material-login-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oktadev","download_url":"https://codeload.github.com/oktadev/okta-angular-material-login-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248429110,"owners_count":21101783,"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","angular-material","login","material-design"],"created_at":"2024-11-14T17:17:44.234Z","updated_at":"2025-04-11T15:12:00.480Z","avatar_url":"https://github.com/oktadev.png","language":"TypeScript","readme":"# Angular Material Login Example\n\nThis example app shows how to create an app with Angular Material and add a fully-functional Login form to it.\n\nPlease read [Build a Beautiful App + Login with Angular Material](https://developer.okta.com/blog/2020/01/21/angular-material-login) to see how this app was created.\n\n**Prerequisites:**\n\n* [Node 12+](https://nodejs.org/en/) installed\n* An [Okta Developer Account](https://developer.okta.com/signup)\n\n\u003e [Okta](https://developer.okta.com/) has Authentication and User Management APIs that reduce development time with instant-on, scalable user infrastructure. Okta's intuitive API and expert support make it easy for developers to authenticate, manage and secure users and roles in any application.\n\n* [Getting Started](#getting-started)\n* [Links](#links)\n* [Help](#help)\n* [License](#license)\n\n## Getting Started\n\nTo install this example application, run the following commands:\n\n```bash\ngit clone https://github.com/oktadeveloper/okta-angular-material-login-example.git\ncd okta-angular-material-login-example\nnpm install\n```\n\n### Create an OIDC App on Okta\n\nBefore you begin, you'll need a free Okta developer account. Install the [Okta CLI](https://cli.okta.com) and run `okta register` to sign up for a new account. If you already have an account, run `okta login`.\n\nThen, run `okta apps create`. Select the default app name, or change it as you see fit. Choose **Single-Page App** and press **Enter**.\n\nChange the Redirect URI to `http://localhost:4200/login` and accept the default Logout Redirect URI of `http://localhost:4200`.\n\nThe Okta CLI will create an OIDC Single-Page App in your Okta Org. It will add the redirect URIs you specified and grant access to the Everyone group. It will also add a trusted origin for `http://localhost:4200`. You will see output like the following when it's finished:\n\n```\nOkta application configuration:\nIssuer:    https://dev-133337.okta.com/oauth2/default\nClient ID: 0oab8eb55Kb9jdMIr5d6\n```\n\n**NOTE:** You can also use the Okta Admin Console to create your app. See [Create an Angular App](https://developer.okta.com/docs/guides/sign-into-spa/angular/create-okta-application/) for more information.\n\n### Configure your Okta Settings\n\nCopy your org URL and client ID into `src/app/auth.service.ts`:\n\n```js\nprivate authClient = new OktaAuth({\n  issuer: 'https://{YourOktaDomain}/oauth2/default',\n  clientId: '{ClientId}'\n});\n```\n\nStart everything with `ng serve` and you'll be able to login with Angular Material and Okta!\n\n## Links\n\nThis example uses the following open source libraries:\n\n* [Angular](https://angular.io)\n* [Okta Auth JavaScript SDK](https://github.com/okta/okta-auth-js)\n\n## Help\n\nPlease post any questions as issues in this repository, or visit our [Okta Developer Forums](https://devforum.okta.com/).\n\n## License\n\nApache 2.0, see [LICENSE](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-angular-material-login-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktadev%2Fokta-angular-material-login-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-angular-material-login-example/lists"}