Last active
November 4, 2018 01:27
-
-
Save alx-andru/33dd722c7dff64e973f835eb74fc8d3a to your computer and use it in GitHub Desktop.
ng-oidc-client add dependencies to AppModule
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... | |
| @NgModule({ | |
| declarations: [AppComponent], | |
| imports: [ | |
| BrowserModule, | |
| AppRoutingModule, | |
| StoreModule.forRoot({}), | |
| EffectsModule.forRoot([]), | |
| NgOidcClientModule.forRoot({ | |
| oidc_config: { | |
| client_id: "ng-oidc-client-identity", | |
| response_type: "id_token token", | |
| scope: "openid profile offline_access api1", | |
| authority: "https://ng-oidc-client-server.azurewebsites.net", | |
| redirect_uri: "http://localhost:4200/callback.html", | |
| post_logout_redirect_uri: "http://localhost:4200/signout-callback.html", | |
| silent_redirect_uri: "http://localhost:4200/renew-callback.html", | |
| automaticSilentRenew: true | |
| } | |
| }) | |
| ], | |
| ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment