diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-25 17:44:19 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-25 17:44:19 +0200 |
commit | 0a381679e04bc7adf097da9a6fb4e2c8f41bbda2 (patch) | |
tree | 02c6745db0cc36517ceffad3bee129f833fd3341 /client | |
parent | d58cdea854904369c2dcce905ce42f4f6db836a8 (diff) | |
download | PeerTube-0a381679e04bc7adf097da9a6fb4e2c8f41bbda2.tar.gz PeerTube-0a381679e04bc7adf097da9a6fb4e2c8f41bbda2.tar.zst PeerTube-0a381679e04bc7adf097da9a6fb4e2c8f41bbda2.zip |
ClientLocal -> OAuthClientLocal
Diffstat (limited to 'client')
-rw-r--r-- | client/src/app/core/auth/auth.service.ts | 6 |
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 | ||
12 | import { AuthStatus } from './auth-status.model' | 12 | import { AuthStatus } from './auth-status.model' |
13 | import { AuthUser } from './auth-user.model' | 13 | import { AuthUser } from './auth-user.model' |
14 | import { ClientLocal } from '../../../../../shared' | 14 | import { OAuthClientLocal } from '../../../../../shared' |
15 | // Do not use the barrel (dependency loop) | 15 | // Do not use the barrel (dependency loop) |
16 | import { RestExtractor } from '../../shared/rest' | 16 | import { RestExtractor } from '../../shared/rest' |
17 | 17 | ||
18 | @Injectable() | 18 | @Injectable() |
19 | export class AuthService { | 19 | export 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.') |