feat: add GitHub OAuth2 authentication support
This commit is contained in:
parent
e4cd62cca4
commit
cc1979a068
24 changed files with 845 additions and 8 deletions
|
@ -4,6 +4,7 @@ import { Router } from '@angular/router';
|
|||
import { LoginRequest } from '../../../model/auth/LoginRequest';
|
||||
import { AuthService } from '@service/auth.service';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { environment } from '@environments/environment';
|
||||
|
||||
@Component({
|
||||
selector: 'app-login',
|
||||
|
@ -65,6 +66,11 @@ export class LoginComponent {
|
|||
});
|
||||
}
|
||||
|
||||
loginWithGithub(): void {
|
||||
this.isLoading.set(true);
|
||||
window.location.href = `${environment.apiUrl}/oauth2/github/authorize`;
|
||||
}
|
||||
|
||||
switchToForgotPassword() {
|
||||
this.forgotPassword.emit();
|
||||
}
|
||||
|
|
Reference in a new issue