This repository was archived by the owner on Nov 18, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +6
-25
lines changed Expand file tree Collapse file tree 5 files changed +6
-25
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,6 @@ Install dependencies
11
11
npm install
12
12
`
13
13
14
- Install type definitions
15
-
16
- `
17
- typings install
18
- `
19
-
20
14
To build and watch for changes
21
15
22
16
`
Original file line number Diff line number Diff line change 14
14
},
15
15
"main" : " main.js" ,
16
16
"scripts" : {
17
- "test" : " echo \" Error: no test specified\" && exit 1" ,
18
- "postinstall" : " typings install" ,
17
+ "test" : " echo \" Error: no test specified\" && exit 1" ,
19
18
"start" : " electron main.js" ,
20
19
"build" : " webpack --progress --profile --colors --display-error-details --display-cached" ,
21
20
"watch" : " webpack-dashboard -- webpack --watch --progress --profile --colors --display-error-details --display-cached" ,
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import 'rxjs/add/operator/toPromise';
4
4
import { remote } from "electron" ;
5
5
6
6
import { RuntimeInfoModel } from "../models/runtime-info.model" ;
7
+ import { AdalConfig } from "../adal/adal-config" ;
7
8
8
9
@Injectable ( )
9
10
export class ElectronService {
@@ -24,9 +25,9 @@ export class ElectronService {
24
25
public logIn ( state = "/" ) {
25
26
let clientID = "94e57a3e-2436-4b86-a280-5286e2152a22" ;
26
27
let originalURL = location . href ;
27
- let authUrl = "https://login.microsoftonline.com/" + this . _serviceConstants . tenantID +
28
- "/oauth2/authorize?response_type=id_token&client_id=" + this . _serviceConstants . clientID +
29
- "&redirect_uri=" + encodeURIComponent ( this . _serviceConstants . redirectURL ) +
28
+ let authUrl = "https://login.microsoftonline.com/" + AdalConfig . tenant +
29
+ "/oauth2/authorize?response_type=id_token&client_id=" + AdalConfig . clientId +
30
+ "&redirect_uri=" + encodeURIComponent ( AdalConfig . redirectUri ) +
30
31
"&state=" + state + "&nonce=SomeNonce" ;
31
32
let BrowserWindow = remote . BrowserWindow ;
32
33
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ module.exports = {
13
13
'reflect-metadata' ,
14
14
'zone.js'
15
15
] ,
16
- 'common' : [ 'es6-shim' ] ,
16
+ 'common' : [ ] ,
17
17
'app' : './src/app/main.ts'
18
18
} ,
19
19
You can’t perform that action at this time.
0 commit comments