We released v1.2.0 of our OktaDev Schematics today. This release contains upgrades for our Angular, React, and Vue SDKs. OktaDev Schematics provide an automated way to install and configure our SDKs.
IMO, the biggest feature in this release is continued compatibility with Angular 9. If you’re planning on upgrading to Angular 9, it’d be great if you could try this release.
Create an App with Angular 9
First, create an empty project with Angular CLI. You must add Angular routing for this schematic to work. Any stylesheet types should work.
npm i -g @firstname.lastname@example.org ng new secure-angular --routing cd secure-angular
Add an OpenID Connect App in Okta
- Log into the Okta Developer Dashboard and click Applications then Add Application.
- Choose Single Page App (SPA) as the platform and click Next.
http://localhost:4200/implicit/callbackas a Login redirect URI and click Done.
secure-angular project, add
ng add @oktadev/schematics
You’ll be prompted for an issuer, which you can find in your Okta dashboard at API > Authorization Servers. For the client ID, use the Client ID from the app you created in Okta.
ng serve and you should be able to login using the button in the bottom left.