You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by an...@apache.org on 2019/11/28 15:45:52 UTC

[incubator-dlab] branch DLAB-1297 created (now 1ce5c1f)

This is an automated email from the ASF dual-hosted git repository.

ankovalyshyn pushed a change to branch DLAB-1297
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git.


      at 1ce5c1f  [DLAB-1297]: fixed initial login issue

This branch includes the following new commits:

     new 1ce5c1f  [DLAB-1297]: fixed initial login issue

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org


[incubator-dlab] 01/01: [DLAB-1297]: fixed initial login issue

Posted by an...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ankovalyshyn pushed a commit to branch DLAB-1297
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git

commit 1ce5c1fbfc58cd9190e8a96528d915a8f80282d4
Author: Andriana Kovalyshyn <An...@epam.com>
AuthorDate: Thu Nov 28 17:45:36 2019 +0200

    [DLAB-1297]: fixed initial login issue
---
 .../resources/webapp/src/app/core/interceptors/error.interceptor.ts   | 2 +-
 .../webapp/src/app/core/services/applicationSecurity.service.ts       | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/services/self-service/src/main/resources/webapp/src/app/core/interceptors/error.interceptor.ts b/services/self-service/src/main/resources/webapp/src/app/core/interceptors/error.interceptor.ts
index 6246158..4ae3899 100644
--- a/services/self-service/src/main/resources/webapp/src/app/core/interceptors/error.interceptor.ts
+++ b/services/self-service/src/main/resources/webapp/src/app/core/interceptors/error.interceptor.ts
@@ -90,7 +90,7 @@ import { HTTP_STATUS_CODES } from '../util';
   }
 
   private handleBadRequest(error, request: HttpRequest<any>, next: HttpHandler) {
-    if (error.url.split('?')[0].endsWith('refresh')) this.routingService.redirectToLoginPage();
+    if (error.url.indexOf('refresh') > -1) this.routingService.redirectToLoginPage();
     return next.handle(request);
   }
 }
diff --git a/services/self-service/src/main/resources/webapp/src/app/core/services/applicationSecurity.service.ts b/services/self-service/src/main/resources/webapp/src/app/core/services/applicationSecurity.service.ts
index a55c667..1bcd4f8 100644
--- a/services/self-service/src/main/resources/webapp/src/app/core/services/applicationSecurity.service.ts
+++ b/services/self-service/src/main/resources/webapp/src/app/core/services/applicationSecurity.service.ts
@@ -71,8 +71,8 @@ export class ApplicationSecurityService {
   }
 
   public refreshToken() {
-    const refreshTocken = `/${this.storage.getRefreshToken()}`;
-    return this.serviceFacade.buildRefreshToken(refreshTocken)
+    const refreshToken = `/${this.storage.getRefreshToken()}`;
+    return this.serviceFacade.buildRefreshToken(refreshToken)
       .pipe(
         tap((tokens) => this.storage.storeTokens(tokens)));
   }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org