schematics

Schematics for adding Okta and Auth0 Auth to your projects

APACHE-2.0 License

Downloads
3K
Stars
73
Committers
4

Bot releases are hidden (Show)

schematics - v1.2.0

Published by mraible over 4 years ago

schematics - v1.1.4

Published by mraible almost 5 years ago

Updates the Okta Angular SDK to 1.3.1 (which supports Angular 9). Also updates Okta React SDK to 1.3.1.

schematics - v1.1.3

Published by mraible almost 5 years ago

Release to fix whitelist logic in Angular AuthInterceptor.

schematics - v1.1.2

Published by mraible almost 5 years ago

Downgrade Okta Angular SDK to 1.2.2 to fix issue with Angular 9.

schematics - v1.1.1

Published by mraible almost 5 years ago

Upgraded to Okta's React Native 1.3.0 and added allowedOrigins to Angular interceptor. See https://github.com/oktadeveloper/schematics/pull/191 for details.

schematics - v1.1.0

Published by mraible almost 5 years ago

Upgrades dependencies to their latest releases, including minor version upgrades for Okta's JS SDKs. See https://github.com/oktadeveloper/schematics/pull/188 for specific version numbers.

New minor versions of Okta's Angular, React, and Vue SDKs now have a postLogoutRedirectUri property you can configure. See https://github.com/okta/okta-auth-js/commit/3e8c654b99de771549775eb566f9349c86ed89b6 for details.

schematics - v1.0.1

Published by mraible almost 5 years ago

This release adds support for Angular 9 and upgrades dependencies to their latest versions. See https://github.com/oktadeveloper/schematics/pull/165 for details.

NOTE: 1.0.0 was released on npm with React Native 0.61.0 support, @mraible just forgot to create the release on GitHub.

schematics - v0.9.0

Published by mraible about 5 years ago

This release updates all integrations to use Authorization Code flow and PKCE by default! This is because authorization code flow is more secure than implicit flow. See this blog post for more information.

It also adds React Native support using Okta's React Native SDK.

NOTE: There is a known issue with React Native 0.61.0. If you create your app with 0.61.0, OktaDev Schematics will downgrade it to 0.60.6 so unit tests work. We plan on releasing 1.0.0 once this issue is solved.

Changes: https://github.com/oktadeveloper/schematics/compare/v0.8.3...v0.9.0

schematics - v0.8.3

Published by mraible over 5 years ago

This release upgrades Angular core libraries and adds the ability to configure OIDC settings from a URL. This feature will be used by Ionic for JHipster v4.

Changes: https://github.com/oktadeveloper/schematics/compare/v0.8.0...v0.8.3

schematics - v0.8.0

Published by mraible over 5 years ago

This release adds support for Angular CLI v8 and upgrades Ionic AppAuth to 0.3.5.

schematics - v0.7.2

Published by mraible over 5 years ago

This release refactors Angular support so it's less invasive. A separate auth-routing.module.ts is now created and imported into app.module.ts.

schematics - v0.7.1

Published by mraible over 5 years ago

schematics - v0.7.0

Published by mraible over 5 years ago

This release adds support for Ionic + Angular. It also upgrades the SDK versions and dependencies that are installed.

Results of npm run coverage:

=============================== Coverage summary ===============================
Statements   : 97.27% ( 107/110 )
Branches     : 86.21% ( 50/58 )
Functions    : 100% ( 7/7 )
Lines        : 97.22% ( 105/108 )
================================================================================
schematics - v0.6.1

Published by mraible over 5 years ago

This release increases test coverage for React and Vue by mocking package.json. It also upgrades the SDK versions that are installed.

Results of npm run coverage:

=============================== Coverage summary ===============================
Statements   : 96.55% ( 84/87 )
Branches     : 84.09% ( 37/44 )
Functions    : 100% ( 6/6 )
Lines        : 96.47% ( 82/85 )
================================================================================
schematics - v0.6.0

Published by mraible over 5 years ago

Now with support for Okta's React and Vue SDKs! You can even use JavaScript or TypeScript. 😃

React

Create a new project with Create React App.

npx create-react-app secure-react
cd secure-react

If you'd like to use TypeScript, add the --typescript flag.

npx create-react-app secure-react --typescript
cd secure-react

Install Schematics globally.

npm install -g @angular-devkit/schematics-cli

Then install and run the add-auth schematic in your project.

npm i @oktadev/schematics
schematics @oktadev/schematics:add-auth

See the Okta React SDK for more information.

Vue

Create a new project with Vue CLI. You must add routing for this schematic to work. If you specify TypeScript, a src/router.ts will be used.

npm i -g @vue/cli
vue create secure-vue
cd secure-vue

Install Schematics globally.

npm install -g @angular-devkit/schematics-cli

Then install and run the add-auth schematic in your project.

npm i @oktadev/schematics
schematics @oktadev/schematics:add-auth

See the Okta Vue SDK for more information.

schematics - v0.5.0

Published by mraible over 5 years ago

First release! Try it out with the following commands:

ng new my-secure-app --routing --style css
cd my-secure-app
ng add @oktadev/schematics

If you don't have Angular CLI installed, you'll need to install it:

npm i -g @angular/cli