Files
Extranet_UI_V2/src/app/modules/auth/single-sign-on/single-sign-on.component.ts
arfat qureshi 6ce776f218 first commit
2025-10-29 11:44:13 +05:30

27 lines
701 B
TypeScript

import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { SSOService } from 'src/app/core/services/sso.service';
@Component({
selector: 'app-single-sign-on',
templateUrl: './single-sign-on.component.html',
})
export class SingleSignOnComponent implements OnInit {
IPData;
constructor(
private route: ActivatedRoute,
private ssoService: SSOService,
) {
this.route.queryParams.subscribe((params) => {
ssoService.validateSSOLogin(params['key'], params['LoginUserId']);
if (params['langcode']) {
sessionStorage.setItem('LangCode', params['langcode']);
}
});
};
ngOnInit(): void {
}
}