Project

General

Profile

« Previous | Next » 

Revision 51581

fixed checking if at least one interface was saved

View differences:

authentication.service.ts
16 16

  
17 17
  private apiUrl : string = process.env.API_ENDPOINT;
18 18
  private loginUrl: string = process.env.AAI_ENDPOINT;
19
  private baseUrl: string = 'http://aleka.athenarc.gr:3000';
19
  private baseUrl: string = process.env.BASE_URL;
20 20

  
21 21
  // store the URL so we can redirect after logging in
22 22
  public redirectUrl: string;
......
40 40
    this.isLoggedIn = false;
41 41

  
42 42
    console.log('logging out, going to:');
43
    console.log(`https://aai.openaire.eu/proxy/saml2/idp/SingleLogoutService.php?ReturnTo=${this.baseUrl}/landing`);
44
    window.location.href = `https://aai.openaire.eu/proxy/saml2/idp/SingleLogoutService.php?ReturnTo=${this.baseUrl}/landing`;
43
    console.log(`https://aai.openaire.eu/proxy/saml2/idp/SingleLogoutService.php?ReturnTo=${this.baseUrl}`);
44
    window.location.href = `https://aai.openaire.eu/proxy/saml2/idp/SingleLogoutService.php?ReturnTo=${this.baseUrl}`;
45 45
  }
46 46

  
47 47
  public tryLogin() {
......
97 97
          this.router.navigate([state]);
98 98
        }
99 99
      }
100
    } else {
101
      this.isLoggedIn = false;
100 102
    }
101 103
  }
102 104

  

Also available in: Unified diff