@@ -9,12 +9,14 @@ import {
9
9
AuthorizationCodeRequest ,
10
10
Configuration ,
11
11
} from '@azure/msal-common' ;
12
- import { ClientConfiguration , buildConfiguration } from '../config/ClientConfiguration' ;
12
+ import {
13
+ ClientConfiguration ,
14
+ buildConfiguration ,
15
+ } from '../config/ClientConfiguration' ;
13
16
import { CryptoProvider } from '../crypto/CryptoProvider' ;
14
17
import { Storage } from '../cache/Storage' ;
15
18
16
19
export abstract class ClientApplication {
17
-
18
20
// Input configuration by developer/user
19
21
protected config : ClientConfiguration ;
20
22
@@ -40,7 +42,6 @@ export abstract class ClientApplication {
40
42
* @param {@link (Configuration:type) } configuration object for the MSAL PublicClientApplication instance
41
43
*/
42
44
protected constructor ( configuration : ClientConfiguration ) {
43
-
44
45
this . config = buildConfiguration ( configuration ) ;
45
46
}
46
47
@@ -54,9 +55,12 @@ export abstract class ClientApplication {
54
55
* acquireToken(AuthorizationCodeRequest)
55
56
* @param request
56
57
*/
57
- async getAuthCodeUrl ( request : AuthorizationCodeUrlRequest ) : Promise < string > {
58
-
59
- const authorizationCodeClient = new AuthorizationCodeClient ( this . buildOauthClientConfiguration ( ) ) ;
58
+ async getAuthCodeUrl (
59
+ request : AuthorizationCodeUrlRequest
60
+ ) : Promise < string > {
61
+ const authorizationCodeClient = new AuthorizationCodeClient (
62
+ this . buildOauthClientConfiguration ( )
63
+ ) ;
60
64
return authorizationCodeClient . getAuthCodeUrl ( request ) ;
61
65
}
62
66
@@ -70,9 +74,12 @@ export abstract class ClientApplication {
70
74
*
71
75
* @param request
72
76
*/
73
- async acquireTokenByCode ( request : AuthorizationCodeRequest ) : Promise < string > {
74
-
75
- const authorizationCodeClient = new AuthorizationCodeClient ( this . buildOauthClientConfiguration ( ) ) ;
77
+ async acquireTokenByCode (
78
+ request : AuthorizationCodeRequest
79
+ ) : Promise < string > {
80
+ const authorizationCodeClient = new AuthorizationCodeClient (
81
+ this . buildOauthClientConfiguration ( )
82
+ ) ;
76
83
return authorizationCodeClient . acquireToken ( request ) ;
77
84
}
78
85
@@ -81,8 +88,10 @@ export abstract class ClientApplication {
81
88
return {
82
89
authOptions : this . config . auth ,
83
90
loggerOptions : {
84
- loggerCallback : this . config . system ! . loggerOptions ! . loggerCallback ,
85
- piiLoggingEnabled : this . config . system ! . loggerOptions ! . piiLoggingEnabled ,
91
+ loggerCallback : this . config . system ! . loggerOptions !
92
+ . loggerCallback ,
93
+ piiLoggingEnabled : this . config . system ! . loggerOptions !
94
+ . piiLoggingEnabled ,
86
95
} ,
87
96
cryptoInterface : new CryptoProvider ( ) ,
88
97
networkInterface : this . config . system ! . networkClient ,
0 commit comments