Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

angular-oauth2-oidc

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-oauth2-oidc - npm Package Compare versions

Comparing version 1.0.18 to 1.0.19

{
"name": "angular-oauth2-oidc",
"version": "1.0.18",
"version": "1.0.19",
"scripts": {

@@ -5,0 +5,0 @@ "lint": "tslint src/**/*.ts",

@@ -34,4 +34,4 @@ # angular-oauth2-oidc

- Sources of this lib: https://github.com/manfredsteyer/angular-oauth2-oidc
- Sample Project: https://github.com/manfredsteyer/angular2-oauth-oidc-demo
## Setup Provider for OAuthService

@@ -95,7 +95,7 @@

// Discovery Document of your AuthServer as defined by OIDC
let url = 'https://steyer-identity-server.azurewebsites.net/identity/.well-known/openid-configuration';
// The name of the auth-server that has to be mentioned within the token
this.oauthService.issuer = "https://steyer-identity-server.azurewebsites.net/identity";
// Load Discovery Document and then try to login the user
this.oauthService.loadDiscoveryDocument(url).then(() => {
this.oauthService.loadDiscoveryDocument().then(() => {

@@ -133,5 +133,2 @@ // This method just tries to parse the token(s) within the url when

// The name of the auth-server that has to be mentioned within the token
this.oauthService.issuer = "https://steyer-identity-server.azurewebsites.net/identity";
// set the scope for the permissions the client should request

@@ -151,18 +148,8 @@ this.oauthService.scope = "openid profile email voucher";

// Discovery Document of your AuthServer as defined by OIDC
// You don't need to set this, when the url aligns with the oidc standard
// (IssuerUrl + '/.well-known/openid-configuration')
// let url = 'https://steyer-identity-server.azurewebsites.net/identity/.well-known/openid-configuration';
// this.oauthService.loadDiscoveryDocument(url);
// This method just tries to parse the token(s) within the url when
// the auth-server redirects the user back to the web-app
// It dosn't send the user the the login page
this.oauthService.tryLogin({});
// Load Discovery Document and then try to login the user
this.oauthService.loadDiscoveryDocument().then(() => {
// This method just tries to parse the token(s) within the url when
// the auth-server redirects the user back to the web-app
// It dosn't send the user the the login page
this.oauthService.tryLogin({});
});
}

@@ -169,0 +156,0 @@