Skip to content

Commit 1eec310

Browse files
committed
v5 for Angular 7
1 parent 2ac4501 commit 1eec310

9 files changed

+28
-39
lines changed

CHANGELOG.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
# Change Log
22

3-
## New Features in Version 4.0.0
3+
## Lates features
44

5-
See [Release Notes](https://github.com/manfredsteyer/angular-oauth2-oidc/releases/tag/4.0.0)
6-
7-
## New Features in Version 3.1
8-
9-
See [Release Notes](https://github.com/manfredsteyer/angular-oauth2-oidc/releases/tag/3.1)
10-
11-
## New Features in Version 3.0
12-
13-
See [Release Notes](https://github.com/manfredsteyer/angular-oauth2-oidc/releases/tag/3.0.1)
5+
See [Release Notes](https://github.com/manfredsteyer/angular-oauth2-oidc/releases)
146

157
## New Features in Version 2.1
168
- New Config API (the original one is still supported)

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Support for OAuth 2 and OpenId Connect (OIDC) in Angular.
77
## Credits
88

99
- [generator-angular2-library](https://github.com/jvandemo/generator-angular2-library) for scaffolding an Angular library
10-
- [jsrasign](https://kjur.github.io/jsrsasign/) for validating token signature and for hashing
10+
- [jsrasign](https://kjur.github.io/jsrsasign/) until version 5: For validating token signature and for hashing; beginning with version 6, we are using browser APIs to minimize our bundle size
1111
- [Identity Server](https://github.com/identityserver) (used for testing with an .NET/.NET Core Backend)
1212
- [Keycloak (Redhat)](http://www.keycloak.org/) for testing with Java
1313

@@ -21,16 +21,18 @@ https://manfredsteyer.github.io/angular-oauth2-oidc/docs
2121

2222
## Tested Environment
2323

24-
Successfully tested with **Angular 6** and its Router, PathLocationStrategy as well as HashLocationStrategy and CommonJS-Bundling via webpack. At server side we've used IdentityServer (.NET/ .NET Core) and Redhat's Keycloak (Java).
24+
Successfully tested with **Angular 7** and its Router, PathLocationStrategy as well as HashLocationStrategy and CommonJS-Bundling via webpack. At server side we've used IdentityServer (.NET/ .NET Core) and Redhat's Keycloak (Java).
25+
26+
**Angular 6**: Use Version 4.x of this library. Version 4.x was tested with Angular 6. You can also try the newer version 5.x of this library which has a much smaller bundle size.
2527

2628
**Angular 5.x or 4.3**: If you need support for Angular < 6 (4.3 to 5.x) you can download the former version 3.1.4 (npm i angular-oauth2-oidc@^3 --save).
2729

2830
## Release Cycle
2931

30-
- One major release for each Angular version
32+
- We plan one major release for each Angular version
3133
- Will contain new features
3234
- Will contain bug fixes and PRs
33-
- Critical Bugfixes on a regular basis
35+
- Critical Bugfixes on demand
3436

3537
## Contributions
3638
- Feel free to file pull requests

package-lock.json

Lines changed: 3 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@types/jasmine": "~2.6.3",
4848
"@types/jasminewd2": "~2.0.3",
4949
"@types/node": "~8.0.51",
50-
"angular-oauth2-oidc": "^4.0.3",
50+
"angular-oauth2-oidc": "^5.0.0",
5151
"codelyzer": "~4.2.1",
5252
"cpr": "^3.0.1",
5353
"jasmine-core": "~2.8.0",

projects/lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"author": {
55
"name": "Manfred Steyer"
66
},
7-
"version": "4.1.3",
7+
"version": "5.0.0",
88
"repository": "manfredsteyer/angular-oauth2-oidc",
99
"peerDependencies": {
1010
"@angular/common": ">=6.0.0 < 8.0.0",

projects/lib/src/angular-oauth-oidic.module.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,7 @@ import {
1414
import { DefaultOAuthInterceptor } from './interceptors/default-oauth.interceptor';
1515
import { ValidationHandler } from './token-validation/validation-handler';
1616
import { NullValidationHandler } from './token-validation/null-validation-handler';
17-
18-
export function createDefaultLogger() {
19-
return console;
20-
}
21-
22-
export function createDefaultStorage() {
23-
return typeof sessionStorage !== 'undefined' ? sessionStorage : null;
24-
}
17+
import { createDefaultLogger, createDefaultStorage } from './factories';
2518

2619
@NgModule({
2720
imports: [CommonModule],

projects/lib/src/auth.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export class AuthConfig {
6969
*/
7070
public userinfoEndpoint?: string = null;
7171

72-
public responseType? = 'token';
72+
public responseType? = '';
7373

7474
/**
7575
* Defines whether additional debug information should

projects/lib/src/factories.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export function createDefaultLogger() {
2+
return console;
3+
}
4+
5+
export function createDefaultStorage() {
6+
return typeof sessionStorage !== 'undefined' ? sessionStorage : null;
7+
}

tsconfig.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@
2020
"sample": [
2121
"dist/sample"
2222
],
23-
"angular-oauth2-oidc": [
24-
"projects/lib/src/public_api"
25-
//"dist/lib"
26-
]
23+
24+
// "angular-oauth2-oidc": [
25+
// "projects/lib/src/public_api"
26+
// //"dist/lib"
27+
// ]
28+
2729
}
2830
}
2931
}

0 commit comments

Comments
 (0)