1
1
// Copyright (c) Microsoft Corporation.
2
2
// Licensed under the MIT License.
3
3
4
- import * as msal from "@azure/msal-browser"
4
+ import * as msal from "@azure/msal-browser" ;
5
5
6
6
/**
7
- * Configuration object to be passed to MSAL instance on creation.
7
+ * Configuration object to be passed to MSAL instance on creation.
8
8
* For a full list of MSAL.js configuration parameters, visit:
9
- * https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/configuration.md
9
+ * https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/configuration.md
10
10
*/
11
11
export const msalConfig = {
12
12
auth : {
13
13
// 'Application (client) ID' of app registration in Azure portal - this value is a GUID
14
14
clientId : "de5757b7-986f-4f02-aea1-395670da6da0" ,
15
15
//clientId: "04b07795-8ddb-461a-bbee-02f9e1bf7b46",
16
16
// Full directory URL, in the form of https://login.microsoftonline.com/<tenant-id>
17
- authority : "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47" ,
17
+ authority :
18
+ "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47" ,
18
19
// Full redirect URL, in form of http://localhost:3000
19
20
redirectUri : "http://localhost:3000/" ,
20
21
} ,
21
22
cache : {
22
23
cacheLocation : "sessionStorage" , // This configures where your cache will be stored
23
24
storeAuthStateInCookie : false , // Set this to "true" if you are having issues on IE11 or Edge
24
25
} ,
25
- system : {
26
- loggerOptions : {
27
- loggerCallback : ( level , message , containsPii ) => {
28
- if ( containsPii ) {
29
- return ;
30
- }
31
- switch ( level ) {
32
- case msal . LogLevel . Error :
33
- console . error ( message ) ;
34
- return ;
35
- case msal . LogLevel . Info :
36
- console . info ( message ) ;
37
- return ;
38
- case msal . LogLevel . Verbose :
39
- console . debug ( message ) ;
40
- return ;
41
- case msal . LogLevel . Warning :
42
- console . warn ( message ) ;
43
- return ;
44
- }
45
- }
46
- }
47
- }
26
+ system : {
27
+ loggerOptions : {
28
+ loggerCallback : ( level , message , containsPii ) => {
29
+ if ( containsPii ) {
30
+ return ;
31
+ }
32
+ switch ( level ) {
33
+ case msal . LogLevel . Error :
34
+ console . error ( message ) ;
35
+ return ;
36
+ case msal . LogLevel . Info :
37
+ console . info ( message ) ;
38
+ return ;
39
+ case msal . LogLevel . Verbose :
40
+ console . debug ( message ) ;
41
+ return ;
42
+ case msal . LogLevel . Warning :
43
+ console . warn ( message ) ;
44
+ return ;
45
+ }
46
+ } ,
47
+ } ,
48
+ } ,
48
49
} ;
49
50
50
51
/**
51
52
* Scopes you add here will be prompted for user consent during sign-in.
52
53
* By default, MSAL.js will add OIDC scopes (openid, profile, email) to any login request.
53
- * For more information about OIDC scopes, visit:
54
+ * For more information about OIDC scopes, visit:
54
55
* https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-permissions-and-consent#openid-connect-scopes
55
56
*/
56
57
export const loginRequest = {
@@ -63,5 +64,5 @@ export const loginRequest = {
63
64
*/
64
65
export const tokenRequest = {
65
66
scopes : [ "https://cognitiveservices.azure.com/.default" ] ,
66
- forceRefresh : false // Set this to "true" to skip a cached token and go to the server to get a new token
67
+ forceRefresh : false , // Set this to "true" to skip a cached token and go to the server to get a new token
67
68
} ;
0 commit comments