Skip to content
Snippets Groups Projects
login.component.ts 486 B
Newer Older
import {ChangeDetectionStrategy, Component, OnInit} from '@angular/core';
Florent Poittevin's avatar
Florent Poittevin committed
import {OAuthService} from 'angular-oauth2-oidc';

@Component({
  selector: 'dlcm-login',
  templateUrl: './login.component.html',
  styleUrls: ['./login.component.scss'],
  changeDetection: ChangeDetectionStrategy.OnPush,
Florent Poittevin's avatar
Florent Poittevin committed
})
export class LoginComponent implements OnInit {

  constructor(private oauthService: OAuthService) {
  }

  ngOnInit() {
  }

  login() {
    this.oauthService.initImplicitFlow();
  }
}