WEB-233: Improve the OIDC integration with 2FA (#2602)

This commit is contained in:
AllsVeam
2025-08-22 21:49:18 -06:00
committed by GitHub
parent c00a3bd059
commit 9745643456
50 changed files with 3248 additions and 132 deletions
@@ -0,0 +1,26 @@
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { AuthService } from '../auth.service';
@Component({
selector: 'mifosx-callback',
template: `<p>Processing callback...</p>`
})
export class CallbackComponent implements OnInit {
constructor(
private route: ActivatedRoute,
private authService: AuthService
) {}
ngOnInit(): void {
this.route.queryParams.subscribe((params) => {
const code = params['code'];
if (code) {
const codeVerifier = localStorage.getItem('code_verifier');
this.authService.exchangeCodeForTokens(code, codeVerifier);
} else {
console.warn('No code was received in the URL');
}
});
}
}