Skip to content
A Progressive Web Application example using Angular 7
TypeScript HTML JavaScript CSS
Branch: master
Clone or download
Pull request Compare This branch is 2 commits ahead of holgerschmitz:master.
Latest commit 4996e9c Feb 12, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
e2e initial commit Nov 27, 2018
src Added authentication Dec 16, 2018
.editorconfig initial commit Nov 27, 2018
.gitignore initial commit Nov 27, 2018 Polishing Feb 12, 2019
angular.json Created an Angular PWA Nov 27, 2018
ngsw-config.json Created an Angular PWA Nov 27, 2018
package-lock.json Added authentication Dec 16, 2018
package.json Added authentication Dec 16, 2018
tsconfig.json initial commit Nov 27, 2018
tslint.json initial commit Nov 27, 2018

Angular 7 PWA Example

This example shows how to build a search app with Angular 7, Angular CLI, and Angular Material.

Please read Build Your First PWA with Angular to see how this app was created.

Prerequisites: Node.js.

Okta 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.

Getting Started

To install this example application, run the following commands:

git clone
cd okta-angular-pwa-example

This will get a copy of the project installed locally. To install all of its dependencies and start each app, follow the instructions below.

Run the app using:

npm install
npm start

Create a New OIDC App in Okta

To create a new OIDC app on Okta:

  1. Log in to your developer account, navigate to Applications, and click on Add Application.
  2. Select Single-Page App and click Next.
  3. Give the application a name, change all instances of localhost:8080 to localhost:4200 and click Done.

Set your issuer and copy the clientId in to src/app/app.module.ts.

NOTE: The value of {yourOktaDomain} should be something like Make sure you don't include -admin in the value!

  issuer: 'https://{yourOktaDomain}/oauth2/default',
  redirectUri: 'http://localhost:8080/implicit/callback',
  clientId: '{clientId}'


This example uses the following open source libraries from Okta:


Please post any questions as comments on the blog post, or visit our Okta Developer Forums. You can also email if would like to create a support ticket.


Apache 2.0, see LICENSE.

You can’t perform that action at this time.