bravo-auth
v4.0.0
Published
> An OAuth2 client, ready to interact with your resource server and integrate your multiple angular applications into a single sing on portal.
Downloads
28
Readme
README!
An OAuth2 client, ready to interact with your resource server and integrate your multiple angular applications into a single sing on portal.
Installation
Note: Angular CLI 17.0.0 or higher is required
Run:
npm i bravo-auth@your-desired-version
Setup
Step 1
First, you will need to include the following configuration into your environment.ts or anywhere you want:
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();
}