Skip to content

Instantly share code, notes, and snippets.

@alx-andru
Last active November 4, 2018 01:27
Show Gist options
  • Save alx-andru/33dd722c7dff64e973f835eb74fc8d3a to your computer and use it in GitHub Desktop.
Save alx-andru/33dd722c7dff64e973f835eb74fc8d3a to your computer and use it in GitHub Desktop.
ng-oidc-client add dependencies to AppModule
...
@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