Skip to content

Commit

Permalink
refactor: inline js-sha256
Browse files Browse the repository at this point in the history
manfredsteyer committed Jun 30, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 026dcb3 commit ca435c0
Showing 9 changed files with 523 additions and 15 deletions.
1 change: 1 addition & 0 deletions CREDITS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This lib uses an inlined version of [js-sha256](https://www.npmjs.com/package/js-sha256) (MIT license)
5 changes: 0 additions & 5 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -39,7 +39,6 @@
"angular-oauth2-oidc-jwks": "^9.0.0",
"base64-js": "^1.3.0",
"bootstrap": "^3.3.7",
"js-sha256": "^0.9.0",
"jsrsasign": "^8.0.19",
"ngx-semantic-version": "^1.2.1",
"rxjs": "6.5.4",
5 changes: 1 addition & 4 deletions projects/lib/ng-package.json
Original file line number Diff line number Diff line change
@@ -5,8 +5,5 @@
"lib": {
"languageLevel": ["dom", "es2017"],
"entryFile": "src/public_api.ts"
},
"whitelistedNonPeerDependencies": [
"js-sha256"
]
}
}
3 changes: 0 additions & 3 deletions projects/lib/package.json
Original file line number Diff line number Diff line change
@@ -6,9 +6,6 @@
},
"version": "9.2.2",
"repository": "manfredsteyer/angular-oauth2-oidc",
"dependencies": {
"js-sha256": "^0.9.0"
},
"peerDependencies": {
"@angular/common": ">=8.0.0",
"@angular/core": ">=8.0.0"
2 changes: 1 addition & 1 deletion projects/lib/src/deps.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
declare var require: any;
//declare var require: any;
1 change: 1 addition & 0 deletions projects/lib/src/oauth-service.ts
Original file line number Diff line number Diff line change
@@ -2300,6 +2300,7 @@ export class OAuthService extends AuthConfig implements OnDestroy {
*/
public logOut(): void;
public logOut(customParameters: object): void;
public logOut(noRedirectToLogoutUrl: boolean): void;
public logOut(noRedirectToLogoutUrl: boolean, state: string): void;
public logOut(customParameters: boolean | object = {}, state = ''): void {
let noRedirectToLogoutUrl = false;
2 changes: 1 addition & 1 deletion projects/lib/src/token-validation/hash-handler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Injectable } from '@angular/core';

import { sha256 } from 'js-sha256';
import { sha256 } from './js-sha256';

/**
* Abstraction for crypto algorithms
518 changes: 518 additions & 0 deletions projects/lib/src/token-validation/js-sha256.js

Large diffs are not rendered by default.

0 comments on commit ca435c0

Please sign in to comment.