-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathapp.module.ts
40 lines (36 loc) · 1.15 KB
/
app.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { MsalModule } from '@azure/msal-angular';
import { CommonModule } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import { GraphService } from "./services/graph.service";
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
AppRoutingModule,
CommonModule,
HttpClientModule,
MsalModule.forRoot({
clientID: "<ApplicationId>",
authority: "https://login.microsoftonline.com/<TenantId>/",
redirectUri: "http://localhost:5003",
validateAuthority : true,
cacheLocation : "localStorage",
postLogoutRedirectUri: "http://localhost:5003/",
navigateToLoginRequestUrl : true,
popUp: false,
consentScopes: [ "user.read" ],
unprotectedResources: ["https://angularjs.org/"],
correlationId: '1234',
piiLoggingEnabled: true
})
],
providers: [GraphService],
bootstrap: [AppComponent]
})
export class AppModule { }