aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/core
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-25 17:44:19 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-25 17:44:19 +0200
commit0a381679e04bc7adf097da9a6fb4e2c8f41bbda2 (patch)
tree02c6745db0cc36517ceffad3bee129f833fd3341 /client/src/app/core
parentd58cdea854904369c2dcce905ce42f4f6db836a8 (diff)
downloadPeerTube-0a381679e04bc7adf097da9a6fb4e2c8f41bbda2.tar.gz
PeerTube-0a381679e04bc7adf097da9a6fb4e2c8f41bbda2.tar.zst
PeerTube-0a381679e04bc7adf097da9a6fb4e2c8f41bbda2.zip
ClientLocal -> OAuthClientLocal
Diffstat (limited to 'client/src/app/core')
-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.')