Skip to content

Commit

Permalink
v5 for Angular 7
Browse files Browse the repository at this point in the history
  • Loading branch information
manfredsteyer committed Oct 23, 2018
1 parent 2ac4501 commit 1eec310
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 39 deletions.
12 changes: 2 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
# Change Log

## New Features in Version 4.0.0
## Lates features

See [Release Notes](https://github.com/manfredsteyer/angular-oauth2-oidc/releases/tag/4.0.0)

## New Features in Version 3.1

See [Release Notes](https://github.com/manfredsteyer/angular-oauth2-oidc/releases/tag/3.1)

## New Features in Version 3.0

See [Release Notes](https://github.com/manfredsteyer/angular-oauth2-oidc/releases/tag/3.0.1)
See [Release Notes](https://github.com/manfredsteyer/angular-oauth2-oidc/releases)

## New Features in Version 2.1
- New Config API (the original one is still supported)
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Support for OAuth 2 and OpenId Connect (OIDC) in Angular.
## Credits

- [generator-angular2-library](https://github.com/jvandemo/generator-angular2-library) for scaffolding an Angular library
- [jsrasign](https://kjur.github.io/jsrsasign/) for validating token signature and for hashing
- [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
- [Identity Server](https://github.com/identityserver) (used for testing with an .NET/.NET Core Backend)
- [Keycloak (Redhat)](http://www.keycloak.org/) for testing with Java

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

## Tested Environment

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).
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).

**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.

**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).

## Release Cycle

- One major release for each Angular version
- We plan one major release for each Angular version
- Will contain new features
- Will contain bug fixes and PRs
- Critical Bugfixes on a regular basis
- Critical Bugfixes on demand

## Contributions
- Feel free to file pull requests
Expand Down
13 changes: 3 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@types/jasmine": "~2.6.3",
"@types/jasminewd2": "~2.0.3",
"@types/node": "~8.0.51",
"angular-oauth2-oidc": "^4.0.3",
"angular-oauth2-oidc": "^5.0.0",
"codelyzer": "~4.2.1",
"cpr": "^3.0.1",
"jasmine-core": "~2.8.0",
Expand Down
2 changes: 1 addition & 1 deletion projects/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"author": {
"name": "Manfred Steyer"
},
"version": "4.1.3",
"version": "5.0.0",
"repository": "manfredsteyer/angular-oauth2-oidc",
"peerDependencies": {
"@angular/common": ">=6.0.0 < 8.0.0",
Expand Down
9 changes: 1 addition & 8 deletions projects/lib/src/angular-oauth-oidic.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,7 @@ import {
import { DefaultOAuthInterceptor } from './interceptors/default-oauth.interceptor';
import { ValidationHandler } from './token-validation/validation-handler';
import { NullValidationHandler } from './token-validation/null-validation-handler';

export function createDefaultLogger() {
return console;
}

export function createDefaultStorage() {
return typeof sessionStorage !== 'undefined' ? sessionStorage : null;
}
import { createDefaultLogger, createDefaultStorage } from './factories';

@NgModule({
imports: [CommonModule],
Expand Down
2 changes: 1 addition & 1 deletion projects/lib/src/auth.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class AuthConfig {
*/
public userinfoEndpoint?: string = null;

public responseType? = 'token';
public responseType? = '';

/**
* Defines whether additional debug information should
Expand Down
7 changes: 7 additions & 0 deletions projects/lib/src/factories.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export function createDefaultLogger() {
return console;
}

export function createDefaultStorage() {
return typeof sessionStorage !== 'undefined' ? sessionStorage : null;
}
10 changes: 6 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@
"sample": [
"dist/sample"
],
"angular-oauth2-oidc": [
"projects/lib/src/public_api"
//"dist/lib"
]

// "angular-oauth2-oidc": [
// "projects/lib/src/public_api"
// //"dist/lib"
// ]

}
}
}

0 comments on commit 1eec310

Please sign in to comment.