> An OAuth2 client, ready to interact with your resource server and integrate your multiple angular applications into a single sing on portal.
npm install bravo-auth> An OAuth2 client, ready to interact with your resource server and integrate your multiple angular applications into a single sing on portal.
> Note: Angular CLI 17.0.0 or higher is required
#### Run:
`npm i bravo-auth@your-desired-version
authConfig: {
apiUrl: 'https://your_resource_server_url', // URL Resource Server (Auth-Service)
rsUrl: 'https://your_single_sign_on_portal' // Single-Sign-On Portal URL,
apiClient: 'API_KEY',
apiSecret: 'API_SECRET'
}
`##### Step 2
include the following into your AppModule:
`
BravoAuthModule.forRoot(environment.authConfig)
`
##### Step 3
In your AppModule, modify its constructor to include the following lines:
`
constructor(authService: BravoAuthService) {
authService.listen();
}
``