Skip to content

Commit

Permalink
Merge pull request #1357 from generalmotors/feat/angular-16
Browse files Browse the repository at this point in the history
feat: update project to Angular 16
  • Loading branch information
manfredsteyer authored Dec 16, 2023
2 parents 3ba7303 + 0f19c0e commit 9f49131
Show file tree
Hide file tree
Showing 36 changed files with 13,821 additions and 27,447 deletions.
47 changes: 47 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "lib",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "lib",
"style": "kebab-case"
}
]
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended",
"plugin:@angular-eslint/template/accessibility"
],
"rules": {}
}
]
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ Support for OAuth 2 and OpenId Connect (OIDC) in Angular. Already prepared for t

## Tested Environment

Successfully tested with **Angular 4.3 to Angular 15** and its Router, PathLocationStrategy as well as HashLocationStrategy and CommonJS-Bundling via webpack.
Successfully tested with **Angular 4.3 to Angular 16** and its Router, PathLocationStrategy as well as HashLocationStrategy and CommonJS-Bundling via webpack.

At server side we've used **IdentityServer** (.NET / .NET Core), Redhat's **Keycloak** (Java), and **Auth0** (Auth0 is officially supported since version 10 of this lib). For Auth0, please have a look into the respective documentation page here.

For using this library with **Azure Active Directory** (**Azure AD**), we recommend an additional look to this [blog post](https://dev.to/yuriburger/azure-active-directory-b2c-with-pkce-for-your-angular-app-1dcg) and the example linked at the end of this blog post.

Also, the Okta community created some guidelines on how to use this lib with Okta. See the links at the end of this page for more information.

**Angular 15**: Use 15.x versions of this library (**should also work with older Angular versions!**).
**Angular 15 & 16**: Use 15.x versions of this library (**should also work with older Angular versions!**).

**Angular 14**: Use 14.x versions of this library (**should also work with older Angular versions!**).

Expand Down
28 changes: 12 additions & 16 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@
"tsConfig": "projects/lib/tsconfig.lib.prod.json"
}
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"projects/lib/**/*.ts",
"projects/lib/**/*.html"
]
}
}
}
},
Expand Down Expand Up @@ -118,7 +127,6 @@
}
}
},

"quickstart-demo": {
"projectType": "application",
"schematics": {},
Expand Down Expand Up @@ -179,7 +187,6 @@
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "quickstart-demo:build"

},
"configurations": {
"production": {
Expand Down Expand Up @@ -207,22 +214,9 @@
"styles": ["projects/quickstart-demo/src/styles.css"],
"scripts": []
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "projects/quickstart-demo/e2e/protractor.conf.js",
"devServerTarget": "quickstart-demo:serve"
},
"configurations": {
"production": {
"devServerTarget": "quickstart-demo:serve:production"
}
}
}
}
},

"angular-oauth2-oidc-jwks": {
"projectType": "library",
"root": "projects/angular-oauth2-oidc-jwks",
Expand Down Expand Up @@ -344,6 +338,8 @@
}
},
"cli": {
"analytics": false
"analytics": false,
"schematicCollections": ["@angular-eslint/schematics"],
"packageManager": "npm"
}
}
10 changes: 3 additions & 7 deletions docs/dependencies.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@
<li>
<b>@webcomponents/custom-elements</b> : ^1.4.3</li>
<li>
<b>angular-oauth2-oidc</b> : ^10.0.3</li>
<b>angular-oauth2-oidc</b> : ^15.0.1</li>
<li>
<b>angular-oauth2-oidc-jwks</b> : ^9.0.0</li>
<b>angular-oauth2-oidc-jwks</b> : ^15.0.1</li>
<li>
<b>base64-js</b> : ^1.5.1</li>
<li>
Expand All @@ -82,18 +82,14 @@
<b>fast-sha256</b> : ^1.3.0</li>
<li>
<b>jsrsasign</b> : ^10.3.0</li>
<li>
<b>ngx-semantic-version</b> : ^2.3.0</li>
<li>
<b>rxjs</b> : ^6.5.3</li>
<li>
<b>rxjs-compat</b> : ^6.6.7</li>
<li>
<b>text-encoder-lite</b> : ^2.0.0</li>
<li>
<b>tsickle</b> : ^0.43.0</li>
<li>
<b>tslib</b> : ^2.3.0</li>
<b>tslib</b> : ^2.5.2</li>
<li>
<b>zone.js</b> : ~0.11.4</li>
</ul>
Expand Down
28 changes: 0 additions & 28 deletions e2e/protractor.conf.js

This file was deleted.

14 changes: 0 additions & 14 deletions e2e/src/app.e2e-spec.ts

This file was deleted.

11 changes: 0 additions & 11 deletions e2e/src/app.po.ts

This file was deleted.

13 changes: 0 additions & 13 deletions e2e/tsconfig.e2e.json

This file was deleted.

Loading

0 comments on commit 9f49131

Please sign in to comment.