Quickstart
#
InstallationYou can either use the schematics with ng add
or install the lib and add the needed files manually.
#
ng AddYou can use the schematics and ng add
the library.
Step through the wizard and select the appropriate configuration options for you environment. Once the wizard is complete, a module will be created to encapsulate your OIDC configuration. Many of the configured values are placeholders and will need to be adjusted for your individual use case. Once you've confirmed your configuration, the library is ready to use.
#
Npm / YarnNavigate to the level of your package.json
and type
or with yarn
After installing the library you can get started with the lib like below.
#
Using a local configurationImport the module and services in your module.
#
Login and LogoutMake sure the login is checked at the beginning of your app (for example in the app.component.ts
). The OidcSecurityService
provides everything you need to login/logout your users.