aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/core/auth/auth.service.ts6
1 files changed, 3 insertions, 3 deletions
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'
11 11
12import { AuthStatus } from './auth-status.model' 12import { AuthStatus } from './auth-status.model'
13import { AuthUser } from './auth-user.model' 13import { AuthUser } from './auth-user.model'
14import { ClientLocal } from '../../../../../shared' 14import { OAuthClientLocal } from '../../../../../shared'
15// Do not use the barrel (dependency loop) 15// Do not use the barrel (dependency loop)
16import { RestExtractor } from '../../shared/rest' 16import { RestExtractor } from '../../shared/rest'
17 17
18@Injectable() 18@Injectable()
19export class AuthService { 19export class AuthService {
20 private static BASE_CLIENT_URL = API_URL + '/api/v1/clients/local' 20 private static BASE_CLIENT_URL = API_URL + '/api/v1/oauth-clients/local'
21 private static BASE_TOKEN_URL = API_URL + '/api/v1/users/token' 21 private static BASE_TOKEN_URL = API_URL + '/api/v1/users/token'
22 private static BASE_USER_INFORMATIONS_URL = API_URL + '/api/v1/users/me' 22 private static BASE_USER_INFORMATIONS_URL = API_URL + '/api/v1/users/me'
23 23
@@ -43,7 +43,7 @@ export class AuthService {
43 .map(this.restExtractor.extractDataGet) 43 .map(this.restExtractor.extractDataGet)
44 .catch(res => this.restExtractor.handleError(res)) 44 .catch(res => this.restExtractor.handleError(res))
45 .subscribe( 45 .subscribe(
46 (result: ClientLocal) => { 46 (result: OAuthClientLocal) => {
47 this.clientId = result.client_id 47 this.clientId = result.client_id
48 this.clientSecret = result.client_secret 48 this.clientSecret = result.client_secret
49 console.log('Client credentials loaded.') 49 console.log('Client credentials loaded.')