From 0a381679e04bc7adf097da9a6fb4e2c8f41bbda2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 25 Jun 2017 17:44:19 +0200 Subject: ClientLocal -> OAuthClientLocal --- client/src/app/core/auth/auth.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client/src/app/core') diff --git a/client/src/app/core/auth/auth.service.ts b/client/src/app/core/auth/auth.service.ts index fcc6b9bb6..d5aa80512 100644 --- a/client/src/app/core/auth/auth.service.ts +++ b/client/src/app/core/auth/auth.service.ts @@ -11,13 +11,13 @@ import { NotificationsService } from 'angular2-notifications' import { AuthStatus } from './auth-status.model' import { AuthUser } from './auth-user.model' -import { ClientLocal } from '../../../../../shared' +import { OAuthClientLocal } from '../../../../../shared' // Do not use the barrel (dependency loop) import { RestExtractor } from '../../shared/rest' @Injectable() export class AuthService { - private static BASE_CLIENT_URL = API_URL + '/api/v1/clients/local' + private static BASE_CLIENT_URL = API_URL + '/api/v1/oauth-clients/local' private static BASE_TOKEN_URL = API_URL + '/api/v1/users/token' private static BASE_USER_INFORMATIONS_URL = API_URL + '/api/v1/users/me' @@ -43,7 +43,7 @@ export class AuthService { .map(this.restExtractor.extractDataGet) .catch(res => this.restExtractor.handleError(res)) .subscribe( - (result: ClientLocal) => { + (result: OAuthClientLocal) => { this.clientId = result.client_id this.clientSecret = result.client_secret console.log('Client credentials loaded.') -- cgit v1.2.3