How to use keycloak-angular - 1 common examples

To help you get started, we’ve selected a few keycloak-angular examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mauriciovigolo / keycloak-angular / examples / webapp / keycloak-heroes-bootstrap / src / app / app.module.ts View on Github external
import { BrowserModule } from '@angular/platform-browser';
import { NgModule, DoBootstrap } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import { ClarityModule } from '@clr/angular';
import { KeycloakAngularModule, KeycloakService } from 'keycloak-angular';

import { AppComponent, HeroesComponent, HomeComponent } from './components';
import { HeroesService } from './services';
import { AppRoutingModule } from './app-routing.module';

import { environment } from '../environments/environment';

let keycloakService: KeycloakService = new KeycloakService();

@NgModule({
  declarations: [AppComponent, HeroesComponent, HomeComponent],
  imports: [
    BrowserModule,
    HttpClientModule,
    ClarityModule,
    KeycloakAngularModule,
    AppRoutingModule
  ],
  providers: [
    HeroesService,
    {
      provide: KeycloakService,
      useValue: keycloakService
    }

keycloak-angular

Easy Keycloak setup for Angular applications

MIT
Latest version published 18 days ago

Package Health Score

83 / 100
Full package analysis

Popular keycloak-angular functions