Skip to content

Commit

Permalink
update to Angular v19 (with standalone & control flow), Okta AuthJS v…
Browse files Browse the repository at this point in the history
…7.8.0, Okta Angular 6.4.0 (#6)

* update to latest version

* update to v19

* update app.component to use inject

* clean up unused imports

* update readme

* update profile text

* use Org AS
  • Loading branch information
alisaduncan authored Dec 18, 2024
1 parent 1f14cbf commit 684d50a
Show file tree
Hide file tree
Showing 31 changed files with 10,371 additions and 7,613 deletions.
16 changes: 0 additions & 16 deletions .browserslistrc

This file was deleted.

1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ trim_trailing_whitespace = true

[*.ts]
quote_type = single
ij_typescript_use_double_quotes = false

[*.md]
max_line_length = off
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ Client ID: <CLIENT_ID>

Sign into your [Okta Developer Edition account](https://developer.okta.com/login/) to add a required setting to your SPA Okta app to avoid third-party cookies. Navigate to **Applications** > **Applications** and select "My SPA" application to edit. Find the **General Settings** and press **Edit**. Enable **Refresh Token** in the **Grant type** section. **Save** your changes.

Update src/app/app.module.ts with your Okta settings.
Update src/app.config.ts with your Okta settings.

```ts
const oktaAuth = new OktaAuth({
clientId: '{yourClientID}',
issuer: 'https://{yourOktaDomain}/oauth2/default',
redirectUri: window.location.origin + '/login/callback',
scopes: ['openid', 'offline_access']
scopes: ['openid', 'profile', 'offline_access']
});
```

Expand Down
35 changes: 17 additions & 18 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,21 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/okta-angular-quickstart",
"index": "src/index.html",
"main": "src/main.ts",
"browser": "src/main.ts",
"polyfills": [
"zone.js"
],
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/assets"
{
"glob": "**/*",
"input": "public"
}
],
"styles": [
"src/styles.css"
Expand All @@ -34,7 +37,7 @@
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
"maximumError": "1MB"
},
{
"type": "anyComponentStyle",
Expand All @@ -45,12 +48,9 @@
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
"sourceMap": true
}
},
"defaultConfiguration": "production"
Expand All @@ -59,19 +59,16 @@
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "okta-angular-quickstart:build:production"
"buildTarget": "okta-angular-quickstart:build:production"
},
"development": {
"browserTarget": "okta-angular-quickstart:build:development"
"buildTarget": "okta-angular-quickstart:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "okta-angular-quickstart:build"
}
"builder": "@angular-devkit/build-angular:extract-i18n"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
Expand All @@ -82,8 +79,10 @@
],
"tsConfig": "tsconfig.spec.json",
"assets": [
"src/favicon.ico",
"src/assets"
{
"glob": "**/*",
"input": "public"
}
],
"styles": [
"src/styles.css"
Expand All @@ -96,5 +95,5 @@
},
"cli": {
"analytics": false
},
}
}
Loading

0 comments on commit 684d50a

Please sign in to comment.