angular-oauth2-oidc
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "angular-oauth2-oidc", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
@@ -7,3 +7,6 @@ # angular-oauth2-oidc | ||
- generator-angular2-library: https://github.com/jvandemo/generator-angular2-library | ||
- [generator-angular2-library](https://github.com/jvandemo/generator-angular2-library) for scaffolding a angular library | ||
- [jsrasign](https://kjur.github.io/jsrsasign/) for validating token signature and for hashing | ||
- [Identity Server](https://github.com/identityserver) (used for Testing with an .NET/.NET Core Backend) | ||
- [Keycloak (Redhad)](http://www.keycloak.org/) for Testing with Java | ||
@@ -242,19 +245,2 @@ ## Resources | ||
### Validate id_token (legacy, deprecated) | ||
In cases where security relies on the id_token (e. g. in hybrid apps that use it to provide access to local resources) | ||
you could use the callback ``validationHandler`` to define the logic to validate the token's signature. | ||
The following sample uses the validation-endpoint of [IdentityServer3](https://github.com/IdentityServer/IdentityServer3) for this: | ||
``` | ||
this.oauthService.tryLogin({ | ||
validationHandler: context => { | ||
var search = new URLSearchParams(); | ||
search.set('token', context.idToken); | ||
search.set('client_id', oauthService.clientId); | ||
return http.get(validationUrl, { search }).toPromise(); | ||
} | ||
}); | ||
``` | ||
### Calling a Web API with OAuth-Token | ||
@@ -261,0 +247,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
155813
513