Skip to content
This repository has been archived by the owner on Mar 27, 2021. It is now read-only.

Latest commit

 

History

History
38 lines (32 loc) · 1.27 KB

README.md

File metadata and controls

38 lines (32 loc) · 1.27 KB

ng-oidc-client-server

Example implementation of IdentityServer to test ng-oidc-client

This implementation is solely for the purpose of testing and should not be used in production!

Live Demo

https://ng-oidc-client-server.azurewebsites.net/account/login

Routing is disabled Account registration is disabled Server resets daily if server is not up, the first call might take a few seconds longer

Test accounts IdentityServer4 Quickstart

See IdentityServer4 TestUsers.cs Username: bob Password: bob

Username: alice Password: alice

Example configuration for ng-oidc-client in a local environment

NgOidcClientModule.forRoot({
  oidc_config: {
    authority: 'https://localhost:5001',
    client_id: 'ng-oidc-client-identity',
    redirect_uri: 'http://localhost:4200/callback.html',
    response_type: 'id_token token',
    scope: 'openid profile offline_access api1',
    post_logout_redirect_uri: 'http://localhost:4200/signout-callback.html',
    silent_redirect_uri: 'http://localhost:4200/renew-callback.html',
    accessTokenExpiringNotificationTime: 10,
    automaticSilentRenew: true,
    userStore: getWebStorageStateStore
  }
})